Assigning PCI ethernet interfaces to VMs in bhyve

Anish akgupt3 at gmail.com
Sun Apr 2 14:37:00 UTC 2017


Hi Daniel,
 For Intel cards only condition is that in the VM, these devices should
start at function 0 because of PCI enumeration, always starts at function
0. If you want to assign multiple ports to VM, it can be function 0 and any
other function, for example:

Host PCI dev 4/0/1 and 4/0/2 are to be assigned to guest at virtual PCI
slot 10, assignment can be:
4/0/1 -> 10/0
4/0/2 -> 10/1


Regards,
Anish

On Sun, Apr 2, 2017 at 3:09 AM, Daniel Tihanyi <tetragir at fastmail.fm> wrote:

> Hello,
>
> I have a FreeBSD host running VMs on bhyve. I already have a few PCI-X
> ethernet cards assigned to each of them, but only with one ethernet
> interface. I would like to purchase a few PCI-X Ethernet cards with 4
> interfaces. My question is if it is possible to assign the individual
> interfaces on the card to different VMs? On the bhyve Wiki, there is an
> example for this, but it is assigning the interfaces into the same VM,
> although to different slots. I am planning to use Intel cards for this
> of course. Has anyone experience in this?
> Thank you very much in advance!
>
> Daniel Tihanyi


More information about the freebsd-virtualization mailing list