On 12/15/2014 04:02 AM, Arash Kaffamanesh wrote:
Lei,
The image has no known root password and that's good so.
You need to ssh into the instance with:
ssh -i <your-private-key> centos@<ip>
Or, before importing into Glance, you can use a tool like virt-sysprep
to insert a root password into the image.
$ sudo yum install libguestfs-tools-c
$ virt-sysprep --root-password password:password -a imagefile.qcow2
See man virt-sysprep for info on how to use the --root-password cmdline
option.
Cheers,
Perry