Closed rvanlaar closed 2 years ago
This part seems to be the important one:
DEBUG driver: Creating container...
INFO subprocess: Starting process: ["/usr/bin/sudo", "/usr/local/bin/vagrant-lxc-wrapper", "lxc-create", "-B", "best", "--template", "/home/roland/.vagrant.d/gems/2.4.2/gems/vagrant-lxc-1.3.0/scripts/lxc-template", "--name", "4_default_1516912742524_77293", "--", "--tarball", "/home/roland/.vagrant.d/boxes/umairwaheed-VAGRANTSLASH-trusty64-lxc/1.0.0/lxc/rootfs.tar.gz", "--config", "/home/roland/.vagrant.d/boxes/umairwaheed-VAGRANTSLASH-trusty64-lxc/1.0.0/lxc/lxc-config"]
INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stderr: lxc-create: 4_default_1516912742524_77293: storage/btrfs.c: btrfs_create: 860 Inappropriate ioctl for device - Failed to create btrfs subvolume "/var/lib/lxc/4_default_1516912742524_77293/rootfs"
DEBUG subprocess: stderr: lxc-create: 4_default_1516912742524_77293: storage/zfs.c: zfs_create: 758 Failed to create zfs dataset "zfs:lxc/4_default_1516912742524_77293": lxc-create: 4_default_1516912742524_77293: utils.c: run_command: 2326
DEBUG subprocess: stderr: lxc-create: 4_default_1516912742524_77293: storage/zfs.c: zfs_mount: 256 No such device - Failed to mount "lxc/4_default_1516912742524_77293" on "/usr/lib/x86_64-linux-gnu/lxc"
lxc-create: 4_default_1516912742524_77293: lxccontainer.c: create_run_template: 1294 Failed to mount rootfs
DEBUG subprocess: stderr: lxc-create: 4_default_1516912742524_77293: lxccontainer.c: create_run_template: 1473 container creation template for 4_default_1516912742524_77293 failed
DEBUG subprocess: stderr: lxc-create: 4_default_1516912742524_77293: storage/zfs.c: zfs_destroy: 613 Failed to detect zfs dataset "lxc/4_default_1516912742524_77293": lxc-create: 4_default_1516912742524_77293: utils.c: run_command: 2326 failed to exec command
lxc-create: 4_default_1516912742524_77293: lxccontainer.c: container_destroy: 2653 Error destroying rootfs for 4_default_1516912742524_77293
lxc-create: 4_default_1516912742524_77293: tools/lxc_create.c: main: 326 Error creating container 4_default_1516912742524_77293
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
and it seems to be related to your system's inability to create a btrfs or zfs backing store. Maybe try to force a dir
backingstore?
the BTRFS error is just noise from LXC trying to detect the best backing store. It does seem to think that ZFS is a viable option though. Closing the circle, it looks like it's this issue in LXC: https://github.com/lxc/lxc/issues/1902
workaround is to set lxc.backingstore = 'dir'
inside of the lxc provider in the Vagrantfile
vagrant-lxc uses the option best by default, which results in zfs as (non working) backend store.
Hey, sorry for the silence here but this project is looking for maintainers :sweat_smile:
As per https://github.com/fgrehm/vagrant-lxc/issues/499, I've added the ignored
label and will close this issue. Thanks for the interest in the project and LMK if you want to step up and take ownership of this project on that other issue :wave:
Vagrant up won't work for the umairwaheed/trusty64-lxc box.
Attached is the complete log.
I'm running: vagrant 2.0.1 vagrant-lxc (1.3.0) vagrant-share (1.1.9, system) Ubuntu 17.10