Closed GDHNES closed 1 year ago
Instead of adding another net device, have you tried replacing the net device that's already instantiated here with virtio-net-pci
?
No, I haven't try that until you suggest this method. It works after I replace the line
NETWORK_ARGS="-netdev user,id=usernet,hostfwd=tcp:127.0.0.1:7722-0.0.0.0:22 -device e1000e,netdev=usernet"
in script/common_variables
with:
NETWORK_ARGS="-netdev user,id=usernet,hostfwd=tcp:127.0.0.1:7722-0.0.0.0:22 -device virtio-net-pci,iommu_platform=on,disable-legacy=on,netdev=usernet"
.
Thank you for your kind reply, that indeed save the day. :-)
I was trying to SSH in Debian, then I got a
kex_exchange_identification: read: Connection reset by peer
like this:I slightly modified the command by adding 2 additional lines
in
run_debian.sh
for convenience.The solutions I found in StackOverflow posts didn't solve the problem. When
-device virtio-net-pci,iommu_platform=on,disable-legacy=on
is deleted, everything works well, is there any mistake I make? I am trying to do some experiments on the iommu parts, ifvirtio-net-pci
just simply cannot work with SSH for some reason, is there any other possiblevirtio-pci
device I can try?