aboutsummaryrefslogtreecommitdiff
path: root/kvmx
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-13 18:00:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-13 18:00:42 -0300
commitb495a4efce5b620b41c5c8463ed45860cef8daea (patch)
tree97818bc506f4fd05f6c3053413c4863d3cace670 /kvmx
parent85e1c1e9ca1acb346a4dd7b0d542467a5c57a9f3 (diff)
downloadkvmx-b495a4efce5b620b41c5c8463ed45860cef8daea.tar.gz
kvmx-b495a4efce5b620b41c5c8463ed45860cef8daea.tar.bz2
Enhance net_dns behavior
Diffstat (limited to 'kvmx')
-rwxr-xr-xkvmx4
1 files changed, 4 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 70de333..9575ef9 100755
--- a/kvmx
+++ b/kvmx
@@ -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"