Openmano installation (release 0): Difference between revisions

From OSM Public Wiki
Jump to: navigation, search
(Created page with "__TOC__ =VM creation= * Requirements: ** ... ** ... ** ... *Base image: ... =Installing required packages and libraries= =Building and installing the module= =Configuring=")
 
No edit summary
Line 3: Line 3:
=VM creation=
=VM creation=
* Requirements:
* Requirements:
** ...
** 4 vCPU
** ...
** 4GB RAM
** ...
** 40GB disk
*Base image: ...
*Base image: ubuntu-14.04.4-server-amd64


=Installing required packages and libraries=
=Installing required packages and libraries=
* Install required packages
sudo apt-get install mysql git screen wget python-yaml python-libvirt python-bottle \
python-mysqldb python-jsonschema python-paramiko python-argcomplete python-requests
sudo apt-get install python-novaclient python-keystoneclient python-glanceclient python-neutronclient
* Configure python-argcomplete
activate-global-python-argcomplete --dest=- > argcomplete.txt
cat argcomplete.txt >> .bashrc


=Building and installing the module=
=Building and installing the module=
* Clone the git repository:
git clone https://osm.etsi.org/gerrit/osm/openmano.git openmano
* Database creation
mysqladmin -u root -p create mano_db
* Grant access privileges from localhost. Go to mysql console and use the following commands to create user vim and nfvo, and grant privileges to the databases:
mysql> CREATE USER 'mano'@'localhost' identified by 'manopw';
mysql> GRANT ALL PRIVILEGES ON mano_db.* TO 'mano'@'localhost';     
* Initialize database
openmano/database_utils/init_mano_db.sh -umano -pmanopw
* Add openmano client to the PATH, by adding a link to the bin folder
ln -s ${PWD}/openmano/openmano /home/${USER}/bin/openmano


=Configuring=
=Configuring=

Revision as of 14:36, 5 May 2016

VM creation

  • Requirements:
    • 4 vCPU
    • 4GB RAM
    • 40GB disk
  • Base image: ubuntu-14.04.4-server-amd64

Installing required packages and libraries

  • Install required packages
sudo apt-get install mysql git screen wget python-yaml python-libvirt python-bottle \

python-mysqldb python-jsonschema python-paramiko python-argcomplete python-requests

sudo apt-get install python-novaclient python-keystoneclient python-glanceclient python-neutronclient
  • Configure python-argcomplete
activate-global-python-argcomplete --dest=- > argcomplete.txt
cat argcomplete.txt >> .bashrc

Building and installing the module

  • Clone the git repository:
git clone https://osm.etsi.org/gerrit/osm/openmano.git openmano
  • Database creation
mysqladmin -u root -p create mano_db
  • Grant access privileges from localhost. Go to mysql console and use the following commands to create user vim and nfvo, and grant privileges to the databases:
mysql> CREATE USER 'mano'@'localhost' identified by 'manopw';
mysql> GRANT ALL PRIVILEGES ON mano_db.* TO 'mano'@'localhost';       
  • Initialize database
openmano/database_utils/init_mano_db.sh -umano -pmanopw
  • Add openmano client to the PATH, by adding a link to the bin folder
ln -s ${PWD}/openmano/openmano /home/${USER}/bin/openmano

Configuring