[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] booting XP under Xen on Centos 5 x64


  • To: Xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Mike Greco <mgreco2k@xxxxxxxxx>
  • Date: Sun, 31 Oct 2010 22:26:15 -0400
  • Cc:
  • Delivery-date: Sun, 31 Oct 2010 19:27:25 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=jdzjUaf93kT5onnGPm8KHWFH2og2/9Lcsn+VZ+3Rf4+aQHyFfBQwwrXQ1eHXGyQbY2 RlpOBzUh4VLwsDYj8wrqyfj2RIQ4Tm9edYZdvgiNZgYfUTsi308yTBiwwsnWNN8IBxEo 3ZBYFyLM8WmtVFTgGGrzpdYuLVmCMIhqe4+8Q=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

I am having one hell of a time converting an XP SP3 x86 installation to bootable image that Xen can deal with (then again I did mention this was XP)
 
I am running Xen under Centos 5 x64 (I can provide "uname -a" if that helps) and trying to boot XP. So I how got to where I am is as follows :
 
1) I dumped a disk that had XP on an NTFS to a file using dd starting the dump to begin at offset 63...
dd if=/dev/sdd1 of=/media/disk1/xp3.img offset=63
 
2) I then run fdisk on the file and set up a partition (actually the 1st partition) to being at sector 63 to the end of the disk. There are various tricks to do this a) using losetup to map a loopback device to the file and then running fdisk on that loopback device OR b) just passing the file as an arg to fdisk. At the end of this fdisk -u -l /media/disk/xp3.img show me I have one partition that being at offset 63 and it's bootable and it's type 7 (HPFS/NTFS).
 
3) I set up my guest using virt-manager, give it 2GB memory, and tell it to run fully virt under Xen_64, and giving it the XP install cd. The guest then boots and I go into the recovery console. The console sees my windows installation (C:\windows) and I log into it. I then run "fixmbr" and every this is happy so I exit.
 
At this point the guest restarts and the console window says it's booting but hangs. The cpu meter for the guests goes up to about 50% and sits there and until I shutdown the guest using virt-manager. The XP splash screen NEVER comes up. Any takers on how to debug this or suggestions ?
 
Thanks
Mike
 
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.