Change network on Nutanix AHV VM

Shares

From time to time you have to move a virtual machine from one network subnet to another. Nutanix Acropolis offers the functionality to change network on Nutanix AHV VM network adapter without the downtime or need to add\remove virtual NIC from a virtual machine. This feature is available in acli (in AOS 5.10). In the near future, the feature will be available in Prism UI as well. Command used to apply changes is vm.nic_update with parameters (an example is below)

vm.nic_update VM_NAME MAC_ADDRESS network=NETWORK

Below you can find example output from the command

<acropolis> vm.nic_get AWS-Win2k16-01 mac_addr=50:6b:8d:d9:0e:ad
50:6b:8d:d9:0e:ad {
  mac_addr: "50:6b:8d:d9:0e:ad"
  network_name: "VLAN568"
  network_type: "kNativeNetwork"
  network_uuid: "d26a8da7-adfd-4870-b64d-d377f27ecbd2"
  type: "kNormalNic"
  uuid: "72493bb9-a076-45e7-aa73-85a0ef7896f9"
  vlan_mode: "kAccess"
}
<acropolis> vm.nic_update AWS-Win2k16-01 50:6b:8d:d9:0e:ad network=VLAN56
VLAN567  VLAN568
<acropolis> vm.nic_update AWS-Win2k16-01 50:6b:8d:d9:0e:ad network=VLAN567
NicUpdate: complete
<acropolis> vm.nic_get AWS-Win2k16-01 mac_addr=50:6b:8d:d9:0e:ad
50:6b:8d:d9:0e:ad {
  mac_addr: "50:6b:8d:d9:0e:ad"
  network_name: "VLAN567"
  network_type: "kNativeNetwork"
  network_uuid: "7c19b244-bcc7-4186-9f09-84db45dec57f"
  type: "kNormalNic"
  uuid: "72493bb9-a076-45e7-aa73-85a0ef7896f9"
  vlan_mode: "kAccess"
}
<acropolis>

 

change network on live Nutanix AHV VM

In my other blog posts, you can find more examples of how to modify VM settings from the command line

0 0 votes
Article Rating

Artur Krzywdzinski

Artur is Consulting Architect at Nutanix. He has been using, designing and deploying VMware based solutions since 2005 and Microsoft since 2012. He specialize in designing and implementing private and hybrid cloud solution based on VMware and Microsoft software stacks, datacenter migrations and transformation, disaster avoidance. Artur holds VMware Certified Design Expert certification (VCDX #077).

You may also like...

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x

FOR FREE. Download Nutanix port diagrams

Join our mailing list to receive an email with instructions on how to download 19 port diagrams in MS Visio format.

NOTE: if you do not get an email within 1h, check your SPAM filters

You have Successfully Subscribed!

Pin It on Pinterest