[Bug 341596] Re: vmbuilder for vmserver fails with vmxtemplate undefined

spiceisland graham.hudspith at spiceisland.plus.com
Thu Mar 12 11:53:09 UTC 2009


** Description changed:

  Binary package hint: ubuntu-vm-builder
  
  This is under Jaunty alpha 5(ish).
  
  Having followed the instructions on
  https://help.ubuntu.com/8.10/serverguide/C/jeos-and-vmbuilder.html, I
  managed to install ubuntu-vm-builder and get apt-proxy installed and
- running in order to create a kvm-based ubunt-hardy image thus:
+ running in order to create a kvm-based ubuntu-hardy image thus:
  
  vmbuilder kvm ubuntu --suite hardy --flavour virtual --arch i386 -o
  --mirror http://localhost:9999/ubuntu --addpkg acpid
  
  The resulting image boots quite happily under kvm.
  
  I then decided to re-run the command to produce a VMWare Server
  equivalent:
  
  vmbuilder vmserver ubuntu --suite hardy --flavour virtual --arch i386 -o
  --mirror http://localhost:9999/ubuntu --addpkg acpid
  
  This NEARLY works, but dies at the last moment:
  
  ...
  2009-03-12 08:43:47,352 INFO     Copying to disk images
  2009-03-12 08:44:21,273 INFO     Installing bootloader
  2009-03-12 08:44:24,119 INFO     Unmounting target filesystem
  2009-03-12 08:44:24,414 INFO     Converting /tmp/vmbuilderB4UNWR/disk0.img to vmdk, format ubuntu-vmserver/disk0.vmdk
  2009-03-12 08:44:55,874 INFO     Cleaning up
  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 66, in run
      frontend.run()
    File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/cli/__init__.py", line 67, in run
      vm.create()
    File "/usr/lib/python2.6/dist-packages/VMBuilder/vm.py", line 463, in create
      self.deploy()
    File "/usr/lib/python2.6/dist-packages/VMBuilder/vm.py", line 184, in deploy
      getattr(self.hypervisor, 'deploy')()
    File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/vmware/vm.py", line 46, in deploy
      vmdesc = VMBuilder.util.render_template('vmware', self.vm, vmxtemplate, { 'disks' : self.disks(), 'vmhwversion' : self.vmhwversion, 'cpu' : self.vm.cpu, 'mem' : self.vm.mem, 'hostname' : self.vm.hostname, 'arch' : self.vm.arch, 'guestos' : (self.vm.arch == 'amd64' and 'ubuntu-64' or 'ubuntu') })
  NameError: global name 'vmxtemplate' is not defined
  
  I shall attach the output of re-running the command with the --debug
  option ...
  
  root at graham-desktop:~# lsb_release -rd
  Description:	Ubuntu jaunty (development branch)
  Release:	9.04
  
  root at graham-desktop:~# apt-cache policy ubuntu-vm-builder
  ubuntu-vm-builder:
    Installed: 0.10-0ubuntu1
    Candidate: 0.10-0ubuntu1
    Version table:
   *** 0.10-0ubuntu1 0
          500 http://gb.archive.ubuntu.com jaunty/universe Packages
          100 /var/lib/dpkg/status

-- 
vmbuilder for vmserver fails with vmxtemplate undefined
https://bugs.launchpad.net/bugs/341596
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list