Few days back one of my collegues, was trying to install OpenDaylight on 32Bit Virtual Box and couldn’t find all the instructions in one place, so he created step-by-step guide to install a 32Bit virtual box and Opendaylight.
With his permission, sharing it here.
Section A : Installing 32Bit Virtual Box
Step 1: yum install binutils qt gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel httd httd-devel unzip php-soap zip
Step 2: cd /etc/yum.repos.d/
Step 3: wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
Step 4: ls and make sure the virtualbox.repo is present
Step 5: yum install SDL
Step 6: reboot and update the kernel changes.
Step 7: Download the required virtualbox(4.2.12). You can get vesion VirtualBox-4.2-4.2.12 or VirtualBox-4.3-4.3.14_95030_el5-1
Step 8: install ‘rpm -ivh VirtualBox-4.3-4.3.14_95030_el5-1’
Step 9: Set vboxdrv service on in the default pool level
chkconfig vboxdrv on
Step 10: check the service status
service vboxdrv status
All these instructions are also available as part of a Youtube link here.
Section B : Installing 32 bit OpenDaylight OVA on Virtual Box.
Step 1: Download the SDN Hub Tutorial OVA from this link
Step 2: Open VirtualBox and import the ova and start the ova.
These steps help anyone willing to bring up their OpenDaylight & Dev environment inside an Ubuntu based virtual machine.
Please refer to Blinken’s blog for writing in detail about How to install OpenDaylight Controller on CentOS.
I suggest you follow his blog for this & come back here when you are at the step which says,
Configuring the Java variables
As per the OpenDaylight Documentation:
Prerequisite: JVM 1.7+ (JAVA_HOME should be set to environment)
Now this is important as above blog uses java 1.6 with which controller might not fireup. Here are the steps to find out what version of java you are running & now to install 1.7
Find out all the versions available: yum search java | grep 'java-'
In the above list you should have java-1.7.0-openjdk.x86_64 (or development). Once you find that, use below command to install the right dev kit.
yum install java-1.7.0-openjdk.x86_64
You can opt out to remove 1.6 via yum itself if you don’t need it. (Like us). This should do it, you can follow the rest of instructions on Blinken’s blog.
Other problem that you might face while clean/install of controller is OutOfMemory.
Refer to the OpenDaylight Troubleshooting to increase your PermGen space for maven.
With these two additional steps, we were able to get controller up & running.