importing CLOUD qcow2 image - login???

Issues related to applications and software problems and general support
Post Reply
centonan
Posts: 3
Joined: 2022/02/17 10:02:18

importing CLOUD qcow2 image - login???

Post by centonan » 2022/02/17 12:24:54

Hi,
I can find no obvious documentation to explain / show how to gain access to the imported latest stream 8 qcow2 images .

Dowload latest 8 stream from here;

https://cloud.centos.org/centos/8-stream/x86_64/images/

CentOS-Stream-GenericCloud-8-20220125.1.x86_64.qcow2

Import into virt-manager, all good...

start and run, no problem.

Login? root password , default user ? no idea



Can someone point me to the correct documentation so that I can login and begin to use the VM?

Thanks

User avatar
TrevorH
Site Admin
Posts: 33221
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: importing CLOUD qcow2 image - login???

Post by TrevorH » 2022/02/17 12:36:48

First hit on google for "centos cloud image username" says
The default username for the CentOS 7 cloud image is centos . There is no password; instead you log in with the ssh key you provided at instance creation. You can then sudo and do whatever you like.
It's the same for all images.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

centonan
Posts: 3
Joined: 2022/02/17 10:02:18

Re: importing CLOUD qcow2 image - login???

Post by centonan » 2022/02/17 13:35:53

First hit on google for "centos cloud image username" says
Right, hence why I'm here, as if you read that ( and the other responses like it ) they aren't dealing with the scenario I'm describing.

I imported that exact image on my own libvirtd home server as a VM, via virt-manager ( as described in the OP ), I get to a console login prompt on the guest VM, or I can login via ssh.

I'm never "prompted" for an SSH keywhere as I'm not using a cloud hosting service, I'm running it on my own local server libvrirtd.

I download the cloud image, I import it using virt-manager and I run the VM, am I missing something?

Should I not be using the cloud image locally on libvirtd?


EDIT

Adding of course I've tried the 'centos' user but it fails...

From further investigation it seems that I need to inject an SSH key into the image, ( and optionally make a copy ) prior to importing.

Im reading that others are using vbox tools for this, but I cant be the first to try this locally , using KVM ?

Are there really no "official" docs on this? I've been using pxe and network installs w/ ansible and am only recently playing around with the cloud images..

centonan
Posts: 3
Joined: 2022/02/17 10:02:18

Re: importing CLOUD qcow2 image - login???

Post by centonan » 2022/02/17 14:54:29

Resolved.

dnf install libguestfs-tools

virt-customize -a CentOS-7-x86_64-GenericCloud-2111.qcow2 --root-password password:DDYrTXJZTJldOqimb68ZK5KCmRpbdBOe
[ 0.0] Examining the guest ...
[ 6.4] Setting a random seed
[ 6.4] Setting passwords
[ 7.5] Finishing off

Now able to login to new guest as root / pw.

MrCalvin
Posts: 6
Joined: 2018/03/13 23:29:13

Re: importing CLOUD qcow2 image - login???

Post by MrCalvin » 2022/06/07 08:39:09

THAAANKS :)

Post Reply