From 1c7d2a35fd64ea8d72ed9196a7cd0471a39f21ef Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Fri, 1 Sep 2017 01:58:05 +0200 Subject: [PATCH] fix #4: avoid qemu -redir option (thanks R41z) --- QA.sh | 6 +++--- runDisk.sh | 6 +++--- runOver9P.sh | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/QA.sh b/QA.sh index 1861a87..4e67f6c 100755 --- a/QA.sh +++ b/QA.sh @@ -69,9 +69,9 @@ $bootDisk \ -net nic,model=rtl8139 \ -net user,hostfwd=tcp::5555-:1522 \ -net dump,file=/tmp/vm0.pcap \ --redir tcp:9999::9 \ --redir tcp:17010::17010 \ --redir tcp:17013::17013 \ +-netdev user,id=tcp9,hostfwd=tcp::9999-:9 \ +-netdev user,id=tcp17010,hostfwd=tcp::17010-:17010 \ +-netdev user,id=tcp17013,hostfwd=tcp::17013-:17013 \ $appendLine $kernelLine EOF diff --git a/runDisk.sh b/runDisk.sh index 9000b08..5ca3b2a 100755 --- a/runDisk.sh +++ b/runDisk.sh @@ -61,9 +61,9 @@ $bootDisk \ -net nic,model=rtl8139 \ -net user,hostfwd=tcp::5555-:1522 \ -net dump,file=/tmp/vm0.pcap \ --redir tcp:9999::9 \ --redir tcp:17010::17010 \ --redir tcp:17013::17013 +-netdev user,id=tcp9,hostfwd=tcp::9999-:9 \ +-netdev user,id=tcp17010,hostfwd=tcp::17010-:17010 \ +-netdev user,id=tcp17013,hostfwd=tcp::17013-:17013 EOF # To enable qemu log: diff --git a/runOver9P.sh b/runOver9P.sh index ba0708c..4fb44b0 100755 --- a/runOver9P.sh +++ b/runOver9P.sh @@ -61,9 +61,9 @@ $bootDisk \ -net nic,model=rtl8139 \ -net user,hostfwd=tcp::5555-:1522 \ -net dump,file=/tmp/vm0.pcap \ --redir tcp:9999::9 \ --redir tcp:17010::17010 \ --redir tcp:17013::17013 \ +-netdev user,id=tcp9,hostfwd=tcp::9999-:9 \ +-netdev user,id=tcp17010,hostfwd=tcp::17010-:17010 \ +-netdev user,id=tcp17013,hostfwd=tcp::17013-:17013 \ $usbDev \ -append "maxcores=1024 nvram=$NVRAM nvrlen=512 nvroff=0 console=0 qemu-user=$QEMU_USER *acpi= $FS $KAPPEND" \ -initrd ./initrd \