<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://osm.etsi.org/wikipub/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cristbal</id>
	<title>OSM Public Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://osm.etsi.org/wikipub/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cristbal"/>
	<link rel="alternate" type="text/html" href="https://osm.etsi.org/wikipub/index.php/Special:Contributions/Cristbal"/>
	<updated>2026-05-14T13:45:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>https://osm.etsi.org/wikipub/index.php?title=OpenVIM_installation_(Release_TWO)&amp;diff=1637</id>
		<title>OpenVIM installation (Release TWO)</title>
		<link rel="alternate" type="text/html" href="https://osm.etsi.org/wikipub/index.php?title=OpenVIM_installation_(Release_TWO)&amp;diff=1637"/>
		<updated>2017-06-26T09:39:30Z</updated>

		<summary type="html">&lt;p&gt;Cristbal: /* Creating a new tenant */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
=Infrastructure=&lt;br /&gt;
In order to run openvim in normal mode (see below the available modes) and deploy dataplane VNFs, an appropriate infrastructure is required. Below a reference architecture for an openvim-based DC deployment.&lt;br /&gt;
&lt;br /&gt;
[[File:OpenvimDC.png|500px|Openvim Datacenter infrastructure]]&lt;br /&gt;
&lt;br /&gt;
Openvim needs to be accessible from Resource Orchestrator (openmano).&lt;br /&gt;
Openvim needs:&lt;br /&gt;
* To make its API accesible from Resource Orchestrator (openmano). That&#039;s the purpose of the VIM mgmt network in the figure.&lt;br /&gt;
* To be connected to all compute servers through a network, the DC infrastructure network in the figure.&lt;br /&gt;
* To offer management IP addresses to VNFs for VNF configuration from CM (Juju server). That&#039;s the purpose of the Telco/VNF management network.&lt;br /&gt;
&lt;br /&gt;
Compute nodes, besides being connected to the DC infrastructure network, must also be connected to two additional networks:&lt;br /&gt;
*Telco/VNF management network, used by Configuration Manager (Juju Server) to configure the VNFs&lt;br /&gt;
*Inter-DC network, optionally required to interconnect this datacenter to other datacenters (e.g. in MWC&#039;16 demo, to interconnect the two sites).&lt;br /&gt;
&lt;br /&gt;
VMs will be connected to these two networks at deployment time if requested by openmano.&lt;br /&gt;
&lt;br /&gt;
=VM creation (openvim server)=&lt;br /&gt;
* Requirements:&lt;br /&gt;
** 1 vCPU (2 recommended)&lt;br /&gt;
** 4 GB RAM (4 GB are required to run OpenDaylight controller; if the ODL controller runs outside the VM, 2 GB RAM are enough)&lt;br /&gt;
** 40 GB disk&lt;br /&gt;
** 3 network interfaces to:&lt;br /&gt;
*** OSM network (to interact with RO)&lt;br /&gt;
*** DC intfrastructure network (to interact with the compute servers and switches)&lt;br /&gt;
*** Telco/VNF management network (to provide IP addresses via DHCP to the VNFs) &lt;br /&gt;
*Base image: ubuntu-16.04-server-amd64&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
Openvim is installed using a script:&lt;br /&gt;
 wget -O install-openvim.sh &amp;quot;https://osm.etsi.org/gitweb/?p=osm/openvim.git;a=blob_plain;f=scripts/install-openvim.sh;hb=1ff6c02ecff38378a4d7366e223cefd30670602e&amp;quot;&lt;br /&gt;
 chmod +x install-openvim.sh&lt;br /&gt;
 sudo ./install-openvim.sh -q   # --help  for help on options&lt;br /&gt;
 # NOTE: you can provide optionally the admin user (normally &#039;root&#039;) and password of the database.&lt;br /&gt;
&lt;br /&gt;
Once installed, manage it with &#039;&#039;&#039;sudo service osm-openvim start|stop|restart&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Logs are at &#039;&#039;&#039;/var/log/osm/openvim.log&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Configuration file is at &#039;&#039;&#039;/etc/osm/openvimd.cfg&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Thre is a CLI client called &#039;&#039;&#039;openvim&#039;&#039;&#039;. Type &amp;quot;openvim config&amp;quot; to see the configuration bash variables&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Openflow controller==&lt;br /&gt;
For normal or OF only openvim modes you will need a openflow controller. The following openflow controllers are supported:&lt;br /&gt;
&lt;br /&gt;
===Floodlight version 0.90===&lt;br /&gt;
You can install e.g. floodlight-0.90. The script &#039;&#039;&#039;openvim/scripts/install-floodlight.sh&#039;&#039;&#039; makes this installation for you. And the script &#039;&#039;&#039;service-floodlight&#039;&#039;&#039; can be used to start/stop it in a screen with logs.&lt;br /&gt;
 $ sudo openvim/scripts/install-floodlight.sh&lt;br /&gt;
 $ service-floodlight start&lt;br /&gt;
&lt;br /&gt;
===ONOS===&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: This tutorial assumes you are developing ONOS in &#039;&#039;DevelVM&#039;&#039; and deploying it on &#039;&#039;DeployVM&#039;&#039; (which is the one in which OpenVIM runs)&lt;br /&gt;
&lt;br /&gt;
==== System requirements ====&lt;br /&gt;
* 2GB or more RAM (I personally recommend at least 4GB)&lt;br /&gt;
* 2 or more processors&lt;br /&gt;
* Ubuntu 14.04 LTS or 16.04 LTS (Checked with both distros)&lt;br /&gt;
&lt;br /&gt;
==== Software requirements ====&lt;br /&gt;
===== Maven =====&lt;br /&gt;
Install Maven 3.3.9 on your Apps directory&lt;br /&gt;
&lt;br /&gt;
 $ cd ~&lt;br /&gt;
 $ mkdir Apps&lt;br /&gt;
 $ wget http://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz&lt;br /&gt;
 $ tar -zxvf apache-maven-3.3.9-bin.tar.gz -C ./Apps/&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; Although ONOS has been migrated to Buck, maven was used in earlier releases.&lt;br /&gt;
&lt;br /&gt;
===== Karaf =====&lt;br /&gt;
Install Karaf 3.0.5 on your Apps directory&lt;br /&gt;
&lt;br /&gt;
 $ cd ~&lt;br /&gt;
 $ wget http://archive.apache.org/dist/karaf/3.0.5/apache-karaf-3.0.5.tar.gz&lt;br /&gt;
 $ tar -zxvf apache-karaf-3.0.5.tar.gz -C ./Apps/&lt;br /&gt;
&lt;br /&gt;
===== Java 8 =====&lt;br /&gt;
Install Java 8&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install software-properties-common -y&lt;br /&gt;
 $ sudo add-apt-repository ppa:webupd8team/java -y&lt;br /&gt;
 $ sudo apt-get update&lt;br /&gt;
 $ sudo apt-get install oracle-java8-installer oracle-java8-set-default -y&lt;br /&gt;
&lt;br /&gt;
Set your JAVA_HOME&lt;br /&gt;
&lt;br /&gt;
 export JAVA_HOME=/usr/lib/jvm/java-8-oracle&lt;br /&gt;
&lt;br /&gt;
Verify it with the following command&lt;br /&gt;
&lt;br /&gt;
$ env | grep JAVA_HOME&lt;br /&gt;
&lt;br /&gt;
JAVA_HOME=/usr/lib/jvm/java-8-oracle&lt;br /&gt;
&lt;br /&gt;
==== Download latest ONOS ====&lt;br /&gt;
 $ git clone https://gerrit.onosproject.org/onos&lt;br /&gt;
 $ cd onos&lt;br /&gt;
 $ git checkout master&lt;br /&gt;
&lt;br /&gt;
Edit &#039;&#039;onos/tools/dev/bash_profile&#039;&#039; and set the correct path for ONOS_ROOT, MAVEN and KARAF_ROOT&lt;br /&gt;
&lt;br /&gt;
 # Please note that I am using my absolute paths here, yours may be different&lt;br /&gt;
 export ONOS_ROOT=${ONOS_ROOT:-~/onos}&lt;br /&gt;
 export MAVEN=${MAVEN:-~/Apps/apache-maven-3.3.9}&lt;br /&gt;
 export KARAF_ROOT=${KARAF_ROOT:-~/Apps/apache-karaf-$KARAF_VERSION}&lt;br /&gt;
&lt;br /&gt;
Edit &#039;&#039;~/.bashrc&#039;&#039; and add the following line at the end:&lt;br /&gt;
&lt;br /&gt;
 #Please note that I am specifying here the absolute path of the bash_profile file in my machine, it may be different in yours&lt;br /&gt;
 . ~/onos/tools/dev/bash_profile&lt;br /&gt;
&lt;br /&gt;
Reload .bashrc or log out and log in again to apply the changes&lt;br /&gt;
&lt;br /&gt;
 . ~/.bashrc&lt;br /&gt;
&lt;br /&gt;
==== Build and deploy ONOS ====&lt;br /&gt;
If you are using an stable release below 1.7, please use maven, otherwise, use Buck. Depending on which tool you use to build ONOS, the deployment procedure is also different.&lt;br /&gt;
&lt;br /&gt;
===== Build with maven =====&lt;br /&gt;
 $ mci # Alias for mvn clean install&lt;br /&gt;
 $ op&lt;br /&gt;
&lt;br /&gt;
===== Build with Buck =====&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; ONOS currently uses a modified version of Buck, which has been packaged with ONOS. Please use this version until our changes have been upstreamed and released as part of an official Buck release.&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install zip unzip &lt;br /&gt;
 $ cd $ONOS_ROOT&lt;br /&gt;
 $ tools/build/onos-buck build onos --show-output&lt;br /&gt;
 Updating Buck...&lt;br /&gt;
   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current&lt;br /&gt;
                                  Dload  Upload   Total   Spent    Left  Speed&lt;br /&gt;
 100 43.8M  100 43.8M    0     0   172k      0  0:04:20  0:04:20 --:--:--  230k&lt;br /&gt;
 Archive:  cache/buck-v2016.11.12.01.zip&lt;br /&gt;
   inflating: buck                    &lt;br /&gt;
  extracting: .buck_version           &lt;br /&gt;
    creating: plugins/&lt;br /&gt;
   inflating: plugins/onos.jar        &lt;br /&gt;
   inflating: plugins/yang.jar        &lt;br /&gt;
 Successfully updated Buck in /home/alaitz/Code/onos/bin/buck to buck-v2016.11.12.01.zip&lt;br /&gt;
 &lt;br /&gt;
 Not using buckd because watchman isn&#039;t installed.&lt;br /&gt;
 [-] PROCESSING BUCK FILES...FINISHED 3.1s [100%] 🐳  New buck daemon&lt;br /&gt;
 [+] DOWNLOADING... (0.00 B/S, TOTAL: 0.00 B, 0 Artifacts)&lt;br /&gt;
 [+] BUILDING...1m47.9s [99%] (720/721 JOBS, 720 UPDATED, 720 [99.9%] CACHE MISS)&lt;br /&gt;
  |=&amp;gt; IDLE&lt;br /&gt;
  |=&amp;gt; IDLE&lt;br /&gt;
  |=&amp;gt; IDLE&lt;br /&gt;
  |=&amp;gt; //tools/package:onos-package...  9.9s (checking local cache)&lt;br /&gt;
  |=&amp;gt; IDLE&lt;br /&gt;
  |=&amp;gt; IDLE&lt;br /&gt;
  |=&amp;gt; IDLE&lt;br /&gt;
  |=&amp;gt; IDLE&lt;br /&gt;
 The outputs are:&lt;br /&gt;
 //tools/package:onos-package buck-out/gen/tools/package/onos-package/onos.tar.gz&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Sources:&#039;&#039;&#039;&lt;br /&gt;
* Onos with Maven: https://wiki.onosproject.org/display/ONOS/Installing+and+Running+ONOS&lt;br /&gt;
* Onos with Buck: https://wiki.onosproject.org/display/ONOS/Developer+Guide&lt;br /&gt;
&lt;br /&gt;
==== Run ONOS ====&lt;br /&gt;
 $ cd $ONOS_ROOT&lt;br /&gt;
 $ tools/build/onos-buck run onos-local -- clean debug&lt;br /&gt;
&lt;br /&gt;
===OpenDayLight===&lt;br /&gt;
TBC&lt;br /&gt;
&lt;br /&gt;
== DHCP server (Bridge)==&lt;br /&gt;
&lt;br /&gt;
Openvim has two options for overlay network management &#039;bridge&#039; and &#039;ovs&#039;. (network_type at openvimd.cfg). For &#039;bridge&#039; type, openvim relays on precreated bridges at compute nodes that has L2 connectivity using e.g. a switch in trunk mode. In this mode you should provide an external DHCP server for the management network. This section describes how to install such a dhcp server base on the isc-dhcp-server package. &lt;br /&gt;
&lt;br /&gt;
It can be installed in the same or in a different machine where openvim is running, meanwhile it has L2 connectivity with the compute nodes bridges and ssh access from openvim (in case it is installed on a different machine)&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
&lt;br /&gt;
 Ubuntu 14.04:  sudo apt-get install dhcp3-server&lt;br /&gt;
 Ubuntu 16.04:  sudo apt install isc-dhcp-server&lt;br /&gt;
&lt;br /&gt;
Configure it editing file &#039;&#039;&#039;/etc/default/isc-dhcp-server&#039;&#039;&#039; to enable DHCP server in the appropriate interface, the one with L2 connectivity (e.g. eth1).&lt;br /&gt;
&lt;br /&gt;
 $ sudo vi /etc/default/isc-dhcp-server&lt;br /&gt;
 INTERFACES=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Edit file &#039;&#039;&#039;/etc/dhcp/dhcpd.conf&#039;&#039;&#039; to specify the subnet, netmask and range of IP addresses to be offered by the server.&lt;br /&gt;
&lt;br /&gt;
 $ sudo vi /etc/dhcp/dhcpd.conf&lt;br /&gt;
 ddns-update-style none;&lt;br /&gt;
 default-lease-time 86400;&lt;br /&gt;
 max-lease-time 86400;&lt;br /&gt;
 log-facility local7;&lt;br /&gt;
 option subnet-mask 255.255.0.0;&lt;br /&gt;
 option broadcast-address 10.210.255.255;&lt;br /&gt;
 subnet 10.210.0.0 netmask 255.255.0.0 {&lt;br /&gt;
  range 10.210.1.2 10.210.1.254;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Restart the service:&lt;br /&gt;
&lt;br /&gt;
 sudo service isc-dhcp-server restart&lt;br /&gt;
&lt;br /&gt;
Create a script called &amp;quot;get_dhcp_lease.sh&amp;quot; accesible from PATH (e.g. at /usr/local/bin) with this content:&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 awk &#039;&lt;br /&gt;
  ($1==&amp;quot;lease&amp;quot; &amp;amp;&amp;amp; $3==&amp;quot;{&amp;quot;){ lease=$2; active=&amp;quot;no&amp;quot;; found=&amp;quot;no&amp;quot; }&lt;br /&gt;
  ($1==&amp;quot;binding&amp;quot; &amp;amp;&amp;amp; $2==&amp;quot;state&amp;quot; &amp;amp;&amp;amp; $3==&amp;quot;active;&amp;quot;){ active=&amp;quot;yes&amp;quot; }&lt;br /&gt;
  ($1==&amp;quot;hardware&amp;quot; &amp;amp;&amp;amp; $2==&amp;quot;ethernet&amp;quot; &amp;amp;&amp;amp; $3==tolower(&amp;quot;&#039;$1&#039;;&amp;quot;)){ found=&amp;quot;yes&amp;quot; }&lt;br /&gt;
  ($1==&amp;quot;client-hostname&amp;quot;){ name=$2 }&lt;br /&gt;
  ($1==&amp;quot;}&amp;quot;){ if (active==&amp;quot;yes&amp;quot; &amp;amp;&amp;amp; found==&amp;quot;yes&amp;quot;){ target_lease=lease; target_name=name}}&lt;br /&gt;
  END{printf(&amp;quot;%s&amp;quot;, target_lease)} #print target_name&lt;br /&gt;
 &#039; /var/lib/dhcp/dhcpd.leases&lt;br /&gt;
&lt;br /&gt;
Give execution rights to this file:&lt;br /&gt;
 chmod +x /usr/local/bin/get_dhcp_lease.sh&lt;br /&gt;
&lt;br /&gt;
Finally configure &#039;&#039;&#039;openvimd.cfg&#039;&#039;&#039; with the location and credentials of the installed dhcp_server:&lt;br /&gt;
 dhcp_server:&lt;br /&gt;
   host:     host-ip-or-name&lt;br /&gt;
   provider: isc-dhcp-server  #dhcp-server type&lt;br /&gt;
   user:     user&lt;br /&gt;
   #provide password, or key if needed&lt;br /&gt;
   password: passwd&lt;br /&gt;
   #keyfile:     ssh-access-key&lt;br /&gt;
   #list of the previous bridges interfaces attached to this dhcp server&lt;br /&gt;
   bridge_ifaces:   [ virbrMan1 ]&lt;br /&gt;
&lt;br /&gt;
== OVS controller==&lt;br /&gt;
 &lt;br /&gt;
Openvim has two options for overlay network management &#039;bridge&#039; and &#039;ovs&#039;. (network_type at openvimd.cfg). For &#039;ovs&#039; type, openvim creates a ovs vxlan tunnel and launches a dhcp server in the ovs_controller. The ovs_controller can be on a different or on the same machine where openvim is running.&lt;br /&gt;
&lt;br /&gt;
Some preparation is needed to configure the ovs_controller:&lt;br /&gt;
&lt;br /&gt;
Execute &#039;&#039;&#039;scripts/configure-dhcp-server-UBUNTU16.0.4.sh&#039;&#039;&#039; on the machine where ovs_controller will run. Can be placed in the same Openvim VM or in a new one. &lt;br /&gt;
&lt;br /&gt;
 $sudo ./openvim/scripts/configure-dhcp-server-UBUNTU16.0.4.sh &amp;lt;user-name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Modify &#039;&#039;&#039;openvimd.cfg&#039;&#039;&#039; and add net controller connection details:&lt;br /&gt;
&lt;br /&gt;
 network_type : ovs&lt;br /&gt;
 ovs_controller_ip:        &amp;lt;net controller ip&amp;gt;    # dhcp controller IP address, must be change in &lt;br /&gt;
                                                  # order to reach computes. &lt;br /&gt;
 ovs_controller_user:      &amp;lt;net controller user&amp;gt;  # User for the dchp controller for OVS networks&lt;br /&gt;
 ovs_controller_file_path: &#039;/var/lib/openvim&#039;     # Net controller Path for dhcp daemon &lt;br /&gt;
                                                  # configuration, by default &#039;/var/lib/openvim&lt;br /&gt;
&lt;br /&gt;
Ensure that automatic login from openvim to ovs_controller works without any prompt, and that openvim can run commands with root admin. It is recomended to add the public openvim ssh key to the autorized_keys at ovs_controller and set the autentication key to use at openvimd.cfg: &lt;br /&gt;
 &lt;br /&gt;
 ovs_controller_keyfile:   /path/to/ssh-key-file  # ssh-access-key file to connect host&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
&lt;br /&gt;
- Edit file &#039;&#039;&#039;/etc/osm/openvimd.cfg&#039;&#039;&#039;. Note: by default it runs in mode: &#039;&#039;&#039;test&#039;&#039;&#039; where no real hosts neither openflow controller are needed. You can uses other modes:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! mode&lt;br /&gt;
! Computes hosts&lt;br /&gt;
! Openflow controller&lt;br /&gt;
! Observations&lt;br /&gt;
|-&lt;br /&gt;
| test&lt;br /&gt;
| fake&lt;br /&gt;
| X&lt;br /&gt;
| No real deployment. Just for API test&lt;br /&gt;
|-&lt;br /&gt;
| normal&lt;br /&gt;
| needed&lt;br /&gt;
| needed&lt;br /&gt;
| Normal behavior&lt;br /&gt;
|-&lt;br /&gt;
| host only&lt;br /&gt;
| needed&lt;br /&gt;
| X&lt;br /&gt;
| No PT/SRIOV connections&lt;br /&gt;
|-&lt;br /&gt;
| develop&lt;br /&gt;
| needed&lt;br /&gt;
| X&lt;br /&gt;
| Force to cloud type deployment without EPA&lt;br /&gt;
|-&lt;br /&gt;
| OF only&lt;br /&gt;
| fake&lt;br /&gt;
| needed&lt;br /&gt;
| To test openflow controller without needed of compute hosts&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Service must be restarted&lt;br /&gt;
 sudo service osm-openvim restart&lt;br /&gt;
&lt;br /&gt;
NOTE: the following steps (ONLY if openvim runs in test mode) are done automatically by script:&lt;br /&gt;
 /opt/openvim/scripts/initopenvim.sh --insert-bashrc --force&lt;br /&gt;
&lt;br /&gt;
- Let&#039;s configure the openvim CLI client. Needed if you have changed the /opt/openvim/openvimd.cfg file (WARNING not the ./openvim/openvimd.cfg)&lt;br /&gt;
&lt;br /&gt;
 openvim config                           # show openvim related variables&lt;br /&gt;
 #To change variables run&lt;br /&gt;
 export OPENVIM_HOST=&amp;lt;http_host of openvimd.cfg&amp;gt;&lt;br /&gt;
 export OPENVIM_PORT=&amp;lt;http_port of openvimd.cfg&amp;gt;&lt;br /&gt;
 export OPENVIM_ADMIN_PORT=&amp;lt;http_admin_port of openvimd.cfg&amp;gt;&lt;br /&gt;
 #You can insert at .bashrc for authomatic loading at login:&lt;br /&gt;
 echo &amp;quot;export OPENVIM_HOST=&amp;lt;...&amp;gt;&amp;quot; &amp;gt;&amp;gt; /{HOME}/.bashrc&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
==Adding compute nodes==&lt;br /&gt;
- Let&#039;s attach compute nodes&lt;br /&gt;
&lt;br /&gt;
In &#039;&#039;&#039;test&#039;&#039;&#039; mode we need to provide fake compute nodes with all the necessary information:&lt;br /&gt;
&lt;br /&gt;
 openvim host-add /opt/openvim/test/hosts/host-example0.yaml &lt;br /&gt;
 openvim host-add /opt/openvim/test/hosts/host-example1.yaml &lt;br /&gt;
 openvim host-add /opt/openvim/test/hosts/host-example2.yaml &lt;br /&gt;
 openvim host-add /opt/openvim/test/hosts/host-example3.yaml &lt;br /&gt;
 openvim host-list                        #-v,-vv,-vvv for verbosity levels&lt;br /&gt;
&lt;br /&gt;
In &#039;&#039;&#039;normal&#039;&#039;&#039; or &#039;&#039;&#039;host only&#039;&#039;&#039; mode, the process is a bit more complex. First, you need to configure appropriately the host following these [[Installation of an Openvim Compute Node|guidelines]]. The current process is manual, although we are working on an automated process. For the moment, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
 #copy /opt/openvim/scripts/host-add.sh and run at compute host for gather all the information&lt;br /&gt;
 ./host_add.sh &amp;lt;user&amp;gt; &amp;lt;ip_name&amp;gt; &amp;gt;&amp;gt; host.yaml&lt;br /&gt;
&lt;br /&gt;
 #NOTE: If the host contains interfaces connected to the openflow switch for dataplane,&lt;br /&gt;
 # the switch port where the interfaces are connected must be provided manually, &lt;br /&gt;
 # otherwise these interfaces cannot be used. Follow one of two methods:&lt;br /&gt;
 #   1) Fill openvim/database_utils/of_ports_pci_correspondence.sql ...&lt;br /&gt;
 #   ... and load with mysql -uvim -p vim_db &amp;lt; openvim/database_utils/of_ports_pci_correspondence.sql&lt;br /&gt;
 #   2) or add manually this information at generated host.yaml with a &#039;switch_port: &amp;lt;whatever&amp;gt;&#039; &lt;br /&gt;
 #   ... entry at &#039;host-data&#039;:&#039;numas&#039;: &#039;interfaces&#039; &lt;br /&gt;
&lt;br /&gt;
 # copy this generated file host.yaml to the openvim server, and add the compute host with the command:&lt;br /&gt;
 openvim host-add host.yaml&lt;br /&gt;
&lt;br /&gt;
 # copy openvim ssh key to the compute node. If openvim user didn&#039;t have a ssh key generate it using ssh-keygen&lt;br /&gt;
 ssh-copy-id &amp;lt;compute node user&amp;gt;@&amp;lt;IP address of the compute node&amp;gt;&lt;br /&gt;
         &lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: It must be noted that Openvim has been tested with servers based on Xeon E5 Intel processors with Ivy Bridge architecture. No tests have been carried out with Intel Core i3, i5 and i7 families, so there are no guarantees that the integration will be seamless.&lt;br /&gt;
&lt;br /&gt;
==Adding external networks==&lt;br /&gt;
&lt;br /&gt;
- Let&#039;s list the external networks:&lt;br /&gt;
&lt;br /&gt;
 openvim net-list&lt;br /&gt;
&lt;br /&gt;
- Let&#039;s create some external networks in openvim. These networks are public and can be used by any VNF. In order to create external networks, use &#039;openvim net-create&#039;, specifying a file with the network information. To create a management network:&lt;br /&gt;
&lt;br /&gt;
 openvim net-create /opt/openvim/test/networks/net-example4.yaml&lt;br /&gt;
&lt;br /&gt;
- Let&#039;s list the external networks:&lt;br /&gt;
&lt;br /&gt;
 openvim net-list&lt;br /&gt;
 2c386a58-e2b5-11e4-a3c9-52540032c4fa   mgmt&lt;br /&gt;
&lt;br /&gt;
You can build your own networks using the template &#039;templates/network.yaml&#039;. Alternatively, you can use &#039;openvim net-create&#039; without a file and answer the questions:&lt;br /&gt;
&lt;br /&gt;
 openvim net-create&lt;br /&gt;
&lt;br /&gt;
You can delete a network, e.g. &amp;quot;mgmt&amp;quot;, using the command:&lt;br /&gt;
&lt;br /&gt;
 openvim net-delete mgmt&lt;br /&gt;
&lt;br /&gt;
==Creating a new tenant==&lt;br /&gt;
- Now let&#039;s create a new tenant &amp;quot;osm&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
 $ openvim tenant-create --name osm --description osm&lt;br /&gt;
 &amp;lt;uuid&amp;gt;   osm Created&lt;br /&gt;
&lt;br /&gt;
- Take the uuid of the tenant and update the environment variables used by openvim client:&lt;br /&gt;
&lt;br /&gt;
 export OPENVIM_TENANT=&amp;lt;obtained uuid&amp;gt;&lt;br /&gt;
 #echo &amp;quot;export OPENVIM_TENANT=&amp;lt;obtained uuid&amp;gt;&amp;quot; &amp;gt;&amp;gt; /home/${USER}/.bashrc&lt;br /&gt;
 openvim config                             #show openvim env variables&lt;br /&gt;
&lt;br /&gt;
=Additional information=&lt;br /&gt;
*[[Developer HowTo for openvim]]&lt;br /&gt;
*[[Openvim Logs and troubleshooting (Release TWO)|Logs and troubleshooting]]&lt;br /&gt;
&lt;br /&gt;
{{Feedback}}&lt;/div&gt;</summary>
		<author><name>Cristbal</name></author>
	</entry>
</feed>