[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
lucid has seen the end of its life and is no longer receiving any updates. Marking the lucid task for this ticket as Won't Fix. ** Changed in: vm-builder (Ubuntu Lucid) Status: Confirmed = Won't Fix -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in Ubuntu. https://bugs.launchpad.net/bugs/497258 Title: vmbuilder fails when adding package 'ubuntu-desktop' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/497258/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
Still a problem for me in oneiric 11.10. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in Ubuntu. https://bugs.launchpad.net/bugs/497258 Title: vmbuilder fails when adding package 'ubuntu-desktop' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/497258/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
Apologies - mine seems to be a different problem - I am not using --addpkg ubuntu-desktop but I am getting a similar error message: VMBuilder.exception.VMBuilderException: Process (['umount', '/tmp/tmpTuNycd/dev']) returned 1. stdout: , stderr: umount: /tmp/tmpTuNycd/dev: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in Ubuntu. https://bugs.launchpad.net/bugs/497258 Title: vmbuilder fails when adding package 'ubuntu-desktop' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/497258/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
Apologies for the noise - I think I may be actually seeing bug #726790 https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/726790 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in Ubuntu. https://bugs.launchpad.net/bugs/497258 Title: vmbuilder fails when adding package 'ubuntu-desktop' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/497258/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
Has this been fixed anywhere ? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in Ubuntu. https://bugs.launchpad.net/bugs/497258 Title: vmbuilder fails when adding package 'ubuntu-desktop' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/497258/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
Following the analysis above, I found that adding --removepkg binfmt- support allows the ubuntu-desktop package to be installed successfully, just in case anyone needs a quick workaround. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in Ubuntu. https://bugs.launchpad.net/bugs/497258 Title: vmbuilder fails when adding package 'ubuntu-desktop' -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
Same problem in natty. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in Ubuntu. https://bugs.launchpad.net/bugs/497258 Title: vmbuilder fails when adding package 'ubuntu-desktop' -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
** Also affects: vm-builder (Ubuntu Lucid) Importance: Medium Status: Confirmed ** Changed in: vm-builder (Ubuntu Lucid) Milestone: ubuntu-10.04 = None -- vmbuilder fails when adding package 'ubuntu-desktop' https://bugs.launchpad.net/bugs/497258 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
** Changed in: vm-builder (Ubuntu) Milestone: None = ubuntu-10.04 -- vmbuilder fails when adding package 'ubuntu-desktop' https://bugs.launchpad.net/bugs/497258 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
it's likely binfmt-support for mono-handled binaries. Either it's needed to run some binaries during installation, in which case vmbuilder should handle binfmt-support specially by stopping it after installation of packages, or it's not really needed and vmbuilder can just avoid it from starting. mono-runtime just does update-binfmts --import cli so I'm a bit surprized that this would actually enable the module in the kernel, it's more likely invoke-rc.d binfmt-support start loading them from binfmt-support.postinst, but I thought vmbuilder disabled invoke-rc.d services: def prevent_daemons_starting(self): os.chmod(self.install_from_template('/usr/sbin/policy-rc.d', 'nostart-policy-rc.d'), 0755) Could you run vmbuilder in debug mode to see that this occurs after Preventing daemons from starting and before Unpreventing daemons from starting? -- vmbuilder fails when adding package 'ubuntu-desktop' https://bugs.launchpad.net/bugs/497258 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
On karmic, policy-rc.d doesn't work (you need to divert or disable /sbin/initctl) -- see bug 392377 and bug 430224. -- vmbuilder fails when adding package 'ubuntu-desktop' https://bugs.launchpad.net/bugs/497258 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
Ack; I remember debootstrap being adjusted for upstart; vm-builder should copy the debootstrap tricks. But binfmt-support is not an upstart job, so I'm not sure that's the issue here. -- vmbuilder fails when adding package 'ubuntu-desktop' https://bugs.launchpad.net/bugs/497258 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
I've gotten similar problems caused by having binfmt-support installed into my VM image. Adding the following to unmount_dev_proc in /usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/dapper.py fixes my problem: run_cmd('umount', '%s/proc/sys/fs/binfmt_misc' % self.destdir) My guess is that there are other filesystems getting mounted under /proc as well that are causing this issue. I don't know what the package policy is, but I would think that vmbuilder is working as expected, but the packages are not, as they are apparently mounting filesystems on installation even when they are not supposed to run their postexec (at least, from what I can tell from vmbuilder). -- vmbuilder fails when adding package 'ubuntu-desktop' https://bugs.launchpad.net/bugs/497258 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
** Changed in: vm-builder (Ubuntu) Importance: Undecided = Medium ** Changed in: vm-builder (Ubuntu) Status: New = Confirmed -- vmbuilder fails when adding package 'ubuntu-desktop' https://bugs.launchpad.net/bugs/497258 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
I did add a sync to the following file /usr/lib/python2.6/dist-packages/VMBuilder/disk.py Here def umount(self): self.vm.cancel_cleanup(self.umount) if (self.type != TYPE_SWAP) and not self.dummy: logging.debug('Syncing') run_cmd('sync') logging.debug('Unmounting %s', self.mntpath) run_cmd('umount', self.mntpath) But there is a umount happening before that function is called. I ran vmbuilder in debug mode and here are the pertinent messages: === 2009-12-23 09:18:43,386 DEBUG : Reading package lists... 2009-12-23 09:18:43,386 DEBUG : cleaning apt 2009-12-23 09:18:43,386 DEBUG : ['chroot', '/home/ubuntu/Data/tmp/vmbuilderYt3CgM/root', 'apt-get', 'clean'] 2009-12-23 09:18:43,613 DEBUG : Unmounting volatile lrm filesystems 2009-12-23 09:18:43,614 DEBUG : Unbinding /dev and /proc filesystems 2009-12-23 09:24:43,714 DEBUG : ['umount', '/home/ubuntu/Data/tmp/vmbuilderYt3CgM/root/dev/pts'] 2009-12-23 09:24:43,718 DEBUG : ['umount', '/home/ubuntu/Data/tmp/vmbuilderYt3CgM/root/dev'] 2009-12-23 09:24:43,723 DEBUG : ['umount', '/home/ubuntu/Data/tmp/vmbuilderYt3CgM/root/proc'] 2009-12-23 09:24:43,727 INFO: umount: /home/ubuntu/Data/tmp/vmbuilderYt3CgM/root/proc: device is busy. 2009-12-23 09:24:43,728 INFO: (In some cases useful info about processes that use 2009-12-23 09:24:43,729 INFO: the device is found by lsof(8) or fuser(1)) 2009-12-23 09:24:43,729 DEBUG : Oh, dear, an exception occurred 2009-12-23 09:24:43,729 INFO: Cleaning up 2009-12-23 09:24:43,729 DEBUG : ['umount', '/home/ubuntu/Data/tmp/vmbuilderYt3CgM/root/proc'] 2009-12-23 09:24:43,733 DEBUG : umount: /home/ubuntu/Data/tmp/vmbuilderYt3CgM/root/proc: device is busy. 2009-12-23 09:24:43,734 DEBUG : (In some cases useful info about processes that use 2009-12-23 09:24:43,734 DEBUG : the device is found by lsof(8) or fuser(1)) 2009-12-23 09:24:43,734 DEBUG : ['umount', '/home/ubuntu/Data/tmp/vmbuilderYt3CgM/root/dev/pts'] 2009-12-23 09:24:43,739 DEBUG : umount: /home/ubuntu/Data/tmp/vmbuilderYt3CgM/root/dev/pts: not mounted 2009-12-23 09:24:43,739 DEBUG : ['umount', '/home/ubuntu/Data/tmp/vmbuilderYt3CgM/root/dev'] 2009-12-23 09:24:43,744 DEBUG : umount: /home/ubuntu/Data/tmp/vmbuilderYt3CgM/root/dev: not mounted 2009-12-23 09:24:43,744 DEBUG : Syncing 2009-12-23 09:24:43,744 DEBUG : ['sync'] 2009-12-23 09:24:43,793 DEBUG : Unmounting /home/ubuntu/Data/tmp/vmbuilderYt3CgM/target/ 2009-12-23 09:24:43,794 DEBUG : ['umount', '/home/ubuntu/Data/tmp/vmbuilderYt3CgM/target/'] 2009-12-23 09:24:46,803 DEBUG : ['kpartx', '-d', '/home/ubuntu/Data/tmp/vmbuilderYt3CgM/disk0.img'] 2009-12-23 09:24:46,813 DEBUG : loop deleted : /dev/loop2 2009-12-23 09:24:46,813 DEBUG : ['kpartx', '-d', '/home/ubuntu/Data/tmp/vmbuilderYt3CgM/disk0.img'] 2009-12-23 09:24:46,819 DEBUG : ['rmdir', 'kvm-test-desktop3'] 2009-12-23 09:24:46,822 DEBUG : ['rm', '-rf', '/home/ubuntu/Data/tmp/vmbuilderYt3CgM'] 2009-12-23 09:24:46,885 INFO: rm: cannot remove `/home/ubuntu/Data/tmp/vmbuilderYt3CgM/root/proc/dri/0/vma': Operation not permitted 2009-12-23 09:24:46,886 INFO: rm: cannot remove `/home/ubuntu/Data/tmp/vmbuilderYt3CgM/root/proc/dri/0/bufs': Operation not permitted . . . === So, as suggested, I did run lsof: $ sudo lsof -R /home/ubuntu/Data/tmp/vmbuilderYt3CgM/root/proc COMMAND PID PPID USER FD TYPE DEVICE SIZE/OFF NODE NAME dd808 1 root0r REG0,30 4026531987 /proc/kmsg lsof21109 31948 root3r DIR0,30 1 /proc lsof21109 31948 root6r DIR0,301176729 /proc/21109/fd So dd (with init as parent) is to blame. Then: $ ps ax | grep -w dd 4 0 808 1 20 0 8192 604 syslog Ss ? 0:00 dd bs=1 if=/proc/kmsg of=/var/run/rsyslog/kmsg Kernel messages appear to not have finished flushing to disk. I decided to try a sleep in this file /usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/dapper.py Here def unmount_dev_proc(self): import time time.sleep(360) run_cmd('umount', '%s/dev/pts' % self.destdir) run_cmd('umount', '%s/dev' % self.destdir) run_cmd('umount', '%s/proc' % self.destdir) But this did not help. -- vmbuilder fails when adding package 'ubuntu-desktop' https://bugs.launchpad.net/bugs/497258 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
** Attachment added: transcript.txt http://launchpadlibrarian.net/36854188/transcript.txt -- vmbuilder fails when adding package 'ubuntu-desktop' https://bugs.launchpad.net/bugs/497258 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
Soory, transcript.txt is actually the shell script I used to do launch vmbuilder. The transcript is actually attached as typescript.txt (from script command). ** Attachment added: typescript.txt http://launchpadlibrarian.net/36854241/typescript.txt -- vmbuilder fails when adding package 'ubuntu-desktop' https://bugs.launchpad.net/bugs/497258 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 497258] Re: vmbuilder fails when adding package 'ubuntu-desktop'
Looks like we are trying to umount the volume before it has finished committing the prior operation to disk. Maybe we should sync prior to trying to umount? -- vmbuilder fails when adding package 'ubuntu-desktop' https://bugs.launchpad.net/bugs/497258 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs