grub 0.97 and 2.00 installed in VMs causes confusion
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
vm-builder (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Using Ubuntu 12.04.2 Precise on amd64 with kvm_intel, libvirt and vmbuilder.
After building a VM for raring using:
$ sudo vmbuilder kvm ubuntu --flavour virtual --suite raring --arch i386 --hostname vm-ubuntu-
I was trying to force the console to be text-mode by removing "splash", adding "nomodeset" and "GRUB_TERMINAL=
I found that "/boot/
$ dpkg-query -l '*grub*' | grep -v ^un
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii grub 0.97-29ubuntu66 i386 GRand Unified Bootloader (Legacy version)
ii grub-common 2.00-12ubuntu1 i386 GRand Unified Bootloader (common files)
rc grub-pc 2.00-12ubuntu1 i386 GRand Unified Bootloader, version 2 (PC/BIOS version)
ii grub-pc-bin 2.00-12ubuntu1 i386 GRand Unified Bootloader, version 2 (PC/BIOS binaries)
$ lsb_release -a && uname -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Raring Ringtail (development branch)
Release: 13.04
Codename: raring
Linux vm-ubuntu-
I had to purge "grub" then install "grub2" followed by running the grub to grub2 upgrade script:
sudo apt-get --purge remove grub
sudo apt-get install grub2
sudo /usr/sbin/
sudo rm -f /boot/grub/
Changed in vm-builder (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
I've moved this to 'low' on vm-builder, and made it affect grub2 in ubuntu. Hopefully cjwatson can tell me if I'm wrong.
Generally, though, grub-pc and grub conflict with each other, so the state you got (with -pc uninstalled) is not terribly unreasonable.
fwiw, The ubuntu cloud images uses 'grub-legacy-ec2' to manage /boot/grub/ menu.lst. Ie, if you really think you need that file managed, that is one solution. The other solution is to use drop grub 0.97