Also happens on Ubuntu 16.04.1 64-bit with QEMU 1:2.5+dfsg-5ubuntu10.4. I have the following settings added to instance xml config:
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<qemu:commandline> <qemu:arg value='-net'/> <qemu:arg value='user,hostfwd=tcp::2222-:22'/> </qemu:commandline>
It looks like forwarding does not happen at all. When I try to connect to guest instance, I get exactly the same results regardless of whether sshd is running in that instance or not.
Also happens on Ubuntu 16.04.1 64-bit with QEMU 1:2.5+dfsg- 5ubuntu10. 4. I have the following settings added to instance xml config:
<domain type='kvm' xmlns:qemu='http:// libvirt. org/schemas/ domain/ qemu/1. 0'>
<qemu: commandline> user,hostfwd= tcp::2222- :22'/> commandline>
<qemu:arg value='-net'/>
<qemu:arg value='
</qemu:
It looks like forwarding does not happen at all. When I try to connect to guest instance, I get exactly the same results regardless of whether sshd is running in that instance or not.