From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFR1N-00068T-Ig for qemu-devel@nongnu.org; Sun, 25 Jan 2015 12:30:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFR1H-0008RT-Fk for qemu-devel@nongnu.org; Sun, 25 Jan 2015 12:30:49 -0500 Received: from indium.canonical.com ([91.189.90.7]:54989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFR1H-0008RP-9A for qemu-devel@nongnu.org; Sun, 25 Jan 2015 12:30:43 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1YFR1G-0005so-2y for ; Sun, 25 Jan 2015 17:30:42 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id DD8802E80C8 for ; Sun, 25 Jan 2015 17:30:41 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sun, 25 Jan 2015 17:24:04 -0000 From: "Sergey V. Lobanov" Sender: bounces@canonical.com References: <20150125172405.12316.8764.malonedeb@soybean.canonical.com> Message-Id: <20150125172405.12316.8764.malonedeb@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1414466] [NEW] -net user, hostfwd=... is not working(qemu-system-aarch64) Reply-To: Bug 1414466 <1414466@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: QEMU version: git a46b3aaf6bb038d4f6f192a84df204f10929e75c /opt/qemu.git/bin/qemu-system-aarch64 --version 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.git/bin/qemu-system-aarch64 -machine virt -cpu cortex= -a57 -nographic -smp 1 -m 512 -kernel vmlinuz-run -initrd initrd-run.img -a= ppend "root=3D/dev/sda2 console=3DttyAMA0" -global virtio-blk-device.scsi= =3Doff -device virtio-scsi-device,id=3Dscsi -drive file=3Ddebian8-arm64.img= ,id=3Drootimg,cache=3Dunsafe,if=3Dnone -device scsi-hd,drive=3Drootimg -net= dev user,id=3Dunet -device virtio-net-device,netdev=3Dunet -net user,hostfw= d=3Dtcp:127.0.0.1:1122-:22 root@debian8-arm64:~# netstat -ntplu | grep ssh 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_identification: read: Connection reset by peer real 1m29.341s user 0m0.005s sys 0m0.000s Inside guest vm sshd works fine: root@debian8-arm64:~# ssh user@127.0.0.1 -p 22 user@127.0.0.1's password: = .... user@debian8-arm64:~$ exit logout Connection to 127.0.0.1 closed. root@debian8-arm64:~# ssh user@10.0.2.15 -p 22 user@10.0.2.15's password: = ... user@debian8-arm64:~$ exit logout Connection to 10.0.2.15 closed. ** Affects: qemu Importance: Undecided Status: New ** Tags: hostfwd -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1414466 Title: -net user,hostfwd=3D... is not working(qemu-system-aarch64) Status in QEMU: New Bug description: QEMU version: git a46b3aaf6bb038d4f6f192a84df204f10929e75c /opt/qemu.git/bin/qemu-system-aarch64 --version 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.git/bin/qemu-system-aarch64 -machine virt -cpu cort= ex-a57 -nographic -smp 1 -m 512 -kernel vmlinuz-run -initrd initrd-run.img = -append "root=3D/dev/sda2 console=3DttyAMA0" -global virtio-blk-device.scsi= =3Doff -device virtio-scsi-device,id=3Dscsi -drive file=3Ddebian8-arm64.img= ,id=3Drootimg,cache=3Dunsafe,if=3Dnone -device scsi-hd,drive=3Drootimg -net= dev user,id=3Dunet -device virtio-net-device,netdev=3Dunet -net user,hostfw= d=3Dtcp:127.0.0.1:1122-:22 root@debian8-arm64:~# netstat -ntplu | grep ssh tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTE= N 410/sshd = tcp6 0 0 :::22 :::* LISTE= N 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:* LISTE= N 18722/qemu-system-a user@ovs:~$ time ssh user@127.0.0.1 -p 1122 ssh_exchange_identification: read: Connection reset by peer real 1m29.341s user 0m0.005s sys 0m0.000s Inside guest vm sshd works fine: root@debian8-arm64:~# ssh user@127.0.0.1 -p 22 user@127.0.0.1's password: = .... user@debian8-arm64:~$ exit logout Connection to 127.0.0.1 closed. root@debian8-arm64:~# ssh user@10.0.2.15 -p 22 user@10.0.2.15's password: = ... user@debian8-arm64:~$ exit logout Connection to 10.0.2.15 closed. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1414466/+subscriptions