Change VM NIC Mac Address Acropolis

  • 8 February 2016
  • 6 replies
  • 3822 views

Userlevel 2
Badge +13
Hi all,

I have a requirement with one of our migrated servers to retain its original MAC Address due to licensing.

I've migrated the machine only to find these requirements post migration, so the Question is how can I change the VM MAC address?

Thanks,

Stephen...

This topic has been closed for comments

6 replies

Userlevel 6
Badge +29
Do not edit the local XML directly, as this is all controlled by Acropolis. Editing the local XML will just result in that being erased somewhere down the line.

Think of the local XML as ephemeral, which is fantastic, as its all managed in a distributed fashion within the cluster.

Anyhow, this is done via acli vm.nic_create

Syntax is documented here:
https://portal.nutanix.com/#/page/docs/details?targetId=AMF_Guide-Acr_v4_6:man_acli_vm_auto_r.html
Userlevel 6
Badge +29
No, as thats a commercial product doc.

But, its all the same as the in-built help, as we use that man page to generate the online documentation

acli help vm.nic_create should get you a lot of good info.

Either way, heres the contents on creating a NIC with a specific MAC

vm.nic_create vm [ip="ip_addr" ] [mac="mac_addr" ] [model="model" ] [network="network" ] [request_ip="{ true | false }" ] [trunked_networks="networks" ] [vlan_mode="vlan_mode" ]
Userlevel 2
Badge +10
I believe this can be changed in the XML config for the VM
Userlevel 2
Badge +10
Thanks Jon. was not aware 🙂
Userlevel 2
Badge +13
many thanks that sorted it
Userlevel 2
Badge +12
Is this document available for CE only users?

William