install generic kernel in vm, that way it can boot of sata controller in virtualbox

This commit is contained in:
j 2012-03-23 21:57:43 +01:00
commit f3c08436b1
4 changed files with 34 additions and 34 deletions

View file

@ -19,17 +19,17 @@ with that installed build image:
this will create a vdi image in pandora/
== VirtualBox Usage ==
Now you can create a new VirtualBox machine, use vdi image as existing hard disk.
Before starting up you have to adjust some settings:
In System -> Processor enable PAE/NX
In Storage remove disk from SATA Controller
add disk to IDE Controler and enable "Use host I/O cache"
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
Adjust your bzr configuration with bzr whoami:
bzr whoami "Pando the Panda <pan.do@pan.do>"

View file

@ -3,6 +3,7 @@ base=$(pwd)
sudo vmbuilder vbox ubuntu --suite=oneiric \
--verbose --debug \
--arch i386 \
--flavour generic \
--dest $base/pandora \
--hostname pandora \
--swapsize 512 \

View file

@ -10,7 +10,7 @@ wget http://firefogg.org/nightly/ffmpeg2theora.linux -O /usr/local/bin/ffmpeg2th
chmod 755 /usr/local/bin/ffmpeg2theora
#postgresql
apt-get -y install postgresql
apt-get -y install postgresql postgresql-contrib
sudo -u postgres createuser -S -D -R pandora
sudo -u postgres createdb -T template0 --locale=C --encoding=UTF8 -O pandora pandora
@ -21,6 +21,9 @@ rabbitmqctl add_vhost /pandora
rabbitmqctl set_permissions -p /pandora pandora ".*" ".*" ".*"
#pandora
HOST=$(hostname -s)
SITE_CONFIG="/srv/pandora/pandora/$HOST.jsonc"
test -e $SITE_CONFIG || cp /srv/pandora/pandora/0xdb.jsonc $SITE_CONFIG
cat > /srv/pandora/pandora/local_settings.py << EOF
DATABASES = {
'default': {
@ -30,20 +33,15 @@ DATABASES = {
'PASSWORD': '',
}
}
DEBUG = False
DATA_SERVICE = ""
SITE_CONFIG = '/srv/pandora/pandora/pandora.jsonc'
SITE_CONFIG = '$SITE_CONFIG'
BROKER_PASSWORD = "$RABBITPWD"
XACCELREDIRECT = True
EOF
cd /srv/pandora/pandora
sudo -u pandora python manage.py syncdb --noinput
HOST=$(hostname -s)
echo "UPDATE django_site SET domain = '$HOST.local', name = '$HOST.local' WHERE 1=1;" | sudo -u pandora python manage.py dbshell