Network card SR-IOV and nixos problem

Hello, I am struggling with a strange situation where nixos image is unable to use ‘sriov’ nic in a container, I can see eth0 with ip link but dhcp does not pick up an IP nor static binding gives routing. Bridged network is working well with the same nixos image. On the same server ubuntu images are working correctly without single issue with sriov as well.

Any hints?

So same Incus setup but Ubuntu containers work and NixOS ones don’t?

Maybe it has to do with the DHCP client?
Can you try manually running dhclient or a similar simple command line DHCP client.

1 Like

OK, it was my fault with static IP binding, I just set an incorrect netmask.

The network stack works, it seems that problems are related to nixos` systemd-networkd dhcp client - and it’s probably out of scope of Incus. !

Main problem with debugging is that nixos image does not have any other dhcp client than systemd.

Thanks

Yes I can confirm now that the reason is nixos’ systemd-networkd - I managed to replace it with a normal dhcpcd and that one works brilliantly.