Opened 6 years ago

Closed 4 years ago

#11362 closed defect (wontfix)

"amd64 lucid VM creation failed" with virtualized LXC build on Ubuntu 12.04.4

Reported by: dcf Owned by: tbb-team
Priority: Medium Milestone:
Component: Applications/Tor Browser Version:
Severity: Keywords: gitian, lxc, tbb-3.5, tbb-gitian
Cc: mikeperry, gk, boklm Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I got an error with gitian-builder tor-browser-builder-3.x-5 and tor-browser-bundle tbb-3.5.3-build1 when I tried an LXC build inside KVM. The i386 linux VM image built okay, but then there was a failure in building the amd64 linux image:

lxc-start: failed to spawn 'gitian'
amd64 lucid VM creation failed

(See full log in comment:1.)

I was running inside a KVM-virtualized installation of ubuntu-12.04.4-server-amd64.iso.

$ uname -a
Linux ubuntu 3.11.0-18-generic #32~precise1-Ubuntu SMP Thu Feb 20 17:52:10 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

boklm on IRC reported that they had built using virtualized LXC within the last week. They are using ubuntu-12.04.4-desktop.iso with 3.11.0-15-generic#25~precise1-Ubuntu. Perhaps my use of "server" rather than "desktop" makes the difference; I didn't try the "desktop" ISO. boklm said that they didn't have the Cgroup namespace: required error below.

Some web searching led me to check the output of the lxc-checkconfig command. The line that stands out as erroneous is Cgroup namespace: required. It appears red in the terminal and is the only line that appears red.

$ lxc-checkconfig
Kernel config /proc/config.gz not found, looking in other places...
Found kernel config file /boot/config-3.11.0-18-generic
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: missing
Network namespace: enabled
Multiple /dev/pts instances: enabled

--- Control groups ---
Cgroup: enabled
Cgroup namespace: required
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: missing
Cgroup cpuset: enabled

--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
File capabilities: enabled

Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig

These links may be relevant:

The lxc-checkconfig output may be a red herring, because after all I was able to make the i386 image. (Then again, boklm didn't have the same lxc-checkconfig error.) I tried commenting out the building of the i386 image so that the amd64 would be built first, and it still failed.

Some time back we had a problem that was resolved by removing linux-generic-lts-saucy (backported kernel from a newer Ubuntu, installed by default in 12.04.4) and replacing it with linux-generic-lts-quantal. I tried that and it didn't work.

Child Tickets

Change History (3)

comment:1 Changed 6 years ago by dcf

Here's a log of mkbundle-linux.sh. I added the -x flag to on-target in order to see what command was failing (it's lxc-start).

# ./mkbundle-linux.sh
2014-03-25 10:53:54,663 INFO    : Calling hook: preflight_check
2014-03-25 10:53:54,672 INFO    : Calling hook: set_defaults
2014-03-25 10:53:54,673 INFO    : Calling hook: bootstrap
2014-03-25 10:58:15,969 INFO    : Calling hook: configure_os
Extracting templates from packages: 100%
2014-03-25 10:59:56,404 INFO    : update-alternatives: error: no alternatives for rsh.
2014-03-25 10:59:56,491 INFO    : update-alternatives: error: no alternatives for rlogin.
2014-03-25 10:59:56,579 INFO    : update-alternatives: error: no alternatives for rcp.
2014-03-25 10:59:59,703 INFO    : Creating SSH2 RSA key; this may take some time ...
2014-03-25 11:00:00,019 INFO    : Creating SSH2 DSA key; this may take some time ...
2014-03-25 11:00:00,419 INFO    :
2014-03-25 11:00:00,420 INFO    : Warning: Fake initctl called, doing nothing
2014-03-25 11:00:00,423 INFO    :
2014-03-25 11:00:00,423 INFO    : Warning: Fake initctl called, doing nothing
2014-03-25 11:00:02,973 INFO    :
2014-03-25 11:00:02,974 INFO    : Current default time zone: 'Etc/UTC'
2014-03-25 11:00:02,976 INFO    : Local time is now:      Tue Mar 25 18:00:02 UTC 2014.
2014-03-25 11:00:02,978 INFO    : Universal Time is now:  Tue Mar 25 18:00:02 UTC 2014.
2014-03-25 11:00:02,978 INFO    :
Extracting templates from packages: 100%
2014-03-25 11:00:42,819 INFO    :
2014-03-25 11:00:42,820 INFO    : Current default time zone: 'Etc/UTC'
2014-03-25 11:00:42,828 INFO    : Local time is now:      Tue Mar 25 18:00:42 UTC 2014.
2014-03-25 11:00:42,829 INFO    : Universal Time is now:  Tue Mar 25 18:00:42 UTC 2014.
2014-03-25 11:00:42,830 INFO    : Run 'dpkg-reconfigure tzdata' if you wish to change it.
2014-03-25 11:00:42,830 INFO    :
2014-03-25 11:01:10,747 INFO    : Clearing symlinks in /etc/ssl/certs...done.
2014-03-25 11:01:13,847 INFO    : Updating certificates in /etc/ssl/certs... 164 added, 0 removed; done.
2014-03-25 11:01:13,855 INFO    : Running hooks in /etc/ca-certificates/update.d....done.
2014-03-25 11:01:16,847 INFO    :
2014-03-25 11:01:16,848 INFO    : Warning: Fake initctl called, doing nothing
2014-03-25 11:01:23,800 INFO    : Cleaning up
2014-03-25 11:01:23,801 INFO    : Calling hook: preflight_check
2014-03-25 11:01:23,802 INFO    : Calling hook: configure_networking
2014-03-25 11:01:23,812 INFO    : Calling hook: configure_mounting
2014-03-25 11:01:23,818 INFO    : Calling hook: mount_partitions
2014-03-25 11:01:23,820 INFO    : Mounting target filesystems
2014-03-25 11:01:23,820 INFO    : Creating disk image: "/tmp/tmpFVykbv" of size: 11264MB
2014-03-25 11:01:24,035 INFO    : Adding partition table to disk image: /tmp/tmpFVykbv
2014-03-25 11:01:24,177 INFO    : Adding type 4 partition to disk image: /tmp/tmpFVykbv
2014-03-25 11:01:24,178 INFO    : Partition at beginning of disk - reserving first cylinder
2014-03-25 11:01:24,202 INFO    : Adding type 3 partition to disk image: /tmp/tmpFVykbv
2014-03-25 11:01:24,209 INFO    : [0] ../../libparted/filesys.c:148 (ped_file_system_type_get): File system alias linux-swap(new) is deprecated
2014-03-25 11:01:24,233 INFO    : Creating loop devices corresponding to the created partitions
2014-03-25 11:01:24,242 INFO    : Creating file systems
2014-03-25 11:01:24,271 INFO    : mke2fs 1.42 (29-Nov-2011)
2014-03-25 11:01:30,596 INFO    : mkswap: /dev/mapper/loop0p2: warning: don't erase bootbits sectors
2014-03-25 11:01:30,597 INFO    :         on whole disk. Use -f to force.
2014-03-25 11:01:34,536 INFO    : Calling hook: install_bootloader
2014-03-25 11:01:52,457 INFO    : Searching for GRUB installation directory ... found: /boot/grub
2014-03-25 11:01:52,489 INFO    : Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
2014-03-25 11:01:52,490 INFO    : Searching for GRUB installation directory ... found: /boot/grub
2014-03-25 11:01:52,493 INFO    : Testing for an existing GRUB menu.lst file ...
2014-03-25 11:01:52,494 INFO    :
2014-03-25 11:01:52,494 INFO    : Could not find /boot/grub/menu.lst file.
2014-03-25 11:01:52,495 INFO    : Generating /boot/grub/menu.lst
2014-03-25 11:01:52,526 INFO    : Searching for splash image ... none found, skipping ...
2014-03-25 11:01:52,595 INFO    : grep: /boot/config*: No such file or directory
2014-03-25 11:01:52,630 INFO    : Updating /boot/grub/menu.lst ... done
2014-03-25 11:01:52,635 INFO    :
2014-03-25 11:01:52,782 INFO    : Searching for GRUB installation directory ... found: /boot/grub
2014-03-25 11:01:52,807 INFO    : Searching for default file ... found: /boot/grub/default
2014-03-25 11:01:52,809 INFO    : Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
2014-03-25 11:01:52,857 INFO    : Searching for splash image ... none found, skipping ...
2014-03-25 11:01:52,873 INFO    : grep: /boot/config*: No such file or directory
2014-03-25 11:01:52,913 INFO    : Updating /boot/grub/menu.lst ... done
2014-03-25 11:01:52,915 INFO    :
2014-03-25 11:01:52,969 INFO    : Searching for GRUB installation directory ... found: /boot/grub
2014-03-25 11:01:52,974 INFO    : Calling hook: install_kernel
2014-03-25 11:01:55,311 INFO    : Done.
2014-03-25 11:02:01,451 INFO    : Running depmod.
2014-03-25 11:02:01,539 INFO    : update-initramfs: Generating /boot/initrd.img-2.6.32-57-server
2014-03-25 11:02:06,441 INFO    : Running postinst hook script /usr/sbin/update-grub.
2014-03-25 11:02:06,596 INFO    : Searching for GRUB installation directory ... found: /boot/grub
2014-03-25 11:02:06,677 INFO    : Searching for default file ... found: /boot/grub/default
2014-03-25 11:02:06,678 INFO    : Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
2014-03-25 11:02:06,940 INFO    : Searching for splash image ... none found, skipping ...
2014-03-25 11:02:07,012 INFO    : Found kernel: /boot/vmlinuz-2.6.32-57-server
2014-03-25 11:02:07,204 INFO    : Replacing config file /var/run/grub/menu.lst with new version
2014-03-25 11:02:07,259 INFO    : Updating /boot/grub/menu.lst ... done
2014-03-25 11:02:07,263 INFO    :
2014-03-25 11:02:07,635 INFO    : Calling hook: post_install
2014-03-25 11:02:07,640 INFO    : Calling hook: unmount_partitions
2014-03-25 11:02:07,641 INFO    : Unmounting target filesystem
2014-03-25 11:02:11,292 INFO    : Calling hook: convert
2014-03-25 11:02:11,293 INFO    : Converting /tmp/tmpFVykbv to qcow2, format base-lucid-amd64/tmpFVykbv.qcow2
2014-03-25 11:02:39,305 INFO    : Calling hook: fix_ownership
2014-03-25 11:02:39,308 INFO    : Calling hook: deploy
2014-03-25 11:02:39,309 INFO    : Calling hook: fix_ownership
Extracting partition for lxc
+ set -e
+ SUITE=lucid
+ ARCH=amd64
+ VMSW=KVM
+ [ -n 1 ]
+ VMSW=LXC
+ [ 4 != 0 ]
+ true
+ SUITE=lucid
+ shift 2
+ true
+ ARCH=amd64
+ shift 2
+ true
+ break
+ BASE=base-lucid-amd64
+ OUT=target-lucid-amd64
+ cp -a base-lucid-amd64 target-lucid-amd64
+ on-target -u root /root/firstboot.sh
+ set -e
+ . gconfig
+ VM_SSH_PORT=2223
+ TUSER=ubuntu
+ [ 3 != 0 ]
+ true
+ TUSER=root
+ shift 2
+ true
+ break
+ [ -z 1 ]
+ config-lxc
+ sudo lxc-start -n gitian -f var/lxc.config -- sudo -i -u root /root/firstboot.sh
lxc-start: failed to spawn 'gitian'
amd64 lucid VM creation failed

comment:2 Changed 5 years ago by erinn

Component: Tor bundles/installationTor Browser
Keywords: tbb-gitian added
Owner: changed from erinn to tbb-team

comment:3 Changed 4 years ago by dcf

Resolution: wontfix
Status: newclosed

Closing as this is probably obsolete now.

Note: See TracTickets for help on using tickets.