NetBSD 5 as DOM0 Howto First install NetBSD 5 amd64 (with compilers) Download pkgsrc: ftp http://www.llorien.org/NetBSD/pkgsrc-2009Q1.tar.gz untar pkgsrc in /usr: cd /usr tar xzf /root/pkgsrc-2009Q1.tar.gz install xentools33: cd /usr/pkgsrc/sysutils/xentools33 make install clean install xenkernel33: cd /usr/pkgsrc/sysutils/xenkernel33 make install clean copy xenkernel to / cp /usr/pkg/xen3-kernel/xen.gz / get Xen DOM0 kernel from installation CD: mount -tcd9660 /dev/cd0a /mnt cp /mnt/amd64/binary/kernel/netbsd-XEN3_DOM0.gz / cd / gunzip netbsd-XEN3_DOM0.gz umount /mnt eject /dev/cd0a Make Xen bootable by prepending the following line in /boot.cfg: menu=Boot Xen with 64MB for dom0:load /netbsd-XEN3_DOM0 console=pc;multiboot /xen.gz dom0_mem=64M start services at boot: cp /usr/pkg/share/examples/rc.d/xen* /etc/rc.d/ echo "xend=YES" >> /etc/rc.conf echo "xenbackendd=YES" >> /etc/rc.conf create the bridge interface (replace bge0 with your external interface): echo "create" > /etc/ifconfig.bridge0 echo "!brconfig \$int add bge0 up" >> /etc/ifconfig.bridge0 reboot and use Xen