I'm doing a couple of tests of Ubuntu autoinstall using cloud-init
. In order to do so, I am following an example that's presented in the Autoinstall QuickStart page. In the given example, the presented password hash corresponds to the encrypted ubuntu
passphrase and that works flawlessly. However, if I try to use my own encrypted hash, it doesn't seem to work (I can't login with the plain text password I feed the encryption algorithm with).
I know it probably has something to do with the encryption algorithm I'm using, but I think it should work and I would love to be able to check the /etc/shadow
of the QEMU virtual machine to check what is being written there.
As per the example, I boot the VM with the following command:
kvm -no-reboot -m 2048 \
-drive file=image.img,format=raw,cache=none,if=virtio
Is there a way to mount the filesystem of the VM to my local machine and check /etc/shadow
?
TIA!