Change VM NIC Mac Address Acropolis | Nutanix Community
Skip to main content
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...
I believe this can be changed in the XML config for the VM
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
Thanks Jon. was not aware 🙂
many thanks that sorted it
Is this document available for CE only users?



William
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" ]