Hi all,
I'm running into the following build errors when I enter `./mkbundle-linux.sh versions.nightly`:
I: Base system installed successfully. cp: cannot stat ���base-jessie-amd64-bootstrap/usr/lib/x86_64-linux-gnu/lxc/lxc-init���: No such file or directory cp: cannot stat ���base-jessie-amd64���: No such file or directory amd64 jessie VM creation failed
Any advice on what I might be doing wrong? My build machine is jessie 8.7, in case it's relevant.
Thanks, Arthur
On Fri, Apr 07, 2017 at 05:35:10PM -0700, Arthur D. Edelstein wrote:
Hi all,
I'm running into the following build errors when I enter `./mkbundle-linux.sh versions.nightly`:
I: Base system installed successfully. cp: cannot stat ���base-jessie-amd64-bootstrap/usr/lib/x86_64-linux-gnu/lxc/lxc-init���: No such file or directory cp: cannot stat ���base-jessie-amd64���: No such file or directory amd64 jessie VM creation failed
Any advice on what I might be doing wrong? My build machine is jessie 8.7, in case it's relevant.
I got this a few days ago and was going to file a bug. It's cause by the fact that on jessie, /usr/sin/init.lxc already exists; there's no need to copy it from /usr/lib/lxc/lxc-init.
I worked around it by adding an additional guard in bin/make-base-vm: # Fix lxc issue if [! -f $OUT-bootstrap/usr/sbin/init.lxc] then ... fi
Thanks, David! Unfortunately I then ran into another problem, that looks like it might be caused by your workaround ("Failed to find an lxc-init"). Or maybe I didn't mimic what you did correctly? In any case, I'll try to investigate tomorrow.
Here's the part where it fails:
****** Starting Utilities Component of Linux Bundle (1/7 for Linux) ******
--- Building utils-linux for wheezy i386 --- Stopping target if it is up Making a new image copy lxc-execute: Failed to find an lxc-init lxc-execute: invalid sequence number 1. expected 4 lxc-execute: failed to spawn 'gitian' lxc-execute: Device or resource busy - cgroup_rmdir: failed to delete /sys/fs/cgroup/perf_event/lxc/gitian-1 lxc-execute: Device or resource busy - cgroup_rmdir: failed to delete /sys/fs/cgroup/blkio/lxc/gitian-1 lxc-execute: Device or resource busy - cgroup_rmdir: failed to delete /sys/fs/cgroup/net_cls,net_prio/lxc/gitian-1 lxc-execute: Device or resource busy - cgroup_rmdir: failed to delete /sys/fs/cgroup/freezer/lxc/gitian-1 lxc-execute: Device or resource busy - cgroup_rmdir: failed to delete /sys/fs/cgroup/devices/lxc/gitian-1 lxc-execute: Device or resource busy - cgroup_rmdir: failed to delete /sys/fs/cgroup/cpu,cpuacct/lxc/gitian-1 lxc-execute: Device or resource busy - cgroup_rmdir: failed to delete /sys/fs/cgroup/cpuset/lxc/gitian-1 ./bin/gbuild:21:in `system!': failed to run make-clean-vm --suite wheezy --arch i386 (RuntimeError) from ./bin/gbuild:57:in `build_one_configuration' from ./bin/gbuild:284:in `block (2 levels) in <main>' from ./bin/gbuild:279:in `each' from ./bin/gbuild:279:in `block in <main>' from ./bin/gbuild:277:in `each' from ./bin/gbuild:277:in `<main>'
On Fri, Apr 7, 2017 at 6:08 PM, David Fifield david@bamsoftware.com wrote:
On Fri, Apr 07, 2017 at 05:35:10PM -0700, Arthur D. Edelstein wrote:
Hi all,
I'm running into the following build errors when I enter `./mkbundle-linux.sh versions.nightly`:
I: Base system installed successfully. cp: cannot stat ���base-jessie-amd64-bootstrap/usr/lib/x86_64-linux-gnu/lxc/lxc-init���: No such file or directory cp: cannot stat ���base-jessie-amd64���: No such file or directory amd64 jessie VM creation failed
Any advice on what I might be doing wrong? My build machine is jessie 8.7, in case it's relevant.
I got this a few days ago and was going to file a bug. It's cause by the fact that on jessie, /usr/sin/init.lxc already exists; there's no need to copy it from /usr/lib/lxc/lxc-init.
I worked around it by adding an additional guard in bin/make-base-vm: # Fix lxc issue if [! -f $OUT-bootstrap/usr/sbin/init.lxc] then ... fi _______________________________________________ tbb-dev mailing list tbb-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-dev
On Fri, Apr 07, 2017 at 09:55:06PM -0700, Arthur D. Edelstein wrote:
Thanks, David! Unfortunately I then ran into another problem, that looks like it might be caused by your workaround ("Failed to find an lxc-init"). Or maybe I didn't mimic what you did correctly? In any case, I'll try to investigate tomorrow.
Here's the part where it fails:
****** Starting Utilities Component of Linux Bundle (1/7 for Linux) ******
--- Building utils-linux for wheezy i386 --- Stopping target if it is up Making a new image copy lxc-execute: Failed to find an lxc-init
I didn't get that error, but it's probably because I wasn't doing an LXC build.
Maybe the file has to be in both places, /usr/sbin/init.lxc and /usr/lib/lxc/lxc-init? make-base-vm could check which one exists and copy it to the other.
Here is the patch I used BTW:
index 59f0734..f524991 100755 --- a/bin/make-base-vm +++ b/bin/make-base-vm @@ -161,6 +161,8 @@ if [ $LXC = "1" ]; then # Need universe for lxc in lucid env -i LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 sudo debootstrap --arch=$ARCH --include=$addpkg --exclude=$removepkg --components=$components $SUITE $OUT-bootstrap $MIRROR # Fix lxc issue + if [ ! -f $OUT-bootstrap/usr/sbin/init.lxc ] + then if [ -f $OUT-bootstrap/usr/lib/lxc/lxc-init ] then sudo cp $OUT-bootstrap/usr/lib/lxc/lxc-init $OUT-bootstrap/usr/sbin/init.lxc @@ -172,6 +174,7 @@ if [ $LXC = "1" ]; then sudo cp $OUT-bootstrap/usr/lib/i386-linux-gnu/lxc/lxc-init $OUT-bootstrap/usr/sbin/init.lxc fi fi + fi dd if=/dev/zero of=$OUT-lxc bs=1M count=1 seek=15360 /sbin/mkfs.ext4 -F $OUT-lxc t=`mktemp -d gitian.XXXXXXXX`