Solved

VM machines communication

Posted on 2014-03-17
11
253 Views
Last Modified: 2014-04-01
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.
0
Comment
Question by:jskfan
  • 4
  • 4
  • 3
11 Comments
 
LVL 117
ID: 39935740
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
0
 
LVL 55

Expert Comment

by:andyalder
ID: 39936518
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.
0
 

Author Comment

by:jskfan
ID: 39937785
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 ?
0
 
LVL 55

Accepted Solution

by:
andyalder earned 250 total points
ID: 39937859
Straight through the virtual switch on the host, no external network traffic would exist if it was a simple ping or remote control session. There could be some traffic on the SAN though since ping.exe would have to be transferred from the disk to RAM over the SAN before it could be executed.
0
 
LVL 117
ID: 39938064
The vSwitch the virtual machine port groups are connected to.
0
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 

Author Comment

by:jskfan
ID: 39947458
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.
0
 
LVL 55

Expert Comment

by:andyalder
ID: 39947655
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.
0
 

Author Comment

by:jskfan
ID: 39953348
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
0
 
LVL 117

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) earned 250 total points
ID: 39953473
That assumption is correct.
0
 
LVL 55

Expert Comment

by:andyalder
ID: 39953834
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.
0
 

Author Closing Comment

by:jskfan
ID: 39968678
Thank you Guys!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now