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-devel

Re: [Xen-devel] Loading a raw hard disk image in xen

To: "Sujata Garera" <sujatadoshi@xxxxxxxxx>
Subject: Re: [Xen-devel] Loading a raw hard disk image in xen
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Mon, 12 May 2008 15:28:26 -0400
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 12 May 2008 12:28:58 -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:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=gOKhDoN6Fumz9zlwiJRA7A0eBZyBYFajXY1DwUVSzk4=; b=Rtelbo/GKr2sIrj8Iz0QbmWAFbzNSgu5JbC1x6VgorDMWbKF3B7wmlk8yTQHMhhn1zBZb8zg9VOVj475V4OoaVOdqsND7E9UkEjBvpK+GqDJC0rKkD2K+2EbOdhhOt9nVMaDFfvzrCGn4QCGr1ZXTGVR3inHPePGCRmewA2YpKs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=WZfmI525Xgx00OfOG4n4H3yg09QkjGllhActuf5TGFojtchVhN3hsCSzwneviv0AN5r8MbDRiQDq9ibAvrlOiE/8Qh60LMx+YNjJS1Wx/nRyWygoK0scQCUANkApjhbfBMLkqQfIxCe5mUZ1FCpadl6IFwQeDClj3aRnvivAfHw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47a91af40805121152t45e4dc84h755d746f000b7b24@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <47a91af40805121152t45e4dc84h755d746f000b7b24@xxxxxxxxxxxxxx>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hello Sujata,

On Mon, May 12, 2008 at 2:52 PM, Sujata Garera <sujatadoshi@xxxxxxxxx> wrote:
Hello
I have a 40 gig raw image of a hard disk (created using dd) that loads
a Windows OS. I would like to load this image as a Windows VM inside
Xen. I have been trying to boot of this disk using the following config
file

What you are describing here and the disk line you are using don't match up.

If it is a dd of the entire drive, which contains Windows, then you should treat
it like a hard drive and not a cdrom.

I will put some specific comment inline.


kernel = "/usr/lib/xen/boot/hvmloader"
builder = 'hvm'
memory = 1536
name = "mcforen"
vcpus = 1



If in fact it is a hard drive that you are working with that you
made a dd of, you should try changing the disk line to
something like:

disk=['tap:aio:/path/to/disk2bak.iso,hda,w']
 
I wouldn't use the .iso extention either. I would recommend
either no extension, .img, or .disk (meaning that it is an image
of a disk).

The line that you currently have is more similar to what I would
expect if it was an ISO file taken from a dd of a physical cdrom
(optical disk). But based on your description that it not what it
is.

If it was a physical cdrom, then you should change the boot=
line to be boot="d", which would boot from the installation
CD.

Also you don't need the cdrom= line. You shouldn't have it
in this case. It is my understanding that the preferred way
is to use the disk=line instead.



disk=['file:disk2bak.iso,hdc:cdrom,r']

 

device_model = '/usr/lib/xen/bin/qemu-dm'
 

As explained about, suggest removing this cdrom line
cdrom = '/dev/hda'

 

stdvga=0
sdl=1
vncviewer=0
usbdevice='tablet'
audio=1
serial='pty'
boot='c'

However I get the following error when the VM loads
Boot from Hard Disk failed: could not read boot disk


You should continue the discussion on the xen-users list, unless there is good reason to
have it on the devel list.

Also, what version of Xen, how was it installed, and what distribution/OS are you running?

Cheers,
Todd


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>