cloud - getting randomly generated passwd for Ubuntu 16.04 cloudimage - Ask Ubuntu
i having hard time getting supposedly randomly generated passwd amd64 qcow2 image here:
https://cloud-images.ubuntu.com/releases/16.04/release/
i found (perhaps outdated?) instructions here:
https://help.ubuntu.com/community/uec/images
things seem have changed, , don't see line in console output, , ctrl-alt-3 serial console doesn't work me (i entered via virsh console vm_name).
you can use libguestfs-tool clear root passwd.
sudo apt install libguestfs-tools virt-edit -a disk.img /etc/passwd -e 's/^root:.*?:/root::/'
see http://libguestfs.org/guestfs-recipes.1.html under "remove root password (linux)"
but why can't ubuntu put decent page on how use cloudimages novices???
Comments
Post a Comment