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

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

  • To: deshantm@xxxxxxxxx
  • From: "Sujata Garera" <sujatadoshi@xxxxxxxxx>
  • Date: Mon, 12 May 2008 15:51:40 -0400
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 12 May 2008 12:52:08 -0700
  • 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=fD5J5YmC0ud8g1HBw8JHvXshv5WTjwpsnbWqdu3BjnFrNoI3QfbxIAHBCGbW0eVmlnOKTaRMlq1/ifLQXfgERVDvLnRxTjq88g0MaW8mLsT5YGv1sVhZyJZYXpvU5nkPPgoHY5D7v1PhMo6AoPScym2smpILFmrl6fz47uxe6Mg=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hello Todd
Thank you very much. Changing the disk line worked !

On Mon, May 12, 2008 at 3:28 PM, Todd Deshane <deshantm@xxxxxxxxx> wrote:
Hello Sujata,

On Mon, May 12, 2008 at 2:52 PM, Sujata Garera <sujatadoshi@xxxxxxxxx> wrote:
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

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:

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

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

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.



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

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



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?


Xen-devel mailing list



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