VMware Cloud Community
emba
Enthusiast
Enthusiast

COS: Find physical Adapter a VM is running on

hi guys,

if using "balance by orginating port-id" as load-balancing I would like to find out, which (physical) adapter a VM is currently running on.

do you know a specific console command for this issue? my workaround at the moment is to detect the vMAC on the physical switch, not really nice Smiley Happy

thx in advance!

0 Kudos
5 Replies
madda
Hot Shot
Hot Shot

With port ID load balancing on your teamed NICs, then the VM is technically running on both as the NIC used by a piece of traffic, is based on the virtual port where the traffic entered the virtual switch. So you could get 1 bit of traffic via 1 NIC, and another by the other NIC.

You might be able to trace a specific packet through a NIC, but in general it will use bot.

----- Mark Atherton
0 Kudos
emba
Enthusiast
Enthusiast

oops, I thought port-id would be more "static", i. e. VM1 uses uplink1, VM2 uplink2 and so on...?!?!

0 Kudos
madda
Hot Shot
Hot Shot

If they are using the same virtual switch for both VMs, then that is the way they it will work.

If you want a different VMs to use different NICs then you will need to setup seperate vswitches for each VM/NIC

----- Mark Atherton
0 Kudos
Texiwill
Leadership
Leadership

Hello,

Port ID is based on the port # within the vSwitch and the traffic could switch from pNIC to pNIC depending on load. No this is not necessarily static. Even so it is not possible for the SC to find out which pNIC the traffic is running over. You would have to look at the pSwitch to determine that or place a sniffer between the pNIC and pSwitch.


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

CIO Virtualization Blog: http://www.cio.com/blog/index/topic/168354

As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
emba
Enthusiast
Enthusiast

ok,

i will have to live with that. thanks for your help!

0 Kudos