RE: Xen on Squeeze won't start




Date: Fri, 2 Jul 2010 13:51:14 -0700
Subject: Re: Xen on Squeeze won't start
From: rippls@xxxxxxxxxxxxxxxxxxx
To: debian-user@xxxxxxxxxxxxxxxx
CC: waldi@xxxxxxxxxx

Well just in case someone else hits this... once my colleague
suggested I look closer at what grub2 was doing, and after more time
on Google and experimenting I came up with this... the actual xen 3.4
hypervisor isn't being put into the grub2 boot list. It's not good
booting off the one that says ...-xen-... as that appears to be the
paravirtualised kernel, not the hypervisor. So, the following in
/etc/grub.d/40_custom

menuentry "Xen 3.4 / Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64" {
insmod raid
insmod mdraid
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set c924a87f-1ff0-4483-8029-a0e67dcc434f
multiboot (md0)/boot/xen-3.4-amd64.gz dummy=dummy
module (md0)/boot/vmlinuz-2.6.32-5-xen-amd64 dummy=dummy
root=UUID=c924a87f-1ff0-4483-8029-a0e67dcc434f nomodeset
module (md0)/boot/initrd.img-2.6.32-5-xen-amd64
}

(change md0 for your boot devic and get your uuid out of /etc/fstab), set

GRUB_DEFAULT="Xen 3.4 / Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64"

in /etc/default/grub, run update-grub and reboot. Finally a ps -e |
grep xen shows a bunch of xen processes!

Now to see how it actually performs...




On Thu, Jul 1, 2010 at 10:03 AM, Rippl, Steve
<rippls@xxxxxxxxxxxxxxxxxxx> wrote:
Hi,
We've been running Xen on Lenny for some time and it's worked great, but
with a new server and some older Xen kernel issues around acpi we're trying
the newer version on Squeeze.
So, I did a base install of Squeeze alpha 1, then apt-get install
xen-linux-system-2.6.32-5-xen-amd64 xen-tools. After adjusting the Grub 2
boot menu (installing the Xen kernel doesn't put it at the top of the boot
menu, so by default Grub booted into the 'trunk' kernel) the server rebooted
into the Xen kernel (uname -r gives 2.6.32-5-xen-amd64) and yet xend won't
start! Running xm create... I get "Error: Unable to connect to xend: No
such file or directory. Is xend running?". Trying to start via /etc/init.d
I get nothing!
I've seen the close bug report
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580500) where someone
seems to have the same error as me, I also have "Booting paravirtualized
kernel on bare hardware" in kern.log, and Bastian says it's user error, but
doesn't explain how that's user error!?
Any insight is much appreciated!
Thanks,
Steve
--

Does the attached script help? It is an executable grub2 shell script.

-M


_________________________________________________________________
Turn down-time into play-time with Messenger games
http://go.microsoft.com/?linkid=9734385

Attachment: 20_linux_xen.in
Description: Binary data



Relevant Pages

  • No grub2 menu display; cant boot F17
    ... But since the grub2 developers are probably overwhelmed at this point, ... After about 30 sec the machine boots into some randomly chosen kernel. ... After completing installation of F17, ... At "first boot", the machine booted an old F16 kernel combined with the ...
    (Fedora)
  • Re: Grubb list menu
    ... grub2 may be the next gen... ... Still a PITA too. ... One way to avoid all this is to set up a separate 'main boot' or first ... to each individual OS grub to update kernel changes in the other OS's. ...
    (Ubuntu)
  • Re: 2.6.30 (Squeeze): no hda1 no sda1
    ... I'm runny Debian Testing (Squeeze) and have been for years. ... old kernel of course) and rebooted. ... Boot your 2.6.26 kernel and try changing your fstab to use the UUID or ... I have noticed changes to older drives in particular. ...
    (Debian-User)
  • Re: Debian -> Mac Mini, so close yet so far?
    ... and if I boot the CD and choose 'rescue' it all looks OK. ... But it won't boot. ... I get a Grub2 menu list - hmmm, I think it's Grub2, during the ... If I select either of my kernels (well, I guess same kernel, diff ...
    (uk.comp.os.linux)
  • Re: Xen on Squeeze wont start
    ... hypervisor isn't being put into the grub2 boot list. ... paravirtualised kernel, not the hypervisor. ... So, I did a base install of Squeeze alpha 1, then apt-get install ...
    (Debian-User)