VMBuilder doesn't work with grub2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VMBuilder |
Fix Released
|
Undecided
|
Unassigned | ||
vm-builder (Ubuntu) |
Fix Released
|
High
|
Soren Hansen | ||
Karmic |
Fix Released
|
High
|
Soren Hansen |
Bug Description
If you run vmbuilder on a fresh karmic installation you get the following error message at the end of the vmbuilder run:
2009-08-09 01:06:56,792 INFO : Cleaning up
Traceback (most recent call last):
File "/home/
VMBuilder.run()
File "/home/
frontend.run()
File "/home/
vm.create()
File "/home/
self.install()
File "/home/
self.
File "/home/
EOT''')
File "/home/
proc = subprocess.
File "/usr/lib/
errread, errwrite)
File "/usr/lib/
raise child_exception
OSError: [Errno 2] No such file or directory
A quick look at VMBuilder/vm.py shows that it tries to call the program "grub" but this program doesn't exist with grub2.
The main problem here is that you can't have both of the packages grub and grub-pc installed at the same time since they replace each other. It looks like the maintainers of the grub packages didn't think about the not so common use case where you install a bootmanager package but don't want it to boot your machine. But if you have a freshly installed karmic machine you need both bootloader packages to be present or otherwise you couldn't create any VMs with an Ubuntu version older than karmic, even if vmbuilder supported grub2. A similar problem would occur, if you used an PC with EFI and the EFI version of grub2 so that you needed the PC version of grub2 to install the bootloader of the virtual machine.
Related branches
- Soren Hansen: Approve
-
Diff: 46 lines1 file modifiedVMBuilder/plugins/ubuntu/distro.py (+20/-4)
description: | updated |
Changed in vmbuilder: | |
status: | New → Confirmed |
Changed in vm-builder (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → karmic-alpha-6 |
milestone: | karmic-alpha-6 → ubuntu-9.10-beta |
Changed in vm-builder (Ubuntu Karmic): | |
assignee: | nobody → Soren Hansen (soren) |
milestone: | ubuntu-9.10-beta → none |
Changed in vm-builder (Ubuntu Karmic): | |
assignee: | Soren Hansen (soren) → Colin Watson (cjwatson) |
Changed in vm-builder (Ubuntu Karmic): | |
status: | Confirmed → Triaged |
assignee: | Colin Watson (cjwatson) → Soren Hansen (soren) |
milestone: | none → ubuntu-9.10 |
Changed in vmbuilder: | |
status: | Confirmed → Fix Released |
Adding grub2 support to VMBuilder seems very non-trivial at the moment. However, it seems that grub and grub2 can peacefully coexist now? I'm certainly using grub2 on my laptop, but have just installed grub and VMBuilder builds virtual machines just fine now.