Saturday, November 22, 2008

Create xen templates for hypervm

Go to www.jailtime.org to download the desired template. The templates on jailtime.org are generic xen templates and need some modifications before they could be installed in the hypervm server.
we will here make gentoo template available on jailtime.org to make it work on the hypervm server.

First login to your xen main node as -su
# wget "http://www.jailtime.org/lib/exe/fetch.php?cache=cache&media=download%3Agentoo%3Agentoo.2008-0.20080719.img.tar.bz2"

# tar jxf gentoo.2008-0.20080719.img.tar.bz2

mkdir /mnt/tmp
mount -o loop /root/gentoo.2008-0.img /mnt/tmp

nano /mnt/tmp/etc/inittab
1:2345:respawn:/sbin/getty -L xvc0 9600 vt100

nano /mnt/tmp/etc/ssh/sshd_config
PermitRootLogin yes

cd /mnt/tmp
tar czf /home/hypervm/xen/template/gentoo.23nov2008.tar.gz .

You are done :)

No comments: