Avatar of erlythornton
erlythornton

asked on 

Is there a VMware Web Services API command to change the VLAN assigned to a Virtual Nic on a Virtual Machine in VMware

Hello,

I am looking for a way to change the Virtual LAN that is assigned to a Virtual Network card in a Virtual Machine.  Currently we are starting up our VMs from templates that already have a NIC card assigned to a Virtual LAN.  There are however multiple LANs available in VCenter.  I am looking to see if there ia a command available in the Web Services SDK for VMware where I can dynamically instruct the Virtual Machine I started from that template to change the LAN it's Nic card is attached to.    If not the Web Services API is there another solution where this can be done?
Cloud ComputingVMware

Avatar of undefined
Last Comment
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
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

vSphere Web Access to Virtual Center, allows control of virtual machines, but unfortunately it does not allow you to change network interface network.

The same is also true of vCenter Mobile Access, that does not require vSphere vCenter but does require vCMA.

This is probably possible in using PowerCLI scripts.
Avatar of erlythornton
erlythornton

ASKER

Can you elaborate on the PowerCLI scripts?  Can you point me to the reference to this type or similar type of action and perhaps some example code?
ASKER CERTIFIED SOLUTION
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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Using PowerCLI, PowerGUI and the VMware Community Pack you can change the Network the Virtual Machine is connected to, just needed to browse around.

You select the Virtual Machine, Links, Network Adaptors, Change Properties.

 User generated image
So if you install the above, and connect to vSphere vCenter, you will be able to complete this with no development time.
VMware
VMware

VMware, a software company founded in 1998, was one of the first commercially successful companies to offer x86 virtualization. The storage company EMC purchased VMware in 1994. Dell Technologies acquired EMC in 2016. VMware’s parent company is now Dell Technologies. VMware has many software products that run on desktops, Microsoft Windows, Linux, and macOS, which allows the virtualizing of the x86 architecture. Its enterprise software hypervisor for servers, VMware vSphere Hypervisor (ESXi), is a bare-metal hypervisor that runs directly on the server hardware and does not require an additional underlying operating system.

39K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo