diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-05-14 19:32:33 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-05-14 19:32:33 -0300 |
commit | 44d63e4998939079c4a1f0fecf352177c16ffcd6 (patch) | |
tree | b1502ccdd0dbce26846c3a1207782fd54776a1f8 | |
parent | b54bcfd68bcb854bf9733359de52f0df76e58713 (diff) | |
download | kvmx-44d63e4998939079c4a1f0fecf352177c16ffcd6.tar.gz kvmx-44d63e4998939079c4a1f0fecf352177c16ffcd6.tar.bz2 |
Fix: net: user: adds id param for the newer qemu
-rwxr-xr-x | kvmx | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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" |