Xen is a virtual machine monitor that runs on Linux. Think VMware but built-in to Linux. Starting with Xen version 3.0, it can run unmodified guest operating systems such as Windows XP. Windows XP in Xen The Xen machine description I used for a CentOS 5 host is here.

kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 512
shadow_memory = 16
name = "winxp"
vif = [ 'type=ioemu, bridge=xenbr0' ]
disk = [
  'file:/etc/xen/jp/winxp,hda,w',
  'file:/etc/xen/jp/winxp.iso,hdc:cdrom,r'
  ]
boot = 'c'
on_poweroff = 'destroy'
on_reboot   = 'destroy'
on_crash    = 'destroy'
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
sdl=0
vnc=1
vnclisten="10.0.2.2"
vncdisplay=1
vncpasswd=''
stdvga=0
serial='pty'

When first starting the machine with a xm create winxp.hvm, ensure that boot is set to the CD image (boot='d'). I can directly connect to it with a VNC viewer. Cool. I just wanted to see if it is possible to actually boot and install XP, and it is. The screen shot above proves it.

Flattr this
Hardware, Linux, and Vmware :: 05 Jul 2007 :: e-mail

Comments

blog comments powered by Disqus