diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-13 18:00:42 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-13 18:00:42 -0300 |
commit | b495a4efce5b620b41c5c8463ed45860cef8daea (patch) | |
tree | 97818bc506f4fd05f6c3053413c4863d3cace670 /kvmx | |
parent | 85e1c1e9ca1acb346a4dd7b0d542467a5c57a9f3 (diff) | |
download | kvmx-b495a4efce5b620b41c5c8463ed45860cef8daea.tar.gz kvmx-b495a4efce5b620b41c5c8463ed45860cef8daea.tar.bz2 |
Enhance net_dns behavior
Diffstat (limited to 'kvmx')
-rwxr-xr-x | kvmx | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -416,6 +416,10 @@ function kvmx_up { net_opts="tap,ifname=$tap,script=no,downscript=no,vlan=0,name=hostnet0 -device virtio-net-pci,vlan=0,id=net0,mac=$mac_address,bus=pci.0" fi + if [ ! -z "$net_dns" ] && [ "$net_dns" != "host" ]; then + net_opts="$net_opts,dns=$net_dns" + fi + if [ -z "$spice" ] || [ "$spice" == "1" ]; then spice_opts="-spice port=$PORT,addr=127.0.0.1,disable-ticketing,streaming-video=off,jpeg-wan-compression=never,playback-compression=off,zlib-glz-wan-compression=never,image-compression=off" spice_opts="$spice_opts -device virtio-serial-pci" |