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

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

To: Xen User-List <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [xen-users] guest can't bootup when converting a physical machine to an image
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=92EBxEPu6zWSSkqHkbsXZKA8P4KPzlTRouPDvUtFTUM=; b=EUGw/i/6xwtwvDBtxxs4sFKppftLjyL5OhUR5A/g8GHbPIk8+daZUNBQWV/TSZFfiv e8KpQc72bANO+27m5SIeKt03m5m7ijnNhdgfOIjXQRDHH7St/7JecteS5s2Dy+syWcA3 hatNGivtAfq/wZla8xWpHvu8pxrHY10k00GgI=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>