canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
3.01k stars 887 forks source link

Following 'Core tutorial with QEMU' steps to setup ad hoc IMDS webserver to test -what is the username/password to login after following user-data example to login successfully? #5822

Open risantam89 opened 1 month ago

risantam89 commented 1 month ago

Bug report

Steps to reproduce the problem

Following steps as per:

https://cloudinit.readthedocs.io/en/latest/tutorial/qemu.html

When set up user-data file to remake default user with password as 'password' does not function as expected.

Using this image and cloud-init in provided tutorial what is the expected user and password after the changes are made?

Environment details

Default info as per https://cloudinit.readthedocs.io/en/latest/tutorial/qemu.html

risantam89 commented 1 month ago

Just to let you know I am running it on a laptop with this information:

]$ rpm -qa | grep qemu-system-x86
qemu-system-x86-core-7.2.10-1.fc38.x86_64
qemu-system-x86-7.2.10-1.fc38.x86_64

]$ cat /etc/redhat-release 
Fedora release 38 (Thirty Eight)

Running the provided ubuntu image does not work to log in (ubuntu/password). I've test with a fedoda image at https://download.fedoraproject.org/pub/fedora/linux/releases/40/Cloud/x86_64/images/Fedora-Cloud-Base-AmazonEC2.x86_64-40-1.14.raw.xz

and this does function (fedora/password).

However on another machine running the following it does work for both ubuntu and fedora:

# rpm -qa | grep qemu-system-x86
qemu-system-x86-core-8.2.7-1.fc40.x86_64
qemu-system-x86-8.2.7-1.fc40.x86_64

# cat /etc/redhat-release
Fedora release 40 (Forty)