How to set a root password for your Openstack images

Views: 2584

Login via console to your failed openstack deployment

This is a copy of a blog that I wrote where I work at Octopus Computer Solutions

 

While installing Redhat Openstack on Baremetal with lots of complicated networking, you might need to access Linux via the console.  Redhat images do not come with a default username and password. So you need to configure the overcloud-full image to have a default password for root.
$ sudo yum install libguestfs-tools
$ source ./stackrc
$ virt-customize -a overcloud-full.qcow2 --root-password password:YOUR-SECURE-PASSWORD
$ openstack overcloud image upload --update-existing

This will install and set the root password, then upload it to the undercloud Glance. This is the simplest way to update the password.

Octopus Computer Solutions is a Red Hat business partner. We deploy OpenStack and OpenShift throughout Israel. We have encountered customers which wanted to have an image of the OpenStack host with a customized password. This is a small How-To on how to do it.

 

Source: בלוגים – How to set a root password for your Openstack images

Leave a Reply