SETTING UP NOBUDGET

INTRO

Current status of NOBUDGET assumes the guests live as sparse files into /data/guests/GUESTNAME/. It can be done with NFS, OCFS2 or GFS2.

DOM0 PREP

assuming /data/ is mounted somehow

cd /data/
git clone ssh://git@github.com/pbraun9/xen.git
git clone https://github.com/pbraun9/xen.git

Ubuntu

vi /etc/bashrc

PATH=/data/xen:$PATH

source /etc/bashrc

Slackware

vi /etc/profile

PATH=/data/xen:$PATH

source /etc/profile

MANAGEMENT NODE

Setting up ClusterIt

as user

check kernel options

dsh -e -g xen grep xen.gz /extlinux.conf
dsh -e -g xen grep vmlinuz /extlinux.conf

what guests are running over the farm?

dsh -e -g xen "xl li | sed '1,2d' | awk '{print $1}'"

what is the current load?

dsh -e -g xen "xentop -b -i1"

DEFINITELY NOT A CLOUD

useradd -m -g nogroup register
passwd --delete --unlock register
chmod 700 /home/register/
chown -R register:nogroup /home/register/

useradd -m -g nogroup xen
passwd --delete --unlock xen
chmod 700 /home/xen/
chown -R xen:nogroup /home/xen/

slackpkg install python3 python-pip python-setuptools
cd /var/tmp/
git clone ...
cd nobudget/
pip install -r requirements.txt

#slackpkg install guile gc glibc-2
#git clone https://github.com/pbraun9/nobudget.git
#git clone git@github.com:pbraun9/nobudget.git
#cd nobudget/
#git checkout fc0706cf87ed6f794a05fe28be1577fb02006069
#make

su - register

cd /var/tmp/nobudget/
python3
import db
db. create_schema()
^D

/var/tmp/nobudget/anon.py

^D

su - xen

/var/tmp/nobudget/main.py

^D

change the shell to /var/tmp/nobudget/anon.py for user register, and change the shell to /var/tmp/nobudget/main.py for user `xen

vipw

alternative is /home/xen/xen/nobudget-shell from there.

DEPLOYING AND STARTING 10 GUESTS IN A ROW

from an hypervisor as root

cd /data/guests/
for n in `seq 1 10`; do
    deployguest.bash netbsd.DATE.tar.gz
    renameguest.bash netbsd vadim$n
    xl create vadim$n/vadim$n
done; unset n

from the mgmt node as user

update your remote connection settings,

grep dhcpd /var/log/syslog | tail
sudo vi /etc/hosts

...

vi ~/.ssh/config

Host vadim*
        Port 2222
        User root

make sure you have got the nobudget scripts available,

ll ~/bin/vadim*.ksh

to fix the hostnames with a for loop,

cd ~/bin/
for n in `seq 1 10`; do
    dsh -e -w vadim$n -s vadim.hostname.ksh vadim$n
done; unset n

and eventually install the monit agent too

cd ~/bin/
vi vadim.monit.ksh #edit PASSWORD and MMONIT
for n in `seq 1 10`; do
    dsh -e -w vadim$n -s vadim.monit.ksh vadim$n
done; unset n

GUIDES | LECTURES | BENCHMARKS | SMTP HEALTH