cleanup vm build script, fixes #1591

This commit is contained in:
j 2013-07-03 16:25:57 +02:00
commit 3d7ad8b70a
5 changed files with 78 additions and 103 deletions

View file

@ -1,31 +1,33 @@
Create virtual disk of pan.do/ra
== ubuntu-vm-builder setup ==
== Preparations ==
on ubuntu 11.10 you need to install python-vm-builder
Pan.do/ra VM scripts use python-vm-builder,
its available in ubuntu 12.04 and later
apt-get install python-vm-builder
due to https://bugs.launchpad.net/vmbuilder/+bug/683614
building vbox images does not work. install virtualbox_vm.py:
sudo cp virtualbox_vm.py /usr/lib/python2.6/dist-packages/VMBuilder/plugins/virtualbox/vm.py
(or change vbox to kvm to build kvm image)
== Building ==
with that installed build image:
You can configure some of the arguments in build.sh once done run:
./build.sh
this will create a vdi image in pandora/
== VirtualBox Usage ==
Now you can create a new VirtualBox machine,
select Linux/Ubuntu and use vdi image as existing hard disk.
Before starting up:
In Network -> Adpater 1 set to Bridged Adapter with your connected controller
== Use for development ==
Login via ssh or in terminal as pandora with password pandora
ssh pandora@pandora.local
@ -37,13 +39,8 @@ Pan.do/ra is installed in /srv/pandora and is served with nginx on http://pandor
== Update ==
to get the latest version of pan.do/ra
cd /srv/pandora
./update.sh
you might have to adjust the database at this point. now restart pandora daemons
service pandora restart
service pandora-tasks restart
service pandora-encoding restart
./update.py