You are here
Creating a new Xen Windows XP VM in CentOS 5.1
Mon, 01/21/2008 - 19:40 — siteadmin
- /usr/sbin/lvcreate -L 10G -n vm_mymachine VolGroup00 #first create a logical volume for the machine
- dd if=/dev/scd0 of=/var/lib/xen/images/media/winxp.iso #create an ISO image of the XP cd-rom
- run the graphical virtual machine manager
- make the source of the installation: /var/lib/xen/images/media/winxp.iso
- format partition to FAT since then it is editable from within CentOS host
- the first reboot will fail. Before restarting, do the following:
- vi /etc/xen/machine and add to the disk= line: ,"file:/var/lib/xen/images/media/winxp.iso,hdb:cdrom,r"
(or phy:/dev/scd0 for physical CD)
- change apic and acpi to 1 (from zero)
- restart with: /usr/sbin/xm create mymachine
- for some reason the network used virbr0 which I changed to xenbr0 in /etc/xen/machine to make it work
- inside XP/control panel/system turn on remote connections and use RDP to connect to the machine
- remove the reference to the cdrom in the config file or you won't be able to use it from the host machine