Skip to main content

Change VM NIC Mac Address Acropolis

  • February 8, 2016
  • 6 replies
  • 4063 views

seaton
Forum|alt.badge.img+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 replies.

6 replies

Forum|alt.badge.img+10
  • Adventurer
  • February 8, 2016
I believe this can be changed in the XML config for the VM

Jon
Nutanix Employee
Forum|alt.badge.img+29
  • Nutanix Employee
  • February 8, 2016
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

Forum|alt.badge.img+10
  • Adventurer
  • February 8, 2016
Thanks Jon. was not aware 🙂

seaton
Forum|alt.badge.img+13
  • Author
  • Trailblazer
  • February 9, 2016
many thanks that sorted it

Forum|alt.badge.img+12
  • Adventurer
  • September 15, 2016
Is this document available for CE only users?

William

Jon
Nutanix Employee
Forum|alt.badge.img+29
  • Nutanix Employee
  • September 16, 2016
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" ]