Question

NIC not showing up in VM

  • 3 September 2021
  • 2 replies
  • 986 views

Badge +9

This seems like the place to post this, so please tell me if I need to move it.

I am trying to setup a lab with a Nutanix G3 3060 cluster running 5.15. Using AHV, which I don’t have a lot of experience with.

 

I think I am having a networking problem. For lab I’m only using 1GB connections.

On each link I have a native or untagged VLAN which the CVM’s use. I also have several other Tagged or Trunked VLANs that I want to use for other purposes in the lab.

The CMV’s are fine and the cluster comes up no problem. It has some complaints like NTP and the like, but it is otherwise good.

Under networking I added the other VLANs and their VLAN IDs.

I then created an OPNSense VM and gave it 2 NICs. One on the management VLAN. The same one the CVM’s use that is native. Then a second NIC with one of the tagged VLANs .

I have verified that both NICs are set to connected. I even tried adding a 3rd. The management NIC (untagged) comes up and I can access the VM, but the other one won’t. OPNSense is reporting that ether there is no NIC or no cable is connected.

I’m not sure what I did wrong here. Like I said I don’t have a lot of experience with AHV. My only thought is that it’s not presenting an access port to the VM and may be presenting the trunked port with VLAN tagging? Help!


2 replies

Userlevel 1
Badge +2

Hi @MattK 

If OPNSense require promiscuous mode to you can enable vNIC2 as trunk using this link https://portal.nutanix.com/page/documents/details?targetId=AHV-Admin-Guide-v5_15:ahv-vm-nic-set-mode-to-trunk-or-access-t.htmlyou can check status of NIC from CVM if its connected or not 

nutanix@cvm$ acli vm.nic_get <vm name>X.X.X.1 {  connected: True  ip_address: "X.X.X.1"...

** you should find three nics and status of each

Badge +9

Hi @MattK 

If OPNSense require promiscuous mode to you can enable vNIC2 as trunk using this link https://portal.nutanix.com/page/documents/details?targetId=AHV-Admin-Guide-v5_15:ahv-vm-nic-set-mode-to-trunk-or-access-t.htmlyou can check status of NIC from CVM if its connected or not 

nutanix@cvm$ acli vm.nic_get <vm name>X.X.X.1 {  connected: True  ip_address: "X.X.X.1"...

** you should find three nics and status of each

Thank you. This morning I brought up a windows VM and it sees both NIC’s. So now I think it might be something to do with OPNSence. Kind of disappointing. 

Reply