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

[Xen-users] Debian HVM DomU won't boot


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Sergio Belkin <sebelk@xxxxxxxxx>
  • Date: Wed, 27 Jan 2010 21:11:46 -0300
  • Delivery-date: Wed, 27 Jan 2010 16:12:25 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=OHj8bHDGJPD/oAOHFqfEbdz7Ko6tI3I+H+JOJitZUX7FrrW/3ughnQdvZTT2ID6xPT g8ycazcPuxaHXU8mwzJ0PxWDJ/8Lo7KtW2RUqxp0SA91YeLy9j37pS3q6yFMQ6uvZIXu IASlOxF9z/nQ0y9MrIrfGx9mbQVznPl09WM8c=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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)


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:

DomU (file):

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",
"file:/virtuales/isos/grub-rescue-cdrom.iso,hdc:cdrom,r" ]
vif = [ "mac=00:16:36:0b:24:2d,bridge=xenbr0,script=vif-bridge" ]
parallel = "none"
serial = "pty"
EOF



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 -

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