home | tech | misc | code | bookmarks (broken) | contact | README


Xen: Setup Linux as dom0

I tried to follow the NetBSD Xen howto with Slackware, but I got millions of problems. So I discovered, from a page in the NetBSD wiki, that I should install Linux in another partition as if I were using dual boot.

I installed Slackware normally, but didn't installed LILO (grub was already installed and configured).

In NetBSD I created a domU configuration file. Basically, that should be enough to follow NetBSD Xen howto. Pay attention to the domain configuration. Mine is the following:

kernel = "/xenvm/kernels/vmlinuz-2.6.18-xen-domU"
memory = 256
#cpu = "^1"
name = "hostname"
#vif = [ 'mac=aa:00:00:50:02:f0, bridge=bridge0' ]
disk = [ 'phy:/dev/wd0j,sda2,w' ]
#disk = [ 'phy:/dev/wd0k,sda3,w' ] # swap
root = "/dev/sda2 ro"

If you get any error like Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,1), see if you have written the correct drive names in both disk and root sections.