diff --git a/config/68-azure-sriov-nm-unmanaged.rules b/config/68-azure-sriov-nm-unmanaged.rules new file mode 100644 index 000000000..59cf73bb0 --- /dev/null +++ b/config/68-azure-sriov-nm-unmanaged.rules @@ -0,0 +1,4 @@ +# Accelerated Networking on Azure exposes a new SRIOV interface to the VM. +# This interface is transparently bonded to the synthetic interface, +# so NetworkManager should just ignore any SRIOV interfaces. +SUBSYSTEM=="net", DRIVERS=="hv_pci", ACTION=="add", ENV{NM_UNMANAGED}="1" diff --git a/setup.py b/setup.py index ee0d83923..8ab756b67 100755 --- a/setup.py +++ b/setup.py @@ -72,6 +72,7 @@ def set_openbsd_rc_files(data_files, dest="/etc/rc.d/", def set_udev_files(data_files, dest="/etc/udev/rules.d/", src=["config/66-azure-storage.rules", + "config/68-azure-sriov-nm-unmanaged.rules", "config/99-azure-product-uuid.rules"]): data_files.append((dest, src))