Ask Your Question

Revision history [back]

guestfish -a cloud-img.img (CentOS or Ubuntu, doesn't matter which one) <fs>run <fs>list-filesystems <fs>mount /dev/blah / <fs>vi /etc/passwd

Change root:x:... in the first line to root::...and write to disk with wq!

<fs>shutdown

Add .img to virt-manager, creating new instance. Now you can log in with no password as root.