From ad148c121cbb2676d5996f53bf394ec5087621d5 Mon Sep 17 00:00:00 2001 From: Vojtech Horky Date: Tue, 5 Sep 2017 15:52:16 +0200 Subject: [PATCH] Test in VM: update QEMU network options --- test-in-vm.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test-in-vm.sh b/test-in-vm.sh index 2dfeb4d..70c289e 100755 --- a/test-in-vm.sh +++ b/test-in-vm.sh @@ -204,10 +204,8 @@ xx_start_machine() { local qemu_command="" local qemu_opts="" - local qemu_common_network_options="-device e1000,vlan=0 -net user \ - -redir udp:8080::8080 -redir udp:8081::8081 \ - -redir tcp:8080::8080 -redir tcp:8081::8081 \ - -redir tcp:2223::2223" + local qemu_common_network_options="-device e1000,vlan=0 \ + -net user,hostfwd=udp::8080-:8080,hostfwd=udp::8081-:8081,hostfwd=tcp::8080-:8080,hostfwd=tcp::8081-:8081,hostfwd=tcp::2223-:2223" local has_grub=false if [ "$XX_ARCH" == "ia32" ]; then qemu_command=qemu-system-i386 -- 2.11.4.GIT