Pages

Friday 7 February 2014

How to add an additional NIC to vCenter Server Appliance 5.5 (VCSA)

The vCenter Server Appliance (VCSA) by default comes with one and only installed/configured vNIC. Sometimes there is a need to configure VCSA with additional one to allow connectivity on different virtual switches or networks.
As per my research, there's only some unofficial ways to this. A quick view into VCSA management web shows as only a single interface and no option or button to add subsequent one.

VCSA WebGUI -> Network ->Status

VCSA WebGUI -> Network ->Address
Theres a few articles found by Google referencing to vCSA v5.1, but not to 5.5 which I'm running. This was my starting point: http://vninja.net/virtualization/adding-secondary-nic-vcenter-5-1-appliance-vcsa/
I was not totally happy with all solution I found, so I scratched my head and realised  that we are talking about SuSE as an OS for VCSA!  If so, let's use old good YaST (Yet Another Setup Tool)! In this case YaST2.
OK, a first step is to add a vNIC to the configuration of VCSA's VM.

We see only a single vNIC present

A second vNIC has been added. We retain VMXNET3 as in the first one
Now is the time to log on to local console of VCSA as root.

Console's start screen
After the logon go to /inst-sys. There you'd find YaST2. Run it and navigate to Network Devices->Network Settings.

YaST2 Control Center initial screen

Our new vNIC will be easy to spot as it is 'Not configured'.

YaST2 Control Center - Network Settings

Let's focus on adding a static IP address. After entering all necessary fields (IP, subnet mask, hostname) press F10 to go next.

YaST2 Control Center - Network Card Setup

We will be back to Network Settings place. Press F10 to OK.
YaST2 Control Center - Network Settings

Networking configuration will be saved which takes a few seconds.
YaST2 Control Center - Saving Network Configuration

After a process of saving completes successfully, quit YaST2 and logoff from local console.
Now we can go back to VCSA Administration Web-GUI. Let's check what was changed on Networking tab.
vCSA WebGUI -> Network ->Status. Second interface is added
As you see we have now eth1 interface present and configured with IP address and mask we entered in YaST2.

VCSA Admin WebGUI -> Network ->Address
All the setting are present on Address tab as well and this in this place you can modify them as you need in the future.
This almost completes our exercise. Don't forget to test networking afterwards. A good idea is to make a snapshot of your VCSA before any manipulations.

Warning! This is my way of adding the second vNIC. I don't give any guarantee and I don't take any responsibility for what you do with your systems including VCSA.

Rafal

2 comments:

  1. Great post mate!
    the Yast approach makes the process rather efficient
    Weel done tks!

    ReplyDelete
  2. Great post!
    Thanks you very much

    ReplyDelete