mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 21:40:01 +08:00
NET_OPTS
This commit is contained in:
parent
9274bfa2ca
commit
02094b4426
@ -221,13 +221,14 @@ configureNetworks () {
|
|||||||
|
|
||||||
deviceID=($(setupBridge $iface "macvlan"))
|
deviceID=($(setupBridge $iface "macvlan"))
|
||||||
bridgeName="macvlan$deviceID"
|
bridgeName="macvlan$deviceID"
|
||||||
|
log "DEBUG" "bridgeName: $bridgeName"
|
||||||
|
|
||||||
# kvm configuration:
|
# kvm configuration:
|
||||||
let fd=$i+3
|
let fd=$i+3
|
||||||
NET_OPTS="$NET_OPTS -netdev tap,id=net$i,vhost=on,fd=$fd ${fd}<>/dev/macvtap$deviceID"
|
|
||||||
|
|
||||||
setupDhcp
|
NET_OPTS="-netdev tap,id=net$i,vhost=on,fd=$fd ${fd}<>/dev/macvtap$deviceID"
|
||||||
log "DEBUG" "bridgeName: $bridgeName"
|
NET_OPTS="-device virtio-net-pci,netdev=net$i,mac=$MAC $NET_OPTS"
|
||||||
NET_OPTS=" -device virtio-net-pci,netdev=net$i,mac=$MAC $NET_OPTS"
|
|
||||||
let i++
|
let i++
|
||||||
|
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user