You are on page 1of 5

18/07/2016

ConfiguringvNetworkDistributedSwitchforVMwareViewmyvirtualcloud.net

Search

Search

Home
Author
Archive
NutanixIndex
VDICalculator
AlfredWFforNutanix
ProtocolCalculator

myvirtualcloud.net

ModifyingVMwareViewNetworkPorts
Reminder:CloudCampSydney2010v2,Aug6,2010
Aug042010

ConfiguringvNetworkDistributedSwitchfor
VMwareView
AvNetworkDistributedSwitchisanaggregationofperhostvirtualswitchespresentedand
controlledasasingledistributedswitchthroughvCenterServerattheDatacenterlevel.ThevDS
abstractsconfigurationofindividualvirtualswitchesandenablescentralizedprovisioning,
administration,andmonitoring.

ItisnothardtorealizehowaVMwareViewenvironmentwiththousandsofVMsandhundredsof
subnets,hostsandVLANscouldbenefitfromcentralizedadministration.Thetruthisthatwithout
dvSwitchesasimplenetworkchange,suchasaPortGroupcreation,couldendupbeingapainful
manualinterventiontoeachhost.Atbest,youhaveinhousePowershellskillsthischangecould
endupwiththecreationofacustomizedscript.
However,becauseofthewayVMwareViewLinkedCloningtechnologyworksitisnecessaryto
implementaparticularconfigurationinorderusedvSwitch.Butbeforemovingaheadletsseehow
dvSwitchesanddvPortGroupwork.
AdvPortGroupisagroupofdvPortsthatsharethesameconfigurationtemplate.Thisconfiguration
isinheritedfromthedvSwitchtothedvPortgroup.ESXhostskeepalocalcacheofthevDSand
DVPortinformation,tousewhenvCenterisunavailable:
HostDVPortstate:/etc/vmware/dvsdata.db
VMDVPortstate:/vmfs/volumes/<storage>/.dvsData
(botharenoneditablebinaryfiles)

WhenVMwareViewtriestorefresh,recomposeorrebalanceavirtualmachinemost
implementationsusingdvSwitcheswillendupwithanerrorthatsays:
Ageneralsystemerroroccurred:DVSerror:seefaultCause.CannotfindauseableportinDVS
dvSwitch.Thesourcevim.dvs.DistributeddVirtualPort116isinuse.DVSdvSwitchport116is
http://myvirtualcloud.net/?p=1012

1/5

18/07/2016

ConfiguringvNetworkDistributedSwitchforVMwareViewmyvirtualcloud.net

connectedtoentityreplica8d2f5e511c4449168ab8a3dd0fc4a293vnic

ThiserrorisdisplayedeveniftherearefreeportsinthedvSwitches.VMwareViewrefresh,
recomposeorrebalanceprocesseswilltryusethesameportthathasbeenalreadyassignedtothe
replica.

TheDVPortbindingtypesareasfollows:
StaticBinding(Default):meansthatthedvPortisassignedtothevirtualmachineatconfiguration
time.Whenalltheportsarebookedbyvirtualmachines,itisnotpossibletoconnecttoanymore
virtualmachines,regardlessofwhethertheconnectedvirtualmachinesarepoweredupornot,and
anerrormessageisdisplayed.TheassigneddvPortisimmediatelypushedtothehost,writtentothe
hostscacheandwrittenintheVMsvmxfile.
DynamicassignedwhentheVMispoweredon,andthenpushedtothehost.Thereisno
guaranteethattheVMwillgetthesameDVPortonthenextpoweron.Howeveritusesaconcept
similartoDHCPinthatifthesameportisavailablethenitwillrenewthatoneandthisallowsfor
overcommittingthenumberofdvPorts.
Ephemeral(NoBinding)anewportoneverypoweron.TheportisdestroyedwhentheVM
disconnectsfromtheport.ThisbehaviourresemblesthebehaviourinthestandardvSwitch.Ifyou
selectthisoption,thenumbersofportsareautomaticallysetto0,andthePortgroupallocatesone
portforeachconnectedvirtualmachine,uptothemaximumnumberofportsavailableinthe
Switch.

IfyourVMwareViewimplementationisusingLinkedCloningtechnology(ViewComposer)itis
vitaltosetthedvPortGroupPortBindingtoeitherDynamicorEphemeral(nobinding).Ipersonally
liketosetthemasEphemeralnobinding.

AfteryoucreatethedvPortGroupyouwillneedtochangethenetworkatyourMasterimagefrom
standardswitchtovDSwithdynamicorEphemeralportbindingandcreateanewsnapshot.After
thatyoumustrecomposeatestdesktopwiththenewsnapshot.
IfeverythingworksasexpecteditwillnotbenecessarytorecomposeallVMs(thiscouldtakea
longtimedependingonthesizeofyourenvironment).UsingthevNetworkDistributedSwitch
administrationinterfaceyouwillbeabletosimplychangethenetworkfromthestandardswitchto
vDS.DespitethisisanondisruptivetechnologyIrecommendasmalloutagewindowforthe
change.

VMwareKB1010593(vNetworkDistributedPortGroupconfiguration)providesadditional
informationonhowtoconfiguredvSwitches
AlthoughvNetworkDistributedSwitchesmayhaveadvantagesifcomparedwithStandard
vSwitchesasounddesignisrequiredinordertoprovidehighavailability.InmostcasesIwould
http://myvirtualcloud.net/?p=1012

2/5

18/07/2016

ConfiguringvNetworkDistributedSwitchforVMwareViewmyvirtualcloud.net

recommendahybridapproach.HereyouwillfindapostfromDuncanEppingwithPROsand
CONs.
Awhitepaper(VMwarevNetworkDistributedSwitch:MigrationandConfiguration)isalso
availablehere.
Tweet

Share

Share 0

vSphere5.0New.vswpfile&
StorageTaxonVDI
In"news"

VDICalculatorv7Now
Availablew/majorchanges
In"news"

VDICalculatorv6.5isNow
AvailableRaisingQuestionson
VDIMarket
In"storage"

8comments
1ping
Skiptocommentform

1.
DavidHenderson

11/02/2013at2:18am(UTC7)
WithvSphere5.1andView5.2istheuseofephemeralbindingstilltherecommendationfor
View?Iamexperiencingtheexactbehaviordescribedinthisarticlewhenrecomposingmy
linkedclonepooloutofportsonmyDVPortgroupeventhoughthereareplentyavailable.
ThisVMWareblogrecommendsusingstaticbindingoverepemeral
http://blogs.vmware.com/vsphere/2012/05/whyusestaticportbindingonvds.html
Whatisbestpracticehere?

2.
AndreLeibovici

11/02/2013at11:39am(UTC7)
David,yes,youshouldutilizeephemeralbinding.

3.
David

11/02/2013at1:07pm(UTC7)
Thanksforthequickreply.Onelastquestion.IfmyvCentergoesofflinewillmyView
desktopsthatarealreadycreatedstillwork?Wehavethemsetsoeverytimesomeonelogs
offtheyarerefreshed.IthoughtIreadsomewherethatephemeralbindingneedsvCenter

4.
AndreLeibovici

11/02/2013at3:44pm(UTC7)
Yes,theywillcontinuetowork.DespiteconfigurationsaredoneviavCenter,theintelligence
isallhostbased.Insayingthat,fornonpersistentdesktopshighlyrecommendedtoutilize
http://myvirtualcloud.net/?p=1012

3/5

18/07/2016

ConfiguringvNetworkDistributedSwitchforVMwareViewmyvirtualcloud.net

multiplevCenters.Seethishttp://myvirtualcloud.net/?p=5232

5.
Michael

01/25/2014at2:56pm(UTC7)
Iunderstandwhatthevmkportisinyourdiagram,butwhatdoesthescportstandfor?

6.
AndreLeibovici

01/26/2014at6:41pm(UTC7)
Michael,thisisanoldpost.InthepastESXusedtohaveaServiceConsoleport.Nowthisis
theManagementNetworkinESXiandnotfullfeaturedshellisavailableanymore.
Andre

7.
freddykid

03/04/2014at10:57am(UTC7)
Iamlookingintosomeerrorsthatlinkedtothisarticle,isthereaVMwaredocumentthat
describeswhyyoushouldnotusestaticbindingforvmviewlinkedclones?Ijustwantto
readuponitmore.Wehavesmallpoolsbutthedvportswereoriginallysetupasstatic.
Deletingavirtualmachineandthenhavingitrebuildbythecomposerhasalwaysworkedto
fixtheerror.

8.
Darwin

11/07/2014at8:37pm(UTC7)
Thatisagoodwayofaparticularconfiguration.Thanksforthisarticle.

1.View?????'sBlog
11/01/2010at12:15pm(UTC7)Linktothiscomment
[]ConfiguringvNetworkDistributedSwitchforVMwareView?http://myvirtualcloud.net/?
p=1012PagefilesandVDI.Notso[]

LeaveaReply
Enteryourcommenthere...

PopularPosts
FourFreeVDIoptionsforKVM
hypervisor
Nutanix4.7andAsterixFeatures
Overview(Beyond
RecipeofHowTofixmostVMware
ViewAgentissues
NewKVMVDIOpenSourceProject
Nutanix4.6FeaturesOverviewPart1
(Beyond
http://myvirtualcloud.net/?p=1012

4/5

18/07/2016

ConfiguringvNetworkDistributedSwitchforVMwareViewmyvirtualcloud.net

NutanixCEisNowAvailabletoAlland
itsFREE!
PCoIPBandwidthCalculatorand
SettingsGuideline
HowtoimproveVDIwithHardware
Accelerated3DGraphics
DiskLatency(anotherCaseStudy)
MultipleViewComposerServersagainst
singlevCenter

RecentPosts
HowtousePythonwithNutanixREST
APIPart3
HowtousePythonwithNutanixREST
APIPart2
HowtousePythonwithNutanixREST
APIPart1
Nutanix4.7andAsterixFeatures
Overview(BeyondMarketing)
FourAdvantagesofCapacity
ForecastingandAnalyticswith
Hyperconvergence

Tweetsby@andreleibovici
AndreLeibovici
@andreleibovici
@josh_odgersthanksJosh,butnotreally
thoughtleadership...justlogic.Startingw/
correctarchitectureveryimportantforfuture
proof
2h

AndreLeiboviciRetweeted
JoshOdgers
@josh_odgers

Morethoughtleadershiparounddatalocality
from2014...
Takesyearsforthefollowerstocatchon!
#HCItwitter.com/andreleibovici
4h

AndreLeibovici
@andreleibovici
Embed

ViewonTwitter

Copyright
2015myvirtualcloud.net.AllRightsReserved.
Returntotop
PoweredbyWordPressandtheGrapheneTheme.

http://myvirtualcloud.net/?p=1012

5/5

You might also like