mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-10-12 21:54:59 +08:00
fix: Detect host mode networking (#1033)
This commit is contained in:
parent
138742c953
commit
7f31cb6023
@ -395,7 +395,7 @@ getInfo() {
|
|||||||
|
|
||||||
NIC=$(ethtool -i "$VM_NET_DEV" | grep -m 1 -i 'driver:' | awk '{print $(2)}')
|
NIC=$(ethtool -i "$VM_NET_DEV" | grep -m 1 -i 'driver:' | awk '{print $(2)}')
|
||||||
|
|
||||||
if [[ "${NIC,,}" != "veth" ]]; then
|
if [[ "${NIC,,}" != "veth" && "${NIC,,}" != "macvlan" ]]; then
|
||||||
[[ "$DEBUG" == [Yy1]* ]] && info "Detected NIC: $NIC"
|
[[ "$DEBUG" == [Yy1]* ]] && info "Detected NIC: $NIC"
|
||||||
error "This container does not support host mode networking!" && exit 29
|
error "This container does not support host mode networking!" && exit 29
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user