Skip to content

ZFS filesystems must be created with exec=on #698

Description

@hadmut

Hi,
I've installed lxc and lxc-templates1.1.5-0ubuntu1ubuntu14.04.1ppa1 on a Ubuntu 14.04 machine with zfs from the ubuntu ppa.

lxc-create works correctly, as long as I don't mention zfs.

But with zfs, something goes wrong with the installation paths:

lxc-create -n abcdef -t ubuntu -B zfs --zfsroot raid1/lxc -- --release trusty

results in

lxc-create -n abcdef -t ubuntu -B zfs --zfsroot raid1/lxc -- --release trusty

Checking cache download in /var/cache/lxc/trusty/rootfs-amd64 ...
Copy /var/cache/lxc/trusty/rootfs-amd64 to /usr/lib/x86_64-linux-gnu/lxc ...
Copying rootfs to /usr/lib/x86_64-linux-gnu/lxc ...
chroot: failed to run command ‘useradd’: Permission denied
lxc-create: lxccontainer.c: create_run_template: 1201 container creation template for abcdef failed

for some reason it tries to chroot to /usr/lib/x86_64-linux-gnu/lxc , which is, of course, wrong and does not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EasyGood for new contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions