Should install bootloader in vm instead of using host's grub

Bug #408739 reported by Jamie Strandboge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

When the host uses grub2 (eg karmic host trying to build a Jaunty VM), it traces back with:

Traceback (most recent call last):
  File "/usr/bin/vmbuilder", line 29, in <module>
    VMBuilder.run()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/__init__.py", line 65, in run
    frontend.run()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/cli/__init__.py", line 68, in run
    vm.create()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/vm.py", line 483, in create
    self.install()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/vm.py", line 416, in install
    self.distro.install_bootloader()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/distro.py", line 164, in install_bootloader
    EOT''')
  File "/usr/lib/python2.6/dist-packages/VMBuilder/util.py", line 105, in run_cmd
    proc = subprocess.Popen(args, stdin=stdin_arg, stderr=subprocess.PIPE, stdout=subprocess.PIPE, env=proc_env)
  File "/usr/lib/python2.6/subprocess.py", line 595, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1092, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

ProblemType: Bug
Architecture: i386
Date: Tue Aug 4 09:01:43 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: wl
Package: python-vm-builder 0.11-0ubuntu2
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-4.23-generic
SourcePackage: vm-builder
Uname: Linux 2.6.31-4-generic i686

Revision history for this message
Jamie Strandboge (jdstrand) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

Setting to confirmed, This is not an easy fix and grub and grub2 can run side by side apparently.

Regards
chuck

Changed in vm-builder (Ubuntu):
status: New → Confirmed
Changed in vm-builder (Ubuntu):
importance: Undecided → Medium
Loïc Minier (lool)
summary: - vmbuilder fails when using grub2
+ Should install bootloader in vm instead of using host's grub
Revision history for this message
Loïc Minier (lool) wrote :

That's actually implemented; not sure since how long, but relatively recent.

Changed in vm-builder (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Loïc Minier (lool) wrote :

(Only works with grub1 though; see bug 509609 for grub2 support).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.