Server Virtualization

Welcome to the Nutanix NEXT community. To get started please read our short welcome post. Thanks!

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing vlan of VM

SOLVED Go to solution
Outrider

Changing vlan of VM

How to change VLAN of VM created in AHV?
Thanks
Vivek
Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Moderator Moderator
Moderator

Re: Changing vlan of VM

Delete the vNic and remake it in a different VLAN.

Jon Kohler | Principal Architect, Nutanix | Nutanix NPX #003, VCDX #116 | @JonKohler
Please Kudos if useful!
4 REPLIES
Moderator Moderator
Moderator

Re: Changing vlan of VM

Delete the vNic and remake it in a different VLAN.

Jon Kohler | Principal Architect, Nutanix | Nutanix NPX #003, VCDX #116 | @JonKohler
Please Kudos if useful!
Highlighted
Trailblazer

Re: Changing vlan of VM

@Jon

 

I discussed this lately with one of my customers...

 

Isn't it possible to change the network with 

acli vm.nic_update

?

 

Should be much easier than deleting and re-adding a new nic... I am not sure this will work, but according to the documentation, it should...

 

Regards,

Bart 

Outrider

Re: Changing vlan of VM

Nope. This is for using VM NIC as trunk or access port to pass multiple VLAN on single VM NIC

Thanks
Vivek
Pathfinder

Re: Changing vlan of VM

It does work but you need to shutdown the VM first.

 

Do a vm.off "VMNAME"

 

Then do the following, Example:

 

<acropolis> vm.nic_update Test 50:6b:8d:f6:d0:9c network=VLAN\ 51