Installation


Upgrades


DTC-Xen Installation


DTC-Xen / Dom0 Howtos

DTC-Xen / DomU Howtos

FAQ


DTC Howtos


Manuals


Features


Roadmap


Devel docs


Wiki - i18n


Wiki - Meta


A quick howto on how to setup windows in a Xen VM

This is obsolete!!!

This howto is rendered obsolete, as the current Git version of dtc-xen and dtc have support for Xen PV guests (full hardware virtualization), so it's not needed to do the follwing by hand anymore. Just get dtc-xen > 0.3.23 and dtc >= 0.30.0, and you will be able to setup XEN PV guests directly using DTC.

Just remember to install the GPL PV drivers for windows. It can be downloaded here:

http://www.meadowcourt.org/downloads/

Old howto follow...

Here is a simple config file that you can use to start your Windows server.

   kernel = "/usr/lib/xen/boot/hvmloader"
   builder = 'hvm'
   memory = 512
   name = "xen04"
   vcpus=1
   pae=0
   acpi=0
   apic=0
   vif = [ 'type=ioemu, bridge=xenbr0' ]
   disk=[ 'phy:/dev/mapper/lmv1-xen04,ioemu:hda,w','file:/usr/src/WinServ2k3-1.iso,hdc:cdrom,r','file:/usr/src/WinServ2k3-2.iso,hdd:cdrom,r' ]
   # This asks to bind VNC to port 5900 + 21 (eg: 5921) with password XXXX
   vfb = ["type=vnc,vncdisplay=21,vncpasswd=XXXX"]
   device_model='/usr/lib/xen/bin/qemu-dm'
   #cdrom="/usr/src/WinServ2k3-1.iso"
   # c for hdd, d for cdrom
   boot="c"
   nographic=1
   #vnc=1
   #vncviewer=1
   #stdvga=1
   serial='pty'

Note the nographic, vnc, vncviewer and stdvga options. You WILL need to modify then to do the setup using VNC, but when your VPS is up and running, best is to totally disable VNC an use the nographic=1 option, and to use "remote desktop" (windows standard tool that comes with all versions of windows) or "rdesktop" (under Linux, works really well), as the VNC server integrated in Xen is very slow and the mouse is pretty badly emulated.

The hard drive emulated here is a FULL hard drive, not just a partition. So windows will be able to do the partitioning inside your LVM slice. Then you will NOT need to format the partition before the setup, the setup of Windows will do it for you.

See the boot= option that you can change to boot from the CDROM or the hard drive. For making the .iso, you can use a simple cat </dev/cdrom >my-windows.iso it works well.

With this, you should be able to manage all situation. One last word still: the VNC password is in /etc/xen/xend-config.sxp and you might want to change as well this

   (vnc-listen '0.0.0.0')

so you can connect to the outside. This is normally located at the very end of the config file. You WILL need to restart xend to have these options to take effect.

This is another example on how to start a CentOS VPS running HVM and using SDL as display output. Very convenient if you want to run dom0 tests on your workstation/laptop like me!

   kernel = "/usr/lib/xen/boot/hvmloader"
   builder = 'hvm'
   memory = 512
   name = "xen02"
   vcpus=1
   vif = [ 'type=ioemu, bridge=eth0' ]
   disk=[ 'phy:/dev/mapper/buzzlvm-xen02,ioemu:hda,w','file:/home/zigo/Desktop/CentOS-5.2-x86_64-netinstall.iso,hdc:cdrom,r' ]
   device_model='/usr/lib/xen/bin/qemu-dm'
   cdrom="/home/zigo/Desktop/CentOS-5.2-x86_64-netinstall.iso"
   boot="d"
   nographic=0
   monitor=1
   sdl=1
Page last modified on June 21, 2009, at 03:04 PM EST