[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug 1414466] Re: -net user,hostfwd=... is not working
From: |
Apteryx |
Subject: |
[Bug 1414466] Re: -net user,hostfwd=... is not working |
Date: |
Sun, 30 May 2021 21:12:10 -0000 |
Here's what `tcpdump -i lo` reports during attempting the SSH access:
17:09:30.573545 IP localhost.55526 > localhost.3333: Flags [S], seq 1198531632,
win 65495, options [mss 65495,sackOK,TS val 1662149852 ecr 0,nop,wscale 7],
length 0
17:09:30.573569 IP localhost.3333 > localhost.55526: Flags [S.], seq 476868813,
ack 1198531633, win 65483, options [mss 65495,sackOK,TS val 1662149852 ecr
1662149852,nop,wscale 7], length 0
17:09:30.573588 IP localhost.55526 > localhost.3333: Flags [.], ack 1, win 512,
options [nop,nop,TS val 1662149852 ecr 1662149852], length 0
17:09:30.574162 IP localhost.55526 > localhost.3333: Flags [P.], seq 1:22, ack
1, win 512, options [nop,nop,TS val 1662149853 ecr 1662149852], length 21
17:09:30.574176 IP localhost.3333 > localhost.55526: Flags [.], ack 22, win
512, options [nop,nop,TS val 1662149853 ecr 1662149853], length 0
17:09:35.127136 IP localhost.3333 > localhost.55518: Flags [R.], seq 1, ack 1,
win 512, options [nop,nop,TS val 1662154406 ecr 1662125014], length 0
--
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=... is not working
Status in QEMU:
Confirmed
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
cortex-a57 -nographic -smp 1 -m 512 -kernel vmlinuz-run -initrd initrd-run.img
-append "root=/dev/sda2 console=ttyAMA0" -global virtio-blk-device.scsi=off
-device virtio-scsi-device,id=scsi -drive
file=debian8-arm64.img,id=rootimg,cache=unsafe,if=none -device
scsi-hd,drive=rootimg -netdev user,id=unet -device
virtio-net-device,netdev=unet -net user,hostfwd=tcp: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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1414466/+subscriptions