diff --git a/qemu.go b/qemu.go index d835a06a2..42a2a9d7e 100644 --- a/qemu.go +++ b/qemu.go @@ -319,6 +319,9 @@ type NetDeviceType string const ( // TAP is a TAP networking device type. TAP NetDeviceType = "tap" + + // MACVTAP is a MAC virtual TAP networking device type. + MACVTAP = "macvtap" ) // NetDevice represents a guest networking device @@ -361,6 +364,8 @@ func (netdev NetDevice) Valid() bool { switch netdev.Type { case TAP: return true + case MACVTAP: + return true default: return false }