Configure Static IP on vCenter Virtual Appliance 5.5 via command line

One of the most common issues encountered with home labs is that the vCenter Appliance does not obtain an IP to access the quick start. This is usually because there is no DHCP server to pull an IP from, probably because your network is ring fenced for your Lab. The error message “No Networking Detected” is displayed. Looks familiar right..

Lets go through the steps preceding this and look at how to deploy the vCenter Virtual Appliance 5.5 (VCVA);

via VMware Workstation (most Home Lab Configs)

  1. Open VMware Workstation
  2. Click “File” > “Open”
  3. Browse to the downloaded OVA or OVF for the appliance
  4. Type a name for the imported virtual machine e.g vCenter
  5. Give a location for the storage location i.e My Documents > LabVMs
  6. Finish and let the import complete

via vClient connected to ESXi

  1. Login to your esxi host with vSphere Client
  2. Click “File – Deploy OVF Template”
  3. Browse to the downloaded OVA or OVF file for the appliance
  4. Type a name for the imported virtual machine e.g vCenter
  5. Select the data store you want to store it on, with default on the disk settings
  6. Provide networking details, or leave blank and configure later
  7. Finish the wizard and let the import complete

This is the “No Networking Detected” error you will get if you do not have a static IP configured on import, or if you import with all the defaults and the network is ring fenced without a DHCP server. Of course the other reason could be that the interface is facing the wrong network.. but we will assume that not to be the case here.

No Networking Detected

To fix this issue login to the vCenter Virtual Appliance 5.5 console (default username – root / password – vmware)  and type > hit enter;

/opt/vmware/share/vami/vami_config_net

vami_config_net script

At this point go ahead and run through options > 2, 3, 4, 5, 6 and 7 (if applicable) and use option one to save the config once done. Just a tip to have num lock on when you type the number inputs, and type exit at the command line to get back to the original vCenter Appliance blue screen. This script will allow you to configure, or even re-configure, the IP of the vCenter interface without logging into the management web page of the appliance.

Of course once you have done that check the config and run through initial set-up on the appliance management page at:- https://IP address or DNS name:5480

To start using your new vCenter access the Web Client at:- https://IP address or DNS name:9443/vsphere-client/

Hopefully this should get you through the situations where you have a vCenter Appliance deployed, but for some reason it did not pick up a DHCP IP for initial access and config!