How do I get vmbuilder to progress?

Posted by Avery Chan on Ask Ubuntu See other posts from Ask Ubuntu or by Avery Chan
Published on 2012-06-26T10:18:49Z Indexed on 2012/06/27 3:23 UTC
Read the original article Hit count: 531

Filed under:
|

I've used the following command to create my vm:

vmbuilder kvm ubuntu --verbose --suite=precise --flavour=virtual --arch=amd64 -o --libvirt=qemu:///system --tmpfs=- --ip=192.168.2.1 --part=/home/shared/vm1/vmbuilder.partition --templates=/home/shared/vm1/templates --user=vadmin --name=VM-Administrator --pass=vpass --addpkg=vim-nox --addpkg=unattended-upgrades --addpkg=acpid --firstboot=/home/shared/vm1/boot.sh --mem=256 --hostname=chameleon --bridge=br0

I've been trying to follow the direction here.

My system just outputs this and it hangs at the last line:

2012-06-26 18:08:29,225 INFO    : Mounting tmpfs under /tmp/tmpJbf1dZtmpfs
2012-06-26 18:08:29,234 INFO    : Calling hook: preflight_check
2012-06-26 18:08:29,243 INFO    : Calling hook: set_defaults
2012-06-26 18:08:29,244 INFO    : Calling hook: bootstrap

How can I get vmbuilder to continue the process instead of dying right here?

I'm running 12.04.

EDIT: Adding some additional output details

When I ^C to get out of the hang I see this:

^C2012-06-26 18:19:29,622 INFO    : Unmounting tmpfs from /tmp/tmpJbf1dZtmpfs
Traceback (most recent call last):
  File "/usr/bin/vmbuilder", line 24, in <module>
    cli.main()
  File "/usr/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py", line 216, in main
    distro.build_chroot()
  File "/usr/lib/python2.7/dist-packages/VMBuilder/distro.py", line 83, in build_chroot
    self.call_hooks('bootstrap')
  File "/usr/lib/python2.7/dist-packages/VMBuilder/distro.py", line 67, in call_hooks
    call_hooks(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/VMBuilder/util.py", line 165, in call_hooks
    getattr(context, func, log_no_such_method)(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/distro.py", line 136, in bootstrap
    self.suite.debootstrap()
  File "/usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.py", line 269, in debootstrap
    run_cmd(*cmd, **kwargs)
  File "/usr/lib/python2.7/dist-packages/VMBuilder/util.py", line 113, in run_cmd
fds = select.select([x.file for x in [mystdout, mystderr] if not x.closed], [], [])[0]

© Ask Ubuntu or respective owner

Related posts about kvm

Related posts about vm