|
|
|
|
|
|
|
|
|
|
xen-users
[xen-users] guest can't bootup when converting a physical machine to an
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>
|
- [xen-users] guest can't bootup when converting a physical machine to an image,
Zhang Li <=
|
|
|
|
|