Contents of this page are obsolete. Please refer to Getting Started with ONOS screencast and Building ONOS instead.
Table of Contents | ||
---|---|---|
|
...
- Name: build, type: Linux:
- Select 2GB of RAM
- Hard disk: take the defaults: 8 GB and Create a virtual hard disk now
- Hard disk file type: VDI
- Storage on physical hard disk: Dynamically allocated
- File location and size: type "build" for the name - select at least 10 GB for the size of the virtual hard disk for the build VM
- Click on settings for the build VM:
- Storage: Controller IDE – click on the disk with a + sign symbol to add an optical drive. Choose disk: browse to the location of the downloaded iso file.
- Add a 2nd network adapter for host-only network (see the screenshot in the section for Creating onos-scratch VM.)
- System: Motherboard tab – uncheck floppy, move optical to the top in the Boot Order box.
- Install Ubuntu (use the same credentials as for the first Ubuntu VM). When the installation completes, power the VM on and login.
- Name: build, type: Linux:
Generate a SSH public key on your build machine if you hadn't done so in the past.
Login to the build machine and run the following command:Code Block language text build:~$ ssh-keygen -t rsa
The default options and no password are fine for this tutorial.
Verify connectivity. From the build machine you should be able to SSH to the onos-scratch VM using the IP address assigned to eth1:
Code Block language text build:~$ ssh -l sdn 192.168.56.101
If the ssh connection failed make sure that the openssh-server is installed by running:
Code Block language text $ sudo apt-get install openssh-server
Check that you can ping the onos-scratch VM by IP from the build machine and reverse, for example:
Code Block language text sdn@build:~$ ping 192.168.56.101
Close the ssh connection to the onos-scratch VM by typing exit.
2. Install required software
On the build machine
Install Git:
Code Block | ||
---|---|---|
| ||
build:~$ sudo apt-get install git-core |
Excerpt | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Install Karaf, Maven:Create two directories called ~/Downloads and ~/Applications. Download the Karaf 3.0.5 and Maven 3.3.9 binaries (the tar.gz versions of both) into ~/Downloads and extract it to ~/Applications. Keep the tar archives in ~/Downloads; we'll need that later.
Next, install Oracle Java 8:
It will ask you to acknowledge the license; do so when prompted. |
Clone the ONOS source:
Now let’s copy a repository into a new onos directory under the home directory on the build machine.
...
This will create a directory called onos, with the source code in it.
On the onos-scratch VM
The VM only requires Java 8 - follow the instructions for Java 8 above performed on the build VM.
...
Code Block | ||
---|---|---|
| ||
sdn@build:~$ nano . ~/.bashrc |
Add the line below at the end of the file:
...
Once you run the above command, you will see in the output of the env that command that several new variables, such as ONOS_ROOT, OCI, and KARAF_ROOT, have been set.
...
Return To : Tutorials and Walkthroughs
...
...