VMware vSphere

 View Only
Expand all | Collapse all

How to pass all the physical nics directly to the guest.

  • 1.  How to pass all the physical nics directly to the guest.

    Posted Jun 03, 2021 07:56 AM

    Hi All,

    I am new to vmware esxi 7.0. I have 8 interfaces on my physical server and I want to pass all the 8 interfaces to the guest so that all the ip addresses assigned on the guest are pingable.

    What is the network design I should opt for ?

    I already tried by assigning a dedicated physical nic to a vSwitch and then creating a new port group.I assign these port group in order when I create a new virtual machine.This method works fine till i create 3 port groups and assign to the vm network menu but as soon as I increase it to 4 all the other interfaces in the guest stop pinging including the management network.

     

    Any leads will really be helpful 



  • 2.  RE: How to pass all the physical nics directly to the guest.

    Broadcom Employee
    Posted Jun 03, 2021 08:33 AM

    Why would you need to use physical interfaces for this? Wouldn't it be easier to use VLANs and configure the interfaces connected to the portgroup on which the VMs is attached to allow those VLANs?



  • 3.  RE: How to pass all the physical nics directly to the guest.

    Posted Jun 08, 2021 07:35 AM

    Thanks for the reply !!
    My software architecture forces me to pass each physical interface to the vm.

     

    Is it possible to do it ?

     

    Cheers !



  • 4.  RE: How to pass all the physical nics directly to the guest.

    Broadcom Employee
    Posted Jun 08, 2021 08:10 AM

    You may want to provide more details, which software? What is the Guest OS? As this appears to be a more a "gues os" issue then a VMware issue.



  • 5.  RE: How to pass all the physical nics directly to the guest.

    Posted Jun 10, 2021 09:59 AM

    Hi,

     

    The guest os is RHEL 7.7. I am highly confused about the network architecture which I should keep at the vmware level which will help me to work this out.



  • 6.  RE: How to pass all the physical nics directly to the guest.

    Posted Jun 10, 2021 10:09 AM

    "My software architecture forces me to pass each physical interface to the vm."

    What does that actually mean?

    Does your software need the bandwidth of the NICs? Does it need to be bound to specific MAC addresses? Does it only work with certain NIC drivers?

    Or something else?

     



  • 7.  RE: How to pass all the physical nics directly to the guest.

    Posted Jun 11, 2021 06:19 AM

    This is my simple requirement as of now.I have assigned each nic on the host to a vswitch respectively and attached to the respective portgroup.For eg,

    nic1(vswitch0)

    nic2(vswitch1)

    .

    .

    .

    so on.

    This method works for me for the first three nic on the guest and all first three interfaces are pingable.Once i attach the 4th network adapter,all the other 3 interfaces stop pinging.

     



  • 8.  RE: How to pass all the physical nics directly to the guest.

    Posted Jun 11, 2021 08:52 AM

    That doesn't really answer my question, never mind.

     



  • 9.  RE: How to pass all the physical nics directly to the guest.

    Posted Jun 17, 2021 05:45 AM

    Could you please detail the question as I am a newbie to the Vmware and virtualization.Do you want any other detail apart from the network architecture I am aiming for(which I have mentioned in the comment).

     

    Thanks !



  • 10.  RE: How to pass all the physical nics directly to the guest.

    Posted Jun 17, 2021 07:50 AM

    These questions:

    "My software architecture forces me to pass each physical interface to the vm." What does that actually mean?

    Does your software need the bandwidth of the NICs? Does it need to be bound to specific MAC addresses? Does it only work with certain NIC drivers?

    Or something else?



  • 11.  RE: How to pass all the physical nics directly to the guest.

    Posted Jun 08, 2021 11:44 AM

    There are other ways to solve your problem. But if you are specifically looking for assigning physical nics to vm.

    You can use PCI passthru functionality. Refer the below link , please.

    https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.networking.doc/GUID-386F225C-C890-4437-874B-449796423D4A.html

    Once the device is set for passthru. One can add it to a vm from vm settings. This requires full vm memory reservation.

     

    if it helps, consider marking it as helpful.



  • 12.  RE: How to pass all the physical nics directly to the guest.

    Posted Jun 09, 2021 07:20 AM

    HI  

    Hi   ,

    Just out of curiosity , can this be done with SR-IOV too ?

    Howabout , mapping one pNIC to a vSwitch and connect it to vmnic through a portgroup. In this case he needs 8 vSwitchs for the 8 pNIC.

    Are there any particular differences between SR-IOV , Passthrough  and above method ?

     

    Thanks .

    Hasaranga.



  • 13.  RE: How to pass all the physical nics directly to the guest.

    Posted Jun 10, 2021 06:34 AM

     

    -> Just out of curiosity , can this be done with SR-IOV too ?

    You can assign Virtual functions of a SRIOV nic to a VM . SRIOV enablement depends on nic capability/support.

    Howabout , mapping one pNIC to a vSwitch and connect it to vmnic through a portgroup. In this case he needs 8 vSwitchs for the 8 pNIC. 

    Yes.

    Are there any particular differences between SR-IOV , Passthrough  and above method ?

    SRIOV is creating multiple virtual function on a PCIe card which has limited capability. Passthru is directly assigning the PCIe card to a VM. Above method uses VMware network stack.



  • 14.  RE: How to pass all the physical nics directly to the guest.

    Posted Jun 17, 2021 05:43 AM

    I did this but the VM crashed and didnt come up.



  • 15.  RE: How to pass all the physical nics directly to the guest.

    Posted Jul 01, 2021 01:11 PM

    Hello Mates,

    I have virtualized my system using KVM and RHEL on host.I was able to check the connectivity of those interfaces by assigning IP's to the interfaces and then using ping -I <interface_name>.

     

    On vmware esxi host,

    esxcli network nic list
    Name PCI Device Driver Admin Status Link Status Speed Duplex MAC Address MTU Description
    ------ ------------ ------ ------------ ----------- ----- ------ ----------------- ---- -----------
    vmnic0 0000:17:00.0 igbn Up Up 1000 Full e4:43:4b:c0:b9:70 1500 Intel Corporation Gigabit 4P I350-t rNDC
    vmnic1 0000:17:00.1 igbn Up Up 1000 Full e4:43:4b:c0:b9:71 1500 Intel Corporation Gigabit 4P I350-t rNDC
    vmnic2 0000:17:00.2 igbn Up Up 1000 Full e4:43:4b:c0:b9:72 1500 Intel Corporation Gigabit 4P I350-t rNDC
    vmnic3 0000:17:00.3 igbn Up Up 1000 Full e4:43:4b:c0:b9:73 1500 Intel Corporation Gigabit 4P I350-t rNDC
    vmnic4 0000:65:00.0 i40en Up Up 1000 Full f8:f2:1e:8f:c4:00 1500 Intel(R) Ethernet Controller X710 for 10GbE SFP+
    vmnic5 0000:65:00.1 i40en Up Up 1000 Full f8:f2:1e:8f:c4:01 1500 Intel(R) Ethernet Controller X710 for 10GbE SFP+
    vmnic6 0000:65:00.2 i40en Up Up 1000 Full f8:f2:1e:8f:c4:02 1500 Intel(R) Ethernet Controller X710 for 10GbE SFP+
    vmnic7 0000:65:00.3 i40en Up Up 1000 Full f8:f2:1e:8f:c4:03 1500 Intel(R) Ethernet Controller X710 for 10GbE SFP+

     

    I have 8 nics.How can i do a similar thing here and check the connectivity of the interfaces .

     

    Thanks for the help,

    Sam



  • 16.  RE: How to pass all the physical nics directly to the guest.

    Posted Jul 01, 2021 01:18 PM

    My questions remain unanswered, and it isn't clear (to me at least) what your new comment means.

     



  • 17.  RE: How to pass all the physical nics directly to the guest.

    Broadcom Employee
    Posted Jul 01, 2021 02:13 PM

    if there's a vmkernel interface on the portgroup you can use "vmkping" to ping via that vmkernel interface