mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-08 01:18:32 +08:00
Support vhost in NAT mode
This commit is contained in:
parent
ba0c3eec6e
commit
0487eafabb
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user