From: Silvio Rhatto Date: Thu, 14 May 2020 22:32:33 +0000 (-0300) Subject: Fix: net: user: adds id param for the newer qemu X-Git-Tag: 0.1.0~108 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=44d63e4998939079c4a1f0fecf352177c16ffcd6;p=kvmx.git Fix: net: user: adds id param for the newer qemu --- diff --git a/kvmx b/kvmx index 2d6d7a7..eb1ee5b 100755 --- a/kvmx +++ b/kvmx @@ -464,8 +464,12 @@ function kvmx_up { fi if [ -z "$net" ] || [ "$net" == "user" ]; then - #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" + if [ "$new_qemu" == "0" ]; then + #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" + fi elif [ "$net" == "tap" ]; then # Thanks to kvm-manager tap="${VM}0"