how to log in as root on Red Hat supplied guest image

Latest response

Using the RHOS 3.0 Getting Started Guide (GSG) to get started, I recently did the following:
- downloaded a guest image from Red Hat
- ran virt-sysprep against it (per instructions in the GSG - is it needed for the Red Hat supplied image, too?)
- used glance image-create to upload the image to glance
(so far so good)
- used nova boot to launch an instance using the image I just uploaded
(Note I had to do a nova keypair-add to create the key_name to use but this step was missing in the GSG)

Now, at the end of section 7.2 in the GSG, it says I can ssh into the instance. The example shows
ssh -I oskey.priv root@10.0.0.2

I now know that the oskey term should match whatever the name of the keypair that I created. But the .priv portion did not work for me. I tried .pub because when I created the keypair I gave it the location of my public key (id_rsa.pub). And the ipaddress needs to match the ipaddress reported in nova list.

Now, when I used all the right key names and ip addresses, it wouldn't let me log in as root. It said,
Please login as user "cloud-user" rather than the user "root".

This is from the Red Hat guest image I downloaded from Red Hat. Is there a way to log in as the root user using that image?

Dave

Responses