Re: [bitfolk] Xen problem: can't boot after update to Debian…

Top Page
Author: Andy Smith
Date:  
To: users
Subject: Re: [bitfolk] Xen problem: can't boot after update to Debian Wheezy

Reply to this message
gpg: Signature made Fri Jul 4 21:59:25 2014 UTC
gpg: using DSA key 2099B64CBF15490B
gpg: Good signature from "Andy Smith <andy@strugglers.net>" [unknown]
gpg: aka "Andrew James Smith <andy@strugglers.net>" [unknown]
gpg: aka "Andy Smith (UKUUG) <andy.smith@ukuug.org>" [unknown]
gpg: aka "Andy Smith (BitFolk Ltd.) <andy@bitfolk.com>" [unknown]
gpg: aka "Andy Smith (Linux User Groups UK) <andy@lug.org.uk>" [unknown]
gpg: aka "Andy Smith (Cernio Technology Cooperative) <andy.smith@cernio.com>" [unknown]
Hi John,

On Fri, Jul 04, 2014 at 11:48:37PM +0200, John Morgan Salomon wrote:
> Hi,
>
> I’ve updated my VPS to Wheezy. Unfortunately, I can’t get it to boot.
>
> Xen console returns
>
> Booting instance: travelkazoo
> Using config file "/etc/xen/travelkazoo.conf".
> Error: Boot loader didn't return any data!


This indicates that the /boot/grub/menu.lst file cannot be parsed.
Maybe it does not exist, or contains the wrong things. On wheezy it
would be provided by the package grub-legacy.

> I am not very familiar with xen - am I supposed to run xm create in /etc/xen?


Nope, you don't even need an /etc/xen directory; the reference to
/etc/xen/travelkazoo.conf above is the config file of your VPS on
BitFolk's server.

> My previous squeeze system’s backups do not have a travelkazoo.conf file in /etc/xen. xm create /etc/xen/travelkazoo.conf doesn’t work. xend does not exist, even though I have xen-linux-system-686-pae installed, which is supposed to include it. So it obviously cannot run.


A guest virtual machine running under Xen does not require xend,
that's purely for the host (dom0) machine. In fact since Debian
lenny you require no Xen-specific software whatsoever.

For Debian wheezy the correct kernel package is linux-image-686-pae
which will pull in the specific kernel linux-image-3.2.0-4-686-pae.

> xen utils installed is version 4.1, as is xen-hypervisor-4.1-i386 (arch is i386). update-grub2 works fine, /boot/grub2/grub.cfg exists and looks plausible, I’ve moved /etc/grub.d/10_linux to 50_linux so 20_linux_xen is first in line once I run update-grub2. I’ve been searching like mad and can’t seem to find anything else to try.


You should not be sing grub2, so this is probably the problem. You
need a /boot/grub/menu.lst which is provided by grub-legacy.
grub-legacy was probably removed during upgrade. If you install
grub-legacy it will probably want to remove grub2, which is fine.

It sounds like booting into rescue VM, chroot into install and
install grub-legacy will most likely fix things.

> Can someone please give me a hint what I’m missing, or do I need to reinstall squeeze from scratch and restore from backup? :(


Worst case would be to install Debian wheezy from scratch. Notes for
that are here:

    https://tools.bitfolk.com/wiki/Self-install


but I don't think it will come to that.

> Here are all relevant packages installed:
>
> ii  libc6-xen:i386                        2.13-38+deb7u1                i386
>      Embedded GNU C Library: Shared libraries [Xen version]
> ii  libxen-4.1                            4.1.4-3+deb7u1                i386
>      Public libs for Xen
> ii  libxenstore3.0                        4.1.4-3+deb7u1                i386
>      Xenstore communications library for Xen
> ii  linux-image-2.6-xen-686               2.6.32+29                     i386
>      Linux 2.6 for modern PCs (meta-package), Xen dom0 support
> ii  linux-image-2.6.32-5-xen-686          2.6.32-48squeeze4             i386
>      Linux 2.6.32 for modern PCs, Xen dom0 support
> rc  linux-modules-2.6.18-6-xen-686        2.6.18.dfsg.1-26etch2         i386
>      Linux 2.6.18 modules on i686
> ii  xen-hypervisor-4.0-amd64              4.0.1-5.11                    i386
>      The Xen Hypervisor on AMD64
> ii  xen-hypervisor-4.1-i386               4.1.4-3+deb7u1                i386
>      Xen Hypervisor on i386
> ii  xen-linux-system-3.2.0-4-686-pae      3.2.57-3+deb7u2               i386
>      Xen system with Linux 3.2 on modern PCs (meta-package)
> ii  xen-linux-system-686-pae              3.2+46                        i386
>      Xen system with Linux for modern PCs (meta-package)
> ii  xen-system-i386                       4.1.4-3+deb7u1                i386
>      Xen System on i386 (meta-package)


None of the above are required. You can remove them all and install
linux-image-686-pae.

Cheers,
Andy

--
http://bitfolk.com/ -- No-nonsense VPS hosting