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:
Vijay Dhanraj 2019-09-04 14:28:11 -07:00
parent 87eca1fff1
commit d51215878d

View File

@ -427,6 +427,7 @@ func (netdev NetDevice) AcrnNetdevParam() []string {
deviceParams = append(deviceParams, fmt.Sprintf(",mac=%s", netdev.MACAddress)) deviceParams = append(deviceParams, fmt.Sprintf(",mac=%s", netdev.MACAddress))
case MACVTAP: case MACVTAP:
deviceParams = append(deviceParams, netdev.IFName) deviceParams = append(deviceParams, netdev.IFName)
deviceParams = append(deviceParams, fmt.Sprintf(",mac=%s", netdev.MACAddress))
default: default:
deviceParams = append(deviceParams, netdev.IFName) deviceParams = append(deviceParams, netdev.IFName)