deploying e.g. 10 NetBSD guests in a row

from an hypervisor as root

for n in `seq 1 10`; do
    deployguest.bash netbsd.DATE.tar.gz
    mv 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