I'm trying to solve a very specific problem to get a Palo Alto VM-series firewall online on Proxmox (not supported by Palo Alto but should work fine in KVM). The VM itself works fine, but I'm trying to give it three specific network interfaces: One virtio interface for the dedicated management interface (net0, registered as eth0 in the VM), and then a PCI-Passthrough'd Intel 82576 PCI Express card with two NICs.
This issue is the Palo Alto VM will always take the NIC with the lowest PCI-ID to be the mangement interface, and using hostpci0 to passthrough the card gives the two NICs on the card IDs of 00:01:00 and 00:01:00.1, while the virtio int has a PCI-ID of 00:06:12.
If I use hostpci3 instead of hostpci0, the Intel 82576 card's PCI-ID becomes 00:04:00 and 00:4.00.1, but is still lower than the virtio interface. I tried editing /usr/share/perl5/PVE/QemuServer/PCI.pm, /usr/share/perl5/PVE/QemuServer.pm , and /usr/share/qemu-server/pve-q35.cfg to allow for up to hostpci7 to be valid, which worked and put the PCI-ID at 00:08:00 and 00:08:00.1, but also pushed the virtio nic to a PCI-ID of 00:0a:12.
Is there a way I can manipulate some config files to raise the PCI-ID (slot number) of the passed-through Intel 82576 and/or lower the PCI-ID of the virtio net0? I obviously would prefer not to burn one of my two dedicated interfaces for management traffic.
Thank you in advance!
This issue is the Palo Alto VM will always take the NIC with the lowest PCI-ID to be the mangement interface, and using hostpci0 to passthrough the card gives the two NICs on the card IDs of 00:01:00 and 00:01:00.1, while the virtio int has a PCI-ID of 00:06:12.
If I use hostpci3 instead of hostpci0, the Intel 82576 card's PCI-ID becomes 00:04:00 and 00:4.00.1, but is still lower than the virtio interface. I tried editing /usr/share/perl5/PVE/QemuServer/PCI.pm, /usr/share/perl5/PVE/QemuServer.pm , and /usr/share/qemu-server/pve-q35.cfg to allow for up to hostpci7 to be valid, which worked and put the PCI-ID at 00:08:00 and 00:08:00.1, but also pushed the virtio nic to a PCI-ID of 00:0a:12.
Is there a way I can manipulate some config files to raise the PCI-ID (slot number) of the passed-through Intel 82576 and/or lower the PCI-ID of the virtio net0? I obviously would prefer not to burn one of my two dedicated interfaces for management traffic.
Thank you in advance!