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

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

slackpkg install guile gc glibc-2

su - xen

git clone https://github.com/pbraun9/nobudget.git
git clone git@github.com:pbraun9/nobudget.git
cd nobudget/
#git checkout fc0706cf87ed6f794a05fe28be1577fb02006069
make

^D
vipw

and change the shell to /home/xen/nobudget/nobudget.

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

HOME | GUIDES | BENCHMARKS | html