Unverified Commit 41396fe4 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Support vhost in NAT mode

parent eb5efd32
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -144,10 +144,7 @@ configureNAT () {
  NET_OPTS="-netdev tap,ifname=${VM_NET_TAP},script=no,downscript=no,id=hostnet0"

  { exec 40>>/dev/vhost-net; rc=$?; } || :

  if (( rc == 0 )); then
    NET_OPTS="$NET_OPTS,vhost=on,vhostfd=40"
  fi
  (( rc == 0 )) && NET_OPTS="$NET_OPTS,vhost=on,vhostfd=40"

  # Build DNS options from container /etc/resolv.conf