-net user,hostfwd=... is not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Invalid
|
Undecided
|
Unassigned |
Bug Description
QEMU version: git a46b3aaf6bb038d
/opt/qemu.
QEMU emulator version 2.2.50, Copyright (c) 2003-2008 Fabrice Bellard
Hosts:
ovs - host machine (Ubuntu 14.04.1, x86_64)
debian8-arm64 - guest
Guest start:
user@ovs:~$ /opt/qemu.
root@debian8-
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 410/sshd
tcp6 0 0 :::22 :::* LISTEN 410/sshd
(no firewall in guest vm)
user@ovs:~$ netstat -ntplu | grep 1122
tcp 0 0 127.0.0.1:1122 0.0.0.0:* LISTEN 18722/qemu-system-a
user@ovs:~$ time ssh user@127.0.0.1 -p 1122
ssh_exchange_
real 1m29.341s
user 0m0.005s
sys 0m0.000s
Inside guest vm sshd works fine:
root@debian8-
user@127.0.0.1's password:
....
user@debian8-
logout
Connection to 127.0.0.1 closed.
root@debian8-
user@10.0.2.15's password:
...
user@debian8-
logout
Connection to 10.0.2.15 closed.
summary: |
- -net user,hostfwd=... is not working(qemu-system-aarch64) + -net user,hostfwd=... is not working |
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.