[CentOS] Full Virtualized DomU won't boot

Sergio Belkin sebelk at gmail.com
Sat Jan 30 01:20:36 UTC 2010


2010/1/28 Pasi Kärkkäinen <pasik at iki.fi>:
> On Wed, Jan 27, 2010 at 07:21:54PM -0300, Sergio Belkin wrote:
>> Hi, I use Centos 5.4 x86_64
>>
>> kernel used is 2.6.18-164.11.1.el5xen
>>
>> I have a physical machine running Debian Etch (32 bit) and Debian
>> Lenny and I virtualized the first one as follows:
>>
>> *Created a HVM DomU with Virt-Manager with a virtual disk file of 40000 M
>> *Boot from LiveCD, and created a swap and a ext3 partitions (Yes, very
>> simple layout).
>> *Rsync'd files from root partition of physical machine to partition
>> mounted on LiveCD on DomU.
>> *Chrooted and edited files /boot/grub/menu.lst, /etc/fstab, etc/mtab,
>> /boot/grub/device.map.
>> *Then I rebooted from hard disk and stay freezed with the message
>> "booting from hard disk" . But it doesn't boot at all from hard disk.
>>
>> I can boot using grub-rescue-cdrom, but if I try to install grub with
>> grub-install it outputs:
>>
>>
>> "The file /boot/grub/stage1 not read correctly"
>>
>> (I've tried --recheck option, and depmod and update-grub commands with
>> no success)
>>
>
> Well.. stage1 is definitely needed by grub. So grub didn't get installed.
> Your domU can't boot then.
>
> - Do you have the stage1 file there?
> - Was the partition layout the same for the old server?
> - Is the grub.conf "root (hd0,X)" correct for the new disk?
>
> You can install grub from grub-shell like this, after chrooting to the filesystem:
>
> # grub
> device (hd0) /dev/sda
> root (hd0,0)
> setup (hd0)
>
> replace "hd0,0" with the correct partition index.
>

I've tried that, If that was the  problem, I hadn't asked help to the list  :)

I've found that it was a misunderstanding between Grub and the
filesystem. Target filesystem has inodes of 256 bytes while debian
etch version can read inodes of 128 bytes.


>> --
>> --
>> Open Kairos http://www.sergiobelkin.com
>> Watch More TV http://sebelk.blogspot.com
>> Sergio Belkin -
>> _______________________________________________
>> CentOS mailing list
>> CentOS at centos.org
>> http://lists.centos.org/mailman/listinfo/centos
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
--
Open Kairos http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
Sergio Belkin -


More information about the CentOS mailing list