text

make nbd and dm available in lxc

change config inĀ /usr/share/lxc/config e.g. debian.common.conf

uncomment / add


lxc.aa_profile = lxc-container-default-with-mounting

lxc.mount.auto = cgroup

## dev mapper

lxc.cgroup.devices.allow = c 10:236 rwm

## loop devices

lxc.cgroup.devices.allow = b 7:* rwm

## nbd devices

lxc.cgroup.devices.allow = b 43:* rwm

## dm devices

lxc.cgroup.devices.allow = b 251:* rwm

lxc.cgroup.devices.allow = b 252:* rwm