egrep "vmx|svm" /proc/cpuinfo


These instructions mainly come from the Ubuntu Wiki Xen Page. I will assume paravirt x86.
sudo aptitude install ubuntu-xen-desktop sudo reboot
sudo xm list
sudo xend stop sudo xend start
Now you have your Dom0 up and xend configured. Its time to make a DomU. We have block device choices to make.
sudo dd if=/dev/zero of=/usr/local/edgy.ext3 \
bs=1024k seek=4096 count=0
sudo mkfs.ext3 /usr/local/edgy.ext3
sudo mkdir /mnt/edgy
sudo mount /usr/local/edgy.ext3 /mnt/edgy -o loop
sudo apt-get install debootstrap
sudo debootstrap edgy /mnt/edgy
While the Guest's disk is still loopback mounted lets tweak some things:
auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp
proc /proc proc defaults 0 0 /dev/hda1 / ext3 defaults,errors=remount-ro 0 1
While the Guest's disk is still loopback mounted lets tweak some things:
edgyvm
127.0.0.1 localhost 127.0.1.1 edgyvm
sudo umount /mnt/edgy
The previous slide was pretty boring, so lets edit the Xen config file.
kernel = "/boot/vmlinuz-2.6.19-4-generic" ramdisk = "/boot/initrd.img-2.6.19-4-generic" builder='linux' memory = 128 name = "edgy-guest" vcpus = 1 vif = [ 'bridge=xenbr0' ] disk = [ 'file:/usr/local/edgy.ext3,ioemu:hda1,w' ] root = "/dev/hda1 ro"
Now we are ready to boot our first DomU.
sudo xm create edgy-guest.cfg
sudo xm list
sudo xm console edgy-guest
CTRL+]
xm helpsudo xm dmesgsudo xm infosudo xm network-listsudo xm list:/var/log/xen/Since Xen started off as an academic research project at University of Cambridge, there is a large body of academic papers on its design and performance.
This presentation was prepared using S5: A Simple Standards-Based Slide Show System in Gvim on Ubuntu 7.04 or in Textmate on a Mac.