WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Importing Windows XP installation

To: "flinco@xxxxxxxxx" <flinco@xxxxxxxxx>
Subject: Re: [Xen-users] Importing Windows XP installation
From: "Ray Barnes" <tical.net@xxxxxxxxx>
Date: Thu, 19 Jun 2008 03:34:16 -0400
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 19 Jun 2008 00:34:52 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=murNsXWKWcuwzcL/m4CuUbTXxV0EklLQOOE1CG9v51o=; b=KIN4c1BHvhJ3v8cjSm/87JzIR83xIWWFxTj4mfjjJrEJcnYwj1aAqI3+H3IbwiaJAi OHF9Ak4xCNLxole1o79sxw2+SuVihtBzEAohecDf6Dumti6UwsodwRyU4+uiB7l/1j2N O3bAmzBbACarwKujNjmY4lX9LoE7SOSzmH0Wg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=XYwrSjF1hi5/GL1ibDK1Y4xBpS8sou6KJXZGS3lNhjiuaOuI7bCJwUwDWVgPFY+VSw McN9FvPEMzQ5FKqOW/+YaWf1nzQyeUwmz5apI9Ylt+lPlBmsLHDPHkQYsHoLPsKzsiqb MvAaElDwMg1SmZQOPRXMtvrflostP8yjkA+aw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <K2P7UQ$0DA963982415A60AC17C4626EE37A9DD@xxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <K2P7UQ$0DA963982415A60AC17C4626EE37A9DD@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
If /dev/sda1 and /dev/sda4 are exactly the same size, surely the overhead of LVM makes the logical volume a little smaller than /dev/sda1.  Can you remake /dev/sda4 as something slightly bigger than /dev/sda1 and retry the whole operation?  Without knowing any more than I do about the underlying tech used to boot HVM, I'm imagining that something (windows bootloader, qemu?) thinks your partition is invalid because it can't see the end of it (because the partition is truncated).
 
-Ray


 
On Thu, Jun 19, 2008 at 3:08 AM, flinco@xxxxxxxxx <flinco@xxxxxxxxx> wrote:
Hi,

I'm using a little workstation with the following configuration:
- CPU Intel Q6600
- 2 GB DDR3 SDRAM
- 250GB SATA2 HD

- Win XP SP3 32bit on /dev/sda1 (NTFS)
- Fedora 8 32bit on /dev/sda2 (ETX3)
- Extended /dev/sda3 with:
 + a shared /dev/sda5 (NTFS)
 + 2 GB linux swap /dev/sda6

I would like to know if it is possible to take the pre-installed WinXP installation (sda1) and to run "as it is" on a xen paravirtual domain. I would like to do this way because I cannot make a new installation of Windows (I'm doing this on my office machine that runs a XP downgraded from Vista, and there's no XP recover/install CD).

It's my first time with xen and (para)virtualization.
I followed Xen User Manual and "How to Install Windows on Xen 3.0".
To be able to experiment without damaging the original XP installation I made a primary unformatted /dev/sda4 (same size of sda1) where I created a Volume Group called VG_Guests. Then I filled VG_Guests with a Logical Volume I called win_xp_sp3.
I tried to copy the physical partition sda1 into the logical volume win_xp_sp3 (dd if=/dev/sda1 of=/dev/VG_Guests/win_xp_sp3).

I use the following win_xp_sp3.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 = 768
name = "win_xp_sp3"
#vcpus=1
#acpi=1
#apic=1
pae=1
cpus = "2,3"
vif = [ 'type=ioemu, mac=00:1A:4D:5C:69:7B, bridge=xenbr0' ]
disk = [ 'phy:/dev/VG_Guests/win_xp_sp3,ioemu:hda,w','phy:/dev/sr0,ioemu:hdc:cdrom,r' ]
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
cdrom="/dev/sr0"
boot="dc"
#snapshot=1
#sdl=1
vnc=1
vncviewer=1
#vncviewer=0
#nographic=0
#serial='pty'
ne2000=0
#usb=1
#usbdevice='tablet'
audio=1
#localtime=1
#full-screen=1
#stdvga=0

I can boot from cdrom, but I cannot boot the copied XP, because paravirtual system hangs after showing "Booting From Hard Disk".
Then I tried booting a "non genuine" XP CD to access the Recovery Console; i run FIXBOOT C: but the system still doesn't boot.

There's something else I can try?

Thanks

L.B.



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users