We create a WinXP Prof HVM guest -------------------------------- Creation of the HVM guest: see Xen book 194pp Survey: 1) create virtual device 2) create HVM guest config 3) Provide the Windows install CD as ISO image 4) install via CD ISO image into virtual HD 5) Boot guest again from virtual HD Details 1) create virtual device mkdir -p /export/data1/XenGuestImages/WinSrv2003_64_G1 cd /export/data1/XenGuestImages/WinSrv2003_64_G1 # create a 10GB disk image (using seek creates a so-called sparse file) dd if=/dev/zero of=WinSrv2003_64_G1.disk bs=1024 count=1 seek=10240k conv=notrunc 2) create HVM guest config See file /etc/xen/WinSrv2003_64_G1.hvm # NOTE # This prints the condensed config file without comments and empty lines # perl -n -e 'if (! /(^#)|(^\s*\n$)/ ) {print;}' /etc/xen/WinSrv2003_64_G1.hvm 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" builder='hvm' memory = 1024 name = "WinSrv2003_64_G1" vif = [ 'type=ioemu, mac=AA:AA:01:00:02:01, bridge=xenbr2, model=rtl8139' ] disk = [ 'file:/export/data1/XenGuestImages/WinSrv2003_64_G1/WinSrv2003_64_G1.disk,hda,w', 'file:/export/data1/OsImages/WindowsServer2003/WinServer2003R2x64-1of2.iso,hdc:cdrom,r' ] device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm' boot="d" sdl=0 opengl=1 vnc=1 vnclisten="0.0.0.0" vncdisplay=12 vncunused=0 vncpasswd='' stdvga=0 serial='pty' usb=1 usbdevice='tablet' keymap='de' 3) insert Windows boot CD Note: we specified the iso image of the installer CD in the 'disk' parameter. No mount is needed. 4) install Guest via CD into virtual HD xm create WinSrv2003_64_G1.hvm # Now the guest boots from the WinCD # Connect from the Xen host or some other host to the vncserver # Maybe your Xen host has no X11 desktop. #Find out the port to connect to # Due to our config this should be 5912 since we set 'vncdisplay=12' #At the Xen host netstat -nat ... tcp 0 0 0.0.0.0:5912 0.0.0.0:* LISTEN regensbu@wicki:/export/home/regensbu => vncviewer susi::5912 You see the display of the windows client Follow the install dialog. Note: the mouse in the VNC windows behaves strange. There is a divergence between the real mouse pointer and the VNC mouse. Solution: use the USB tablet option usb=1 usbdevice='tablet' If you are disconnected, just connect again via vnc client. Note: the client reboots automaticaly after HD partitioning. At the end of the installation of CD1 shutdown the guest 5) Reconfigure the boot parameters. Specify the second ISO image Change the client config /etc/xen/WinSrv2003_64_G1.hvm disk = [ 'file:/export/data1/XenGuestImages/WinSrv2003_64_G1/WinSrv2003_64_G1.disk,hda,w', 'file:/export/data1/OsImages/WindowsServer2003/WinServer2003R2x64-2of2.iso,hdc:cdrom,r' ] and boot="c" 6) Boot guest again and continue installation from CD 2 xm create WinSrv2003_64_G1.hvm Run the d:\CMPNENTS\R2\SETUP2.EXE After the installation from CD2 has completed, shutdown again 7) Reconfigure the boot parameters (final) Specify the physical CDrom Change the client config /etc/xen/WinSrv2003_64_G1.hvm disk = [ 'file:/export/data1/XenGuestImages/WinSrv2003_64_G1/WinSrv2003_64_G1.disk,hda,w', 'phy:/dev/cdrom,hdc:cdrom,r' ] 8) Boot guest again and confingure your server (post inst) xm create WinSrv2003_64_G1.hvm Run the post install tasks Activate RDesktop ControlPanel/System/Remote Activate other services Howto connect to the HVM guest via VNC or RDesktop -------------------------------------------------- use 'netstat -nat' on the xen host to find out the vnc listening ports => vncviewer susi::5912 regensbu@wicki:/export/home/regensbu => rdesktop WinSrv2003-64G1 & Note: In contrast to XPPro the Win2003 server is acessible via rdesktop after boot. There is no need to log in first via vncserver. In addition, you also may shutdown the server via rdesktop!