How to configure the HP SDN VAN Controller 2.4 on Ubuntu 12.04
- I built this to use as a demo facility, make sure you read the release notes for the version that you need, and follow the correct hardware requirements in a production environment -
Download Ubuntu 12.04 Server, 64 bit edition from:
http://releases.ubuntu.com/12.04/
Download the HP SDN Controller from:
https://h10145.www1.hp.com/downloads/SoftwareReleases.aspx?ProductNumber=J9863AAE
Hardware Spec's
I'm running the SDN Van controller in Hyper-V on my laptop, for test/demo purpose with the following spec's:
OS Install
Install Ubuntu Server onto your virtual host. Follow the installation guide wizard to install it with the default settings.
Once installed, log into / console onto the server, use the account you created during the install (it will have sudo permissions) and run the following commands to update the OS.
$ sudo apt-get update
$ sudo apt-get upgrade
NOTE: If you get a hash sum mismatch error when trying to update, then type this command:
$ sudo rm -rf /var/lib/apt/lists/*
and then try to run the update again
$ sudo apt-get update
$ sudo apt-get upgrade
I like to install SSH as the vmware/hyper-v console is a little clunky, it will also allow you to copy and paste the rest of the commands:
$ sudo apt-get install ssh
If you have DHCP running, then take a note of the IP Address using
$ ifconfig
if you need to configure a static IP address, then use vi to edit the configuration file
$ vi /etc/network/interfaces
It should look something like this:
# The primary network interface
auto eth0
iface eth0 inet static
address 10.0.0.1
netmask 255.255.255.0
gateway 10.0.0.254
dns-nameservers 10.0.0.254
OK, so now SSH is installed, and you have an IP address, use PuTTy to log into the Ubuntu server, and run the following commands to install the dependencies.
sudo apt-get install python-software-properties ubuntu-cloud-keyring
Now add the cloud repository - note that 2.4 uses the icehouse release archive.
$ sudo add-apt-repository cloud-archive:icehouse
Then update again
$ sudo apt-get update
Now install the remaining dependencies, and some apps I like to install
sudo apt-get install iperf vim htop unzip zip nmap screen keystone
Ok.... ready to start with the SDN app install now :)
Use WinSCP to copy the SDN Van 2.4 zip file to the Ubuntu server. Just copy it to the users home folder, eg /home/sdn
http://winscp.net/eng/download.php
now unzip the file
$ unzip VAN_SDN_Controller_2.4.5_hp-van-sdn-ctlr-2.4.5-x64.zip
Now you can unpack the debian package you just unzipped using dpkg
$ sudo dpkg --unpack hp-sdn-ctl_2.4.5.0614_amd64.deb
Now install the application, this will take some time as it will get the required dependencies
sudo apt-get install -f
Once you've done this, run the keystone command to create a local user
$ sudo /opt/sdn/admin/config_local_keystone
The service doesn't start automatically with 2.4, so start it manually using,
$ sudo service sdnc start
Wait 60 seconds, and you can verify the service is up and running using the following commands:
$ sudo service sdnc status
sdnc start/running, process 930
Check the web server is listening as well
$ netstat -an | grep 8443
tcp6 0 0 :::8443 :::* LISTEN
And now you can log into the SDN controller, using this URL.
https://x.x.x.x:8443/sdn/ui/
Username: sdn
Password: skyline
If you get a blank screen when trying to log in, then double check you have given the server enough ram, and tail the log file to check that everything has started.
tail -f /var/log/sdn/virgo/logs/log.log
Happy SDN'ing!