samrocks1
Contributor
Contributor

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

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 

Labels (1)
0 Kudos
10 Replies
depping
Leadership
Leadership

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?

0 Kudos
samrocks1
Contributor
Contributor

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

 

Is it possible to do it ?

 

Cheers !

0 Kudos
depping
Leadership
Leadership

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.

0 Kudos
Arthos
Enthusiast
Enthusiast

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-4...

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.

0 Kudos
Hasaranga007
Contributor
Contributor

HI @Arthos 

Hi @Arthos  ,

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.

If you find this answer useful please give a Kudo.
Don't forget to follow me on Twitter @hasaranga007 |
LinkedIn : https://www.linkedin.com/in/hasaranga/
0 Kudos
Arthos
Enthusiast
Enthusiast

@Hasaranga007 

-> 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.

0 Kudos
samrocks1
Contributor
Contributor

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.

0 Kudos
scott28tt
VMware Employee
VMware Employee

"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?

 

0 Kudos
samrocks1
Contributor
Contributor

Spoiler
The design is very simple.Each nic card represents a different network altogether which performs different function on the guest.I will give you my detailed requirement,

HOST-                                                                                 GUEST(RHEL 7.8)
 
nic1(management interface) --------------------------------->eth0

nic2(network a)-----------------------------------------------> eth1

nic3(network b)----------------------------------------------> eth2

nic4(network c)----------------------------------------------->eth3

nic5 (network d)----------------------------------------------->eth4

nic6 (network e)------------------------------------------------> eth5

nic7 (network f)---------------------------------------------------> eth6

nic8(network g)---------------------------------------------------> eth7

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.

 

0 Kudos
scott28tt
VMware Employee
VMware Employee

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

 

0 Kudos