From: Silvio Rhatto Date: Fri, 22 May 2020 14:25:00 +0000 (-0300) Subject: Fix: missing netdev option for newer qemu versions X-Git-Tag: 0.1.0~106 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e42b295ef928e79cf17fcc39429ded27ea19a84a;p=kvmx.git Fix: missing netdev option for newer qemu versions --- diff --git a/kvmx b/kvmx index 4995a03..204a25b 100755 --- 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