root@compu1:~# lvcreate -n dns_root -L 1G vg1
root@compu1:~# lvcreate -n dns_swap -L 256M vg1
root@compu1:~# dd if=/dev/vg1/intrepid_root of=/dev/vg1/dns_root
root@compu1:~# mkswap /dev/vg1/dns_swap
root@compu1:~# cp /etc/xen/lamp /etc/xen/dns
root@compu1:~# vi /etc/xen/dns
# -*- mode: python; -*-
kernel = "/boot/vmlinuz-2.6.24-22-xen"
ramdisk = "/boot/initrd.img-2.6.24-22-xen"
memory = 128
name = "dns"
vif = ['']
disk = ['phy:vg1/dns_root,hda1,w','phy:vg1/dns_swap,hda2,w']
root = "/dev/hda1 ro"
extra = "xencons=tty 4"
root@compu1:~# mount /dev/vg1/dns_root /mnt
root@compu1:~# vi /mnt/etc/hostname
root@compu1:~# vi /mnt/etc/network/interfaces
root@compu1:~# vi /mnt/etc/hosts
root@compu1:~# vi /mnt/etc/fstab
root@compu1:~# cp /etc/apt/sources.list /mnt/etc/apt/sources.list
root@compu1:~# umount /mnt
:Hacemos que la compu1 natee a la xm...
root@compu1:~# echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.7/24 -d 0.0.0.0/0 -j MASQUERADE
root@compu1:~# xm create dns -c
Instalamos la aplicacion de dns... librerias de perl para el webmin... y finalmente el webmin...
root@dns:~# apt-get update
root@dns:~# apt-get install bind9 wget
root@dns:~# apt-get install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl libmd5-perl
root@dns:~# wget http://prdownloads.sourceforge.net/webadmin/webmin_1.441_all.deb
root@dns:~# dpkg -i webmin_1.441_all.deb
Seteamos la password de root...
root@dns:~# passwd
Nos loguiamos al webmin como root desde compu1...
usuario0@compu1:~$ firefox https://192.168.7.41:10000
SERVERS -> BIND DNS
Lindo el admnistrador web?