Disclaimer: I am no xen expert whatsoever so I may be telling you utter
I've never looked into booting a CD image in a PVM. It kind of contradicts the
basic fact that you are loading a kernel and an initrd "from the outside".
And as soon as you get the kernel and your initrd to boot, you should have
everything in your hands to fix the VM from the inside.
If you are running pygrub, then xen will access the kernel and initrc that are
on the VMs disk image but still they are loaded into memory by something
the VM. Grub code is never executed.
So in order to fix your VM I suggest you mount the partition where /boot lies
dom0, fix that problem, unmount the partition and try to boot your domU again.
On Mon, Feb 07, 2011 at 02:58:46PM +0100, Peter den Hartog wrote:
> Ah thank you :-),
> I think this is the problem ->
> The entries added to chain load grub1 to grub2 will not allow pygrub to find
> the correct partition. Before rebooting a freshly upgraded Squeeze DomU,
> make sure to rename or remove /boot/grub/menu.lst. This will force pygrub to
> look for the /boot/grub/grub.cfg file which will be in the correct format.
> I remember a warning about this :-).
> Is there a way to boot a VM with a live CD? And fix it? XCP has Squeeze
> support so i shouldn't have to patch anything, but i do remember a warning
> about the /boot/grub/menu.lst
> On Mon, Feb 7, 2011 at 2:41 PM, Henrik Langos
> > On Sun, Feb 06, 2011 at 09:07:57PM +0100, Peter den Hartog wrote:
> > > Hi,
> > >
> > > So tonight i tought, let's upgrade to Debian 6. First i made a back-up of
> > > all my VM's and then i did a dist upgrade in one of them. The upgrade
> > seemed
> > > ok, but when i try to start my VM i get this message:
> > >
> > > [root@xcp-box ~]# xe vm-start vm=Debian
> > > Error code: Using <class 'grub.GrubConf.GrubConfigFile'> to parse
> > > /boot/grub/menu.lst
> > > Error parameters: Traceback (most recent call last):, File
> > > "/usr/bin/pygrub", line 746, in ?, raise RuntimeError, "Unable to
> > find
> > > partition containing kernel", RuntimeError: Unable to find partition
> > > containing kernel,
> > > [root@xcp-box~]#
> > >
> > > So what i understand about this, is that the upgrade went fine but Grub
> > > seems to fail..
> > >
> > > Any pointers if i can fix/debug this?
> > >
> > > Thanks,
> > > Peter
> > Try http://wiki.debian.org/Xen#LennytoSqueezeUpgrading.2BAC8-Transition :
> > > DomU Issues
> > >
> > > * A Squeeze DomU will not be able to boot on the Xen-3.2 package
> > supplied by Lenny because this older version will not support grub2. A Lenny
> > DomU can be upgraded to Squeeze while running on a Lenny Dom0 but it will
> > not be able to be booted until the Dom0 has been upgraded to the Xen-4.0
> > packages.
> > > * The entries added to chain load grub1 to grub2 will not allow pygrub
> > to find the correct partition. Before rebooting a freshly upgraded Squeeze
> > DomU, make sure to rename or remove /boot/grub/menu.lst. This will force
> > pygrub to look for the /boot/grub/grub.cfg file which will be in the correct
> > format.
> > >
> > cheers
> > -henrik
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users
Xen-users mailing list