Skip to main content

Since I started to play around with the Nutanix Community edition on my Homelab, after the first installation of the cluster I started having issue because I wanted to have specific NIC on the AHV host connected to a trunk link, so in the end having then a trunk and create networks on Nutanix and connected the VMs there.

So the first thing that I do is going to the Nutanix-CE VM and add a new network adapter but of course I was unable to see it on the UI nor in the shell on AHV directly.

Checking around the documentation and the community forum I found that the simplest way is to run a specific script that is basically doing a refresh of the network configuration, discover the new network adapter and then ask for add it.

Solution

The location of the script is:
If you add or replace a NIC you need to run this script directly in AHV via root account: 

    • For versions of AHV earlier than 20201105.30142: /root/nic_replace
    • For AHV 20201105.30142 and later: /usr/local/bin/nic_add_or_replace

More info here: https://portal.nutanix.com/page/documents/details/?targetId=NX8150G7-NIC-Replacement-AHV:ahv-nic-add-ahv-t.html

This is the configuration of my Nested Nutanix CE node that is running on my vSphere Homelab

Here below how the configuration of the Physical Nics is seen in Nutanix Prism

Now what I’m doing is adding another Network Adapter on the Nutanix CE VM, this is fairly easy since is a nested environment. 

As you can see nothing changed in the Prism UI, so I can’t see the new network adapter on the network configuration.

At this point I’ll connect with ROOT user via SSH to the Nutanix node 01, and launch the script:
 /usr/local/bin/nic_add_or_replace

and then type yes when the script is asking about what to do.

N.B: if you forgot the default password is: nutanix/4u

 

Now if we switch back to the PRISM UI and we look at the available network adapters you will see that now you can see the newly added network interface.

I hope this could help, please comment if something seems missing to you or you want to share your feedback.

Thanks

Leave a Reply

Giovanni Dominoni's Tech Blog