Boot problem with Xen DomU after kernel upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Setting:
- Xen Dom0 running Ubuntu Server 12.04
- Xen DomU running Ubuntu Server 12.04
$ lsb_release -rd
Description: Ubuntu 12.04.1 LTS
Release: 12.04
$ apt-cache policy grub2-common
grub2-common:
Installed: 1.99-21ubuntu3.4
Candidate: 1.99-21ubuntu3.4
Version table:
*** 1.99-21ubuntu3.4 0
500 http://
100 /var/lib/
1.99-21ubuntu3 0
500 http://
$ apt-cache policy xen-utils-4.1
xen-utils-4.1:
Installiert: 4.1.2-2ubuntu2.4
Kandidat: 4.1.2-2ubuntu2.4
Versionstabelle:
*** 4.1.2-2ubuntu2.4 0
500 http://
500 http://
100 /var/lib/
4.1.2-2ubuntu2 0
500 http://
DomU was installed with Netboot-Image on a LVM volume. Bootloader than changed to pygrub.
--- Xen configuration for machine ---
name = "openldaptest"
memory = 256
disk = ['phy:/
vif = ['bridge=xenbr0']
bootloader = "pygrub"
---
Did `apt-get dist-upgrade` inside the DomU with kernel upgrade and after `init 6` the DomU would not boot anymore.
Starting pygrub manually:
$ sudo /usr/bin/pygrub -n /dev/camion/
Using <class 'grub.GrubConf.
/boot/
WARNING:
WARNING:
WARNING:
WARNING:
WARNING:
WARNING:
WARNING:
WARNING:
WARNING:
WARNING:
WARNING:
WARNING:
WARNING:
WARNING:
WARNING:
Traceback (most recent call last):
File "/usr/bin/pygrub", line 763, in <module>
raise RuntimeError, "Unable to find partition containing kernel"
RuntimeError: Unable to find partition containing kernel
The message 'Unknown directive submenu' was the first different from a working DomU.
So I mounted the the system partition, copied a backup over /boot/grub/grub.cfg and manually changed it to the version of the new kernel on all occurences of the version number. After that I unmounted the system partition and could start the DomU again. I then did login on the DomU and removed the old kernel with `apt-get purge`. This time after `init 6` the DomU booted fine.
So after all it is working but the process of upgrading the kernel is suboptimal.
Status changed to 'Confirmed' because the bug affects multiple users.