^CTraceback (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]
KeyboardInterrupt
So it's definitely a question of python waiting for data from the child, but the child has gone away.
I see hang at "Base system installed successfully" too, building Trusty VM under Precise 64-bit.
Last three lines of ps auxwww are:
root 20430 0.1 0.0 40060 9716 pts/2 S+ 10:36 0:00 /usr/bin/python /usr/bin/vmbuilder kvm ubuntu --suite trusty --hostname trusty --mem 512 --debug --dest /var/lib/ libvirt/ images/ trusty
root 20432 0.0 0.0 0 0 pts/2 Z+ 10:36 0:00 [debootstrap] <defunct>
root 31685 0.0 0.0 9892 1180 ? Ss 10:37 0:00 udevd --daemon
There is a zombie debootstrap.
# pstree -s 20432 sshd─── sshd─── sshd─── bash─── sudo─── bash─── vmbuilder─ ──debootstrap
init───
# ps -o pid,ppid -C debootstrap
PID PPID
20432 20430
Same backtrace from ctrl-C:
^CTraceback (most recent call last): vmbuilder" , line 24, in <module> python2. 7/dist- packages/ VMBuilder/ contrib/ cli.py" , line 216, in main build_chroot( ) python2. 7/dist- packages/ VMBuilder/ distro. py", line 83, in build_chroot call_hooks( 'bootstrap' ) python2. 7/dist- packages/ VMBuilder/ distro. py", line 67, in call_hooks hooks(self, *args, **kwargs) python2. 7/dist- packages/ VMBuilder/ util.py" , line 165, in call_hooks context, func, log_no_ such_method) (*args, **kwargs) python2. 7/dist- packages/ VMBuilder/ plugins/ ubuntu/ distro. py", line 136, in bootstrap suite.debootstr ap() python2. 7/dist- packages/ VMBuilder/ plugins/ ubuntu/ dapper. py", line 269, in debootstrap python2. 7/dist- packages/ VMBuilder/ util.py" , line 113, in run_cmd select( [x.file for x in [mystdout, mystderr] if not x.closed], [], [])[0]
File "/usr/bin/
cli.main()
File "/usr/lib/
distro.
File "/usr/lib/
self.
File "/usr/lib/
call_
File "/usr/lib/
getattr(
File "/usr/lib/
self.
File "/usr/lib/
run_cmd(*cmd, **kwargs)
File "/usr/lib/
fds = select.
KeyboardInterrupt
So it's definitely a question of python waiting for data from the child, but the child has gone away.