debootstrap crashes without reason

Bug #1339687 reported by Hoang Xuan Phu
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm using python-vm-builder and ubuntu-vm-builder built from vm-builder/precise-proposed on a precise host. Running vmbuilder works as expected until it prints the output:

> 2014-07-09 10:50:57,448 DEBUG : I: Base system installed successfully.

After that nothing happens, the thing just hangs there. Checking with ps I see a defunct debootstrap process, but I suppose at that point debootstrap has finished already.

The full out put with --verbose and --debug is here http://pastebin.com/EN5HkAEU
Please let me know what information I can provide to help troubleshooting.

Revision history for this message
JD Lindemann (4buneu) wrote :

Exact same symptom for me too.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in vm-builder (Ubuntu):
status: New → Confirmed
Revision history for this message
JD Lindemann (4buneu) wrote :

Researching this issue a bit more, I edited /usr/sbin/debootstrap and added KEEP_DEBOOTSTRAP_DIR=true
I notice a lot of failures in the debootstrap/debootstrap.log when vmbuilder was setting up the packages.
My problem was that I was attempting to create a vm with a newer Ubuntu suite (saucy) than I was currently running.
I was running vmbuilder on 12.04 (precise), and attempting 'saucy'.
I followed this (very nice) writeup: http://www.howtoforge.com/virtualization-with-kvm-on-ubuntu-12.04-lts

After changing this command:
/var/lib/libvirt/images/vm1# vmbuilder kvm ubuntu --suite=saucy --flavour=virtual --arch=amd64 -
-mirror=http://archive.ubuntu.com/ubuntu/ -o --libvirt=qemu:///system --ip=192.168.122.101 --gw=192.168.122.1 --part=vmbuilder.partition --templates=mytemplates --user=administrator --name=admin --pass=admin --addpkg=vim-nox --addpkg=unattended-upgrades --addpkg =acpid --mem=256 --hostname=vm1 --bridge=virbr0 --debug --verbose

to --suite=precise (like the writeup said)... it worked like a charm.
Note: there's a long pause at: 'INFO : Calling hook: bootstrap' -but if you tail-f debootstrap.log, it's doing a lot of work.
Eventually vmbuilder returns to showing you progress.

This bug no longer affects me. Thanks.

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.