[CentOS] Full Virtualized DomU won't boot
sebelk at gmail.com
Wed Jan 27 22:21:54 UTC 2010
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
*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,
*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
Output of file command on virtual disk file is:
/virtuales/videodisk.img: x86 boot sector; partition 1: ID=0x82,
starthead 1, startsector 63, 4273227 sectors; partition 2: ID=0x83,
active, starthead 0, startsector 4273290, 77626080 sectors
The DomU file is:
name = "video"
uuid = "54d25d78-b9d0-0159-542c-bb601cc936bb"
maxmem = 1024
memory = 512
vcpus = 1
builder = "hvm"
kernel = "/usr/lib/xen/boot/hvmloader"
boot = "d"
pae = 1
acpi = 1
apic = 1
localtime = 0
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
device_model = "/usr/lib64/xen/bin/qemu-dm"
sdl = 0
vnc = 1
vncunused = 1
keymap = "es"
disk = [ "file:/virtuales/videodisk.img,hda,w",
vif = [ "mac=00:16:36:0b:24:2d,bridge=xenbr0,script=vif-bridge" ]
parallel = "none"
serial = "pty"
With grub-rescue cd DomU can boot but as I've said can't install grub
and loads also loopback interface.
Please could you tell me what I am doing wrong?
Thanks in advance!!
Open Kairos http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
Sergio Belkin -
More information about the CentOS