You are not logged in.
Pages: 1
I am installing a kvm guest using live usb image from qemu-headless package inside a physical headless machine.
qemu-system-x86_64 ...
-netdev user,id=guest1,hostfwd=tcp::22222-:22
So that I tried with
ssh -p22222 root@localhost
The problem is archlinux live USB image has a default empty root password
And the default /etc/ssh/sshd_config has PermitEmptypasswords option set to NO.
Offline
Offline
The solutions provided requires modification of /etc/ssh/sshd_config or using cloud-init custom build image. I am looking for a solution that can login me into kvm guest from host machine without modification of the standard live USB image.
something like this, but couldn't get it right.
qemu-system-x86_64 -serial stdio -kernel vmlinuz -hda wheezy.img -append "root=/dev/sda console=ttyS0"
Offline
You don't need to alter the original image. But you probably have to provide a 2nd image/USB-Stick/etc with the cloud-init configuration to set up the sshd (as stated in the wiki).
If you don't know how to set up QEMU try 'virt-manager' as a template manager. You can grab its qemu commands out of the logs if you want to go back to console.
sys2064
Offline
Pages: 1