mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 09:13:29 +00:00
hypervisor: Fix MacVTap internetworking support in ACRN
With MacVTap internetworking, Kata fails to launch containers with ACRN hypervisor. This was due to missing MAC address as part of virtio-net device when launching VM. This patch fixes this issue by adding the MAC address. Fixes: #2029 Signed-off-by: Vijay Dhanraj <vijay.dhanraj@intel.com>
This commit is contained in:
parent
87eca1fff1
commit
d51215878d
@ -427,6 +427,7 @@ func (netdev NetDevice) AcrnNetdevParam() []string {
|
||||
deviceParams = append(deviceParams, fmt.Sprintf(",mac=%s", netdev.MACAddress))
|
||||
case MACVTAP:
|
||||
deviceParams = append(deviceParams, netdev.IFName)
|
||||
deviceParams = append(deviceParams, fmt.Sprintf(",mac=%s", netdev.MACAddress))
|
||||
default:
|
||||
deviceParams = append(deviceParams, netdev.IFName)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user