Xen 4.1 on NetBSD current Dom0

/usr/pkgsrc/sysutils/xenkernel41
make install
/usr/pkgsrc/sysutils/xentools41
make install
cp /usr/pkg/xen41-kernel/xen.gz /

NetBSD current DomU (PV)

Config file

kernel = "/xen/nbsd/netbsd-XEN3_DOMU"
memory = 6144
name = "netbsd1"
vcpus = 4
vif = [ 'bridge=bridge0' ]
disk = [ 'file:/xen/nbsd/nbsd.dsk,hda,w' ]

Debian Squeeze Linux DomU (PV)

Support files

Config file

name = "squeeze"
maxmem = 1024
memory = 1024
vcpus = 4
kernel = "/xen/squeeze/vmlinuz-2.6.32-5-amd64"
root = "/dev/xvda1 ro"
ramdisk = "/xen/squeeze/initrd.img-2.6.32-5-amd64"
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
disk = [ "file:/xen/squeeze/squeeze.dsk,xvda,w"]
vif = [ 'bridge=bridge0' ]

Windows XP DomU (HVM)

Solitaire is working; 80+ updates installed.

Config file

import os, re
arch = os.uname()[4]
if re.search('64', arch):
arch_libdir = 'lib64'
else:
arch_libdir = 'lib'
#kernel = "/usr/lib/xen/boot/hvmloader"
kernel = "/usr/pkg/lib/xen/boot/hvmloader"
builder='hvm'
memory = 512
shadow_memory = 8
name = "xp"
vif = [ 'type=ioemu, bridge=bridge0' ]
disk = [ 'file:/xen/xp/xp.dsk,hda,w', 'file:/xen/xp/e-xpc3.iso,hdc:cdrom,r' ]
device_model = '/usr/pkg/libexec/qemu-dm'
# boot on floppy (a), hard disk (c) or CD-ROM (d)
# default: hard disk, cd-rom, floppy
boot="dc"
sdl=0
vnc=1
vncconsole=1
vncpasswd=''
stdvga=0
serial='pty'
usbdevice='tablet'

References


Xen / webmaster@itsx.net / created 2012-01-22 / last update 2012-01-22