Skip to content

Instantly share code, notes, and snippets.

@seffyroff
Created October 22, 2018 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seffyroff/6987504db1c432cccdc9b81f916fed59 to your computer and use it in GitHub Desktop.
Save seffyroff/6987504db1c432cccdc9b81f916fed59 to your computer and use it in GitHub Desktop.
LXD Security Privileges
config:
boot.autostart: "true"
linux.kernel_modules: openvswitch,nbd,ip_tables,ip6_tables,kvm
raw.apparmor: mount,
raw.lxc: |-
lxc.cgroup.devices.allow = c 10:237 rwm
lxc.cgroup.devices.allow = b 7:* rwm
lxc.cgroup.devices.allow = b 259:* rwm
lxc.cgroup.devices.allow = b 230:* rw
security.nesting: "true"
security.privileged: "true"
description: ""
devices:
eth0:
mtu: "9000"
name: eth0
nictype: bridged
parent: lxdbr0
type: nic
kvm:
path: /dev/kvm
type: unix-char
mapper:
path: /dev/mapper/control
type: unix-char
mem:
path: /dev/mem
type: unix-char
tun:
path: /dev/net/tun
type: unix-char
zfs:
path: /dev/zfs
type: unix-char
name: kvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment