I have an ESXi 6.7u3 server which is running pfSense for my network. The problem is, I need to change this VMs network adapter, which connects the pfSense instance to the other VMs while bridged to a physical NIC for LAN.
So, if I power off the VM, I lose connectivity from LAN to the vmnic, other VMs and the management network.
I was hoping that I could do the change and it would be applied on next restart of the VM, but no. I think I also could reset the management network to the builtin NIC on the motherboard, but I had some issues getting the management interface back to the vmnic the last time, so I'd prefer to keep it as is.
Can I use esxcli
to do this change locally?
You don't need to to power off your VM to change the network, you can do that while it's running.
But to be on the safe side, you can also do this:
Customize System
->Troubleshooting options
->Enable ESXi Shell
alt
+f1
)go to the VM directory
get the VM World id and shutdown the VM
make a backup of the .vmx file
Edit the .vmx file (vi is available)
start the VM