Understanding Standard Vswitches

Understanding Standard Vswitches

in the scenario where we have separate standard Vswitches as follows:

***on Vswitch0, there are only Vmotion Vmkernel port with VLAN ID 1135, and Vmkernel Management Network VLAND ID 1133

Vswitch0 has 2 Physical Network Adapters

***on Vswitch1 there are several VM Portgroups each VM Portgroup has a bunch of VMs and there is a Separate VLAN ID for each VM Portgroup

Vswitch1 has 2 Physical Network Adapters


***on Vswitch2, there are several VM Portgroups, no VLAN ID specified.
Vswitch 2 has no Physical Network Adapter.

Now are the Vswitches independant in Functions even if they are in the same ESX host? in other words will VMs from Vswitch1 and Vswitch2 be able to use the Vmkernel Vmotion on Vswitch0 to migrate to another ESX host?

regarding  Vswitch2 that does not have any Physical Network adapter, will its VMs be able to Migrate to a different ESX host using Vmkernel Vmotion on Switch0

Any clarification on this topic will be very much appreciated..

Thank you
jskfanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

QlemoBatchelor, Developer and EE Topic AdvisorCommented:
vMotion requires that the vSwitches are the same on all hosts, AFAIK. But which vSwitch vMotion uses is not related in any way to the vSwitches the VM sees - vMotion runs on a "higher" level (at the host level) without the VM knowing anything of it.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You can vMotion VMs from any host to any host!

BUT for VMs to maintain network connectivity YOU MUST ensure Virtual Machine Portgroup Labels MATCH across ESXi hosts!

It also helps that ALL networking on each ESXi host is identical otherwise after vMotion VM networking will fail

And ESXi or vCenter cannot check this for you
0
jskfanAuthor Commented:
I included Screenshot for clarity.

vm

it shows 3 Standard Vswitches.

I want to know if I am Correct or wrong.

For VMs that are in VSwitch1 if there is any  Vmotion happening to  another ESX Host, they should use the Vswitch0  (vmnic0 and vmnic1)

For VMs  that are in the Vswitch  without Network Adapter, those cannot be Vmotionned and cannot talk to any other VMs outside the  Vswitch they are in.   They are in a Silo.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
VMs which have no host uplink cannot communicate with any other VM which are not sharing the same vSwitch.

Now back to vMotion remember here that a VM does not use a vMotion VMKernel the Host uses the VMKernel to transfer VM data memory to another ESXi host.

VMs on either vSwitch CAN be vMotion if they pass the vMotion Prerequisite checker! E.g destination host is checked with source before a vMotion is started

E.g. Virtual Machine Portgroup Label Match
0
jskfanAuthor Commented:
on the Screenshot above, which VM can be Migrated(Vmotionned) to another ESX  host.?

Apparently you stated that the VMs on  the VSwitch that has No Network Adapters cannot be Migrated to another ESX hots.

What about the VMs on the Vswitch1 ?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
ALL CAN BE POSSIBLY BE MIGRATED!!!! BUT..... if the virtual machine portgroup does not exist on Destination Host - NO!

The vMotion Pre-requisite checked would not vMotion if the VM was not compatible with the Destination Host!

Just to re-enforce the issue,

example Virtual Machine called Cyrus-VOIP, hosted on esxdev002, connected to a Virtual Machine Portgroup called No Network. (on vSwitch2 - not that this makes any difference!)

Cannot be vMotion ?

see screenshot ?

2018-04-06-21_27_43-CYRUS-VCENTER1--.png
So I ask you a question based on the above WHY Cannot it be vMotion ?
0
jskfanAuthor Commented:
Andrew,

Assuming The constraints you indicated are taken care of..everything is good.


What I am asking is  looking at the Diagram I posted, whether VMs on Switch 1 can be migrated , even though they are in a separate Standard switch than where the Vmkernel Vmotion portgroup is located (on Vswitch0)
assuming there is consistency in the names of VM portgroups as well as VLAN IDs between the source ESX and the destination ESX host


***Just to confirm your statement earlier : the VMs on Vswitch that does not have Network Adpaters cannot be Migrated to a different ESX hosts, even if there is consistency in the name of VM Portgroups as well as VLAN IDs.  Correct ?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Andrew,

Assuming The constraints you indicated are taken care of..everything is good.

It's not No Network does not exist on any other Host, so they cannot be migrtated!


What I am asking is  looking at the Diagram I posted, whether VMs on Switch 1 can be migrated , even though they are in a separate Standard switch than where the Vmkernel Vmotion portgroup is located (on Vswitch0)
assuming there is consistency in the names of VM portgroups as well as VLAN IDs between the source ESX and the destination ESX host


***Just to confirm your statement earlier : the VMs on Vswitch that does not have Network Adpaters cannot be Migrated to a different ESX hosts, even if there is consistency in the name of VM Portgroups as well as VLAN IDs.  Correct ?

consistency in the name of VM Portgroups ONLY!

If you have a virtual machine port group Label which matches on the destination host it can be migrated, otherwise - No.

I cannot see your virtual machine portgroups because you've removed them all!

VLANs are never checked! There is an assumption that you have set up all the vSwitches on all your ESXi hosts identically.

All that's being matched is the virtual machine port group Label
0
jskfanAuthor Commented:
what about that Vswitch that has no Network Adapters.?. even if the VM Port Group Labels will match between source and destination, there will be no  Migration.   Correct ?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
what about that Vswitch that has no Network Adapters.?. even if the VM Port Group Labels will match between source and destination, there will be no  Migration.   Correct ?

I'm afraid wrong!

if both Source and Destination VM Port Group Labels match, it satisfies the condition, and you will be able to vMotion a VM!

Again VMware vSphere (ESXi) is not intelligent enough to check there is actual network traffic passing, and it's on the correct VLAN.

It's up to the VMware Engineer, Designed to ensure, ALL Hosts are identical and has tested working networking. (vSwitch do not need to be identical!)
0
jskfanAuthor Commented:
Mm... I thought when you put VM portgroup in a Vswitch that has no Network Adapters. It means those VMs in that VM portgroup are local to the ESX Host and cannot even communicate with other VMs in different Vswitch in the same ESX host.
in our case VMs in Vswitch with no Network Adapters will not be able to communicate with VMs in Vswitch1
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Mm... I thought when you put VM portgroup in a Vswitch that has no Network Adapters. It means those VMs in that VM portgroup are local to the ESX Host and cannot even communicate with other VMs in different Vswitch in the same ESX host.

That is correct, because the VMs cannot communicate beyond the vSwitch, because there are no uplinks in the host!

in our case VMs in Vswitch with no Network Adapters will not be able to communicate with VMs in Vswitch1

also correct.

BUT what has that to do with vMotion ?

Is a vMotion a HOST or GUEST Function ?
0
jskfanAuthor Commented:
Vmotion is a HOST function.

I was just trying to make sure that the Vms in the vswitch without Network Adpater cannot be migrated
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Correct

That's okay it's a very convenient method or creating isolated test environments a vSwitch with no uplinks.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
They could be migrated if you have virtual machine portgroups on other hosts which match there current host!

Nothing is impossible!
0
jskfanAuthor Commented:
the VM portgroup without Network Adapter in our diagram has a name scratched. Let 's say its name is ABC. if we have another ESX host in the same Datacenter ,same Cluster , that has the same configuration as this ESX on the diagram above , and a vSwitch with no Network Adapter and a VM port group with the name ABC..then the VMs from this ESX VM portgroup ABC still can be migrated to the other ESX  Vm Portgroup ABC ?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Yea
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Yes
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jskfanAuthor Commented:
Thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.