NIC Passthrough with mac spoofing
-
Hi
I have a VM (opnsense) with multiple NICs passed through:
vm-param-get param-name=other-config uuid=9573800d-e20d-151d-23ff-0fe0b1c22565 bla: {blabla}; pci: 0/0000:07:00.0,0/0000:06:00.0,0/0000:05:00.0,0/0000:04:00.0,0/0000:03:00.0; blablabla; bla
And it works perfectly fine absolutely happy with it!
Checking on the xcp-ng host: ip a
8: xenbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000 link/ether 88:01:5b:bl:ab:la brd ff:ff:ff:ff:ff:ff
it lists the desired NIC with its real mac address. This is also reflected in opnsense and the same address is shown in the webui.
I would like to change the mac to a custom one and on opnsense i can set it just fine, however the connection with the custom mac do not work.
Found this https://xcp-ng.org/forum/topic/9351/pcie-nic-passing-through-dropped-packets-no-communication but I'm not sure if "pci=realloc=on" helps in this case.https://xcp-ng.org/docs/networking.html#full-mesh-network tells me how to change the mac on a non-passthrough device but cant see anything on passthrough
Or shall I just simply pif-forget & pif-introduce with the new mac?
pif-introduce host-uuid=host_uuid mac=mac_address_for_pif device=eth0 (or xenbr0?)Thanks for the inputs