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

[xen-users] guest can't bootup when converting a physical machine to an image


  • To: Xen User-List <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: Zhang Li <cindy.zhangli@xxxxxxxxx>
  • Date: Fri, 25 Sep 2009 17:59:59 +0800
  • Delivery-date: Fri, 25 Sep 2009 03:00:47 -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=Aj08JXZ4amN5BowX0ed3JpJe4ZYysQdgkZroVCx9xWQteXnTHpC7q+WWyg4IiLFPbf ftagY4f55mLoR3xeVpCQxDY3HzzWLxqo//KISJ6A5X39Pxs+lEe2+a90pD2NoR9dRfFQ Zjud2I7DypJCo8YWh7yjPcglU9oo/CtQUOmCU=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi, all

I am trying to convert an linux machine to an image. I use the
following way to convert it:

1. resize2fs /dev/sda3 4G
2. dd if=/dev/sda3 of=./rhel_hvm.img  bs=512 count=8M
3. The image file has no MBR, then I add the mbr and partition.
    I use `parted rhel_hvm.img` command,

    1) mklabel msdos
    2) mkpart primary ext3 0kB 4G (only one partition)

   the mbr and the partition is created.

But the problem is that kernel can't be loaded when grub is running.
Then I boot the guest with another centos image,
and rhel_hvm.img is used as slave disk  /dev/hdb.
Then I use `grub-install /dev/hdb`, to reinstall the grub, and it is
successfull.

Then I boot the guest with rhel_hvm.img, but it still fails. Grub is
stop with the line
"Booting froom Hard Disk".

Any ideas?

-- 
Best regards
--Li

_______________________________________________
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®.