Mar 30 2017

Change Nutanix AHV Virtual Machine Network Placement

This blog post will cover how to change virtual machine (VM) network adapter (NIC) to AHV network mapping. You got two options to do this:

  • PRISM – You need to delete the existing NIC and add a new one. This can be done while VM is running but you’ll lose the MAC address of the existing NIC.
  • ACLI – You can add and remove a NIC while the VM is running but if you want to just change the NIC mapping without having to delete the existing NIC which is possible via ACLI you need to shut down the VM first.

You can run the commands presented in this blog post on any Nutanix Controller Virtual Machine (CVM) in the Nutanix cluster which you access via CVM FQDN/IP address or via the Nutanix Cluster FQDN/IP address.

The UI based print screens are taken from PRISM which you access via the Nutanix Cluster IP FQDN (or the actual IP address) which is the recommended way or via a specific CVM FQDN/IP address.

My use case was to preserve the MAC address so I’ll show the acli way to change the VM NIC placement in the below steps:

  • Shut down the VM and verify what NIC you want to move to a different network. In my case I only got one NIC
  • Run the following command on any CVM to change the network placement and skip acli if you´re already in the acli shell which I’m since It provides you the excellent tab functionality.

  • Verify the changes via:
    • PRISM

      Make note of that the MAC address is preserved
    • acli using the following command (skip acli if you´re already in the acli shell):

  • Use PRISM to start the VM or run the following command to start the VM

The environment used for this test was AOS 5.0.1 and AHV 20160925.30.

1 comment

  1. Charan

    You have given an excellent info related VM and also netwrking concepts. I also found one more place with many downloads and info related to routers on Network Router

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">