]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Fix: missing netdev option for newer qemu versions
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 22 May 2020 14:25:00 +0000 (11:25 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 22 May 2020 14:25:00 +0000 (11:25 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 4995a033fa909d79f1b715f907611f3a138bc20b..204a25b4e13f691a80925cd8fac9545dff82a696 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -468,7 +468,7 @@ function kvmx_up {
       #net_opts="user,hostfwd=tcp:127.0.0.1:$SSH-:22,hostfwd=udp:127.0.0.1:$XDMCP_PORT-:177$hostfwd -net nic,model=$nic_model"
       net_opts="user,hostfwd=tcp:127.0.0.1:$SSH-:22$hostfwd -net nic,model=$nic_model"
     else
-      net_opts="user,id=net0,hostfwd=tcp:127.0.0.1:$SSH-:22$hostfwd -net nic,model=$nic_model"
+      net_opts="user,id=net0,hostfwd=tcp:127.0.0.1:$SSH-:22$hostfwd -net nic,netdev=net0,model=$nic_model"
     fi
   elif [ "$net" == "tap" ]; then
     # Thanks to kvm-manager