Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5411583a
authored
Sep 14, 2013
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
draft version of installing-node
parent
2c8e25ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
0 deletions
+64
-0
docs/install-node.rst
+64
-0
No files found.
docs/install-node.rst
0 → 100644
View file @
5411583a
Installation of a development node machine
==========================================
.. highlight:: bash
Preparation
-----------
First create a new Ubuntu 12.04 LTS or later instance. Set up git.. TODO
Setting up required software
----------------------------
Update package list and install the required softwares::
$ sudo apt-get update
sudo apt-get install --yes python-pip virtualenvwrapper git python-dev \
openvswitch-common openvswitch-datapath-dkms openvswitch-switch \
openvswitch-controller libvirt-bin python-libvirt \
libxml2-dev libxslt1-dev
Configuring network
-------------------
Configure Open vSwitch bridge that handle vitual connections::
$ sudo ovs-vsctl add-br cloud
Installing CIRCLE vmdriver
--------------------------
Clone the git repository::
$ git clone git@git.cloud.ik.bme.hu:circle/vmdriver.git vmdriver
Set up virtualenv profile::
$ source /etc/bash_completion.d/virtualenvwrapper
$ mkvirtualenv circle
Save configuration to virtualenv and activate environment::
$ cat >>/home/cloud/.virtualenvs/vmdriver/bin/postactivate <<END
export LIBVIRT_KEEPALIVE=True
export LIBVIRT_URI=test:///default
export AMQP_URI=amqp://user:pass@host/virtualserver
export HYPERVISOR_TYPE=test
END
Copy the libvrit bindings to the local virtualenv directory::
$ cp /usr/lib/python2.7/dist-packages/*libvirt* ~/.virtualenvs/vmdriver/lib/python2.7/site-packages/
Install the required python packages::
$ pip install -r requirements/test.txt
Copy the upstart scripts for celery services::
$ sudo cp miscellaneous/vmcelery.conf /etc/init/
$ sudo cp miscellaneous/netcelery.conf /etc/init/
Start celery daemons::
$ sudo start vmcelery
$ sudo start netcelery
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment