Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

VM machines communication

In most environments , VMs are store in a SAN.
so in Vsphere client if we go to Networking, we'll see a virtual switch with 1 or more physical NICs and VM port group, the physical NICs of the Virtual Switch , if I understand are the ones plugged to ESX host…correct?

so if VM1 wants to talk to VM2 , while both are in the SAN, would VM1 will go out of the SAN NIC then through physical NIC on ESX host then come back through that physical NIC to the SAN NIC  in order to talk to VM2 which is in fact in the same SAN as VM1 ?

Any explanation will be very much appreciated.

Thank you.
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

The physical network interfaces in the host ESXi server physical uplinks are connected to a vSwitch.
So you are correct with your logic.

Its got nothing to do with SAN.

Network traffic leaves the VM via its network interface connected to a virtual machine port group.

The virtual machine port group is connected to a vSwitch.

If both VM1 and VM2 are connected to vSwitch traffic will pass between the VMs.

The host server controls communication to your SAN in the background via whatever topology that us...FC iSCSI or NFS
Avatar of Member_2_231077
Member_2_231077

The VMs reside on the SAN but they run on the host. Just like a PC the OS resides on a hard disk but it runs on the CPU/RAM. If you transfer a file from one VM to another then it does go SAN-VM-VM-SAN so does go over the SAN twice.
Avatar of jskfan

ASKER

VM1 and VM2 physical files are in the SAN , physical NIC that Virtual switch is connected to is on the ESX Host…so if VM1 wants to Talk to VM2 , what would be the route it will take ?
ASKER CERTIFIED SOLUTION
Avatar of Member_2_231077
Member_2_231077

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The vSwitch the virtual machine port groups are connected to.
Avatar of jskfan

ASKER

Andyalder:

I agree, the VM Operating System is in the SAN.
RAM/CPU and Network Adapter are on the ESX Host.

if the SAN is 30 feet away from ESX Host, then there should be some communication that goes between the VM OS located in the SAN and its Resources that are on ESX host..

 I Want to understand the communication road map…what are the entrance/exit points that the communication will take.
The VM doesn't run on the SAN, it is stored there. The communication between RAM and disk is exactly the same in a physical environment as in a virtual one except that in this case your VM's disk is separated from the host by Ethernet rather than SCSI cable.
Avatar of jskfan

ASKER

So there are still those trips between the VM OS in the SAN and RAM/CPU/NIC  which in ESX host.

for instance: let's say I have a script that runs on VM1 that copies files to VM2… (VM1 and VM2 are in the SAN)
I believes those files will not end up on VM2, without involving RAM/CPU/NIC adapters that are in ESX
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The file transfer I described a week ago - SAN to VM (on host), then VM to VM (on same host so no LAN traffic), then VM on host to SAN. The only way to avoid the file traversing the SAN twice is to use a shared filesystem such as StorNext and its client installed on each VM which is prohibitively expensive.
Avatar of jskfan

ASKER

Thank you Guys!