The code was failing here:

 93             capacity=$(vboxmanage showhdinfo "${final_img}" |
 94                 awk '$0 ~ /^Logical size:/ { printf("%i\n", $3 * 1024 * 
1024) }') &&
 95                 [ -n "${capacity}" ] || error "unable to get capacity - 
capacity reported as ${capacity}"

Which produces:
vmbuilder@nectarine:~/ec2-daily/cloudimg-build-launcher.20110906.GTwDj7$ 
vboxmanage showhdinfo natty-server-cloudimg-amd64-disk1.vmdk
WARNING: The character device /dev/vboxdrv does not exist.
         Please install the virtualbox-ose-dkms package and the appropriate
         headers, most likely linux-headers-server.

         You will not be able to start VMs until this problem is fixed.
Sun VirtualBox Command Line Management Interface Version 3.1.6_OSE
(C) 2005-2010 Sun Microsystems, Inc.
All rights reserved.

ERROR: Runtime error: -38 (Access denied.).
/build/buildd/virtualbox-ose-3.1.6-dfsg/src/VBox/Main/VirtualBoxImpl.cpp[3325] 
(nsresult VirtualBox::saveSettings())
Details: code NS_ERROR_FAILURE (0x80004005), component VirtualBox, interface 
IVirtualBox, callee nsISupports
Context: "OpenHardDisk(Bstr(szFilenameAbs), AccessMode_ReadWrite, false, 
Bstr(""), false, Bstr(""), hardDisk.asOutParam())" at line 1164 of file 
VBoxManageDisk.cpp


A "strace" of the command as the vmbuilder user showed that the VMBuilder did 
not have permssion to the the .VirtualBox directory: 

open("/home/vmbuilder/.VirtualBox/compreg.dat.tmp", O_WRONLY|O_CREAT|O_TRUNC, 
0666) = -1 EACCES (Permission denied)
futex(0x25972cc, FUTEX_CMP_REQUEUE_PRIVATE, 1, 2147483647, 0x2597318, 2) = 1
write(9, "8", 1)                        = 1
futex(0x2596210, FUTEX_WAKE_PRIVATE, 1) = 1
close(5)                                = 0
close(6)                                = 0
close(9)                                = 0
close(3)                                = 0
close(4)                                = 0
brk(0x25df000)                          = 0x25df000
exit_group(1)                           = ?

Changing /home/vmbuilder/.VirtualBox/ to be owned by vmbuilder fixed the
issue. Manually initiated build.

** Changed in: ubuntu
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/842999

Title:
  cloud-image builds of natty are failing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/842999/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to