On Tue, Feb 20, 2018 at 08:43:41PM -0000, Martin Pitt wrote: > Public bug reported: > > As per documentation, the `-B best` option should automatically select > the best backingstore, falling back all the way to dir. > > But apparently it doesn't, at least not in artful's 2.1.0-0ubuntu1:
Hm, is it possible for you to try and reproduce with current master. Works fine for me: chb@conventiont|~ > sudo lxc-create -B best --name=autopkgtest-xenial -t ubuntu -- -r xenial lxc-create: autopkgtest-xenial: storage/btrfs.c: btrfs_create: 861 Inappropriate ioctl for device - Failed to create btrfs subvolume "/var/lib/lxc/autopkgtest-xenial/rootfs" lxc-create: autopkgtest-xenial: storage/zfs.c: zfs_create: 762 Failed to create zfs dataset "zfs:default/lxc/autopkgtest-xenial": The ZFS modules are not loaded. Try running '/sbin/modprobe zfs' as root to load them. lxc-create: autopkgtest-xenial: storage/lvm.c: do_lvm_create: 183 Failed to create logical volume "autopkgtest-xenial": Volume group "lvm_img" not found lxc-create: autopkgtest-xenial: storage/lvm.c: lvm_create: 655 Error creating new logical volume "lvm:/dev/lvm_img/autopkgtest-xenial" of size "1073741824 bytes" Checking cache download in /var/cache/lxc/xenial/rootfs-amd64 ... Installing packages in template: apt-transport-https,ssh,vim,language-pack-en Downloading ubuntu xenial minimal ... W: Target architecture is the same as host architecture; disabling QEMU support I: Running command: debootstrap --arch amd64 --verbose --components=main,universe --include=apt-transport-https,ssh,vim,language-pack-en xenial /var/cache/lxc/xenial/partial-amd64 http://archive.ubuntu.com/ubuntu I: Retrieving InRelease I: Checking Release signature I: Valid Release signature (key id 790BC7277767219C42C86F933B4FE6ACC0B21F32) I: Retrieving Packages I: Validating Packages I: Retrieving Packages -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1750654 Title: "lxc-create -B best" fails on non-btrfs/zfs system To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1750654/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs