josefkyrian

lxc container config

May 24th, 2022 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. # cat /data/lxc/containers/cam2/config
  2. # Template used to create this container: /usr/share/lxc/templates/lxc-download
  3. # Parameters passed to the template:
  4. # For additional config options, please look at lxc.container.conf(5)
  5.  
  6. # Uncomment the following line to support nesting containers:
  7. #lxc.include = /usr/share/lxc/config/nesting.conf
  8. # (Be aware this has security implications)
  9.  
  10.  
  11. # Distribution configuration
  12. lxc.include = /usr/share/lxc/config/common.conf
  13.  
  14. # For Ubuntu 14.04
  15. lxc.mount.entry = /sys/kernel/debug sys/kernel/debug none bind,optional 0 0
  16. lxc.mount.entry = /sys/kernel/security sys/kernel/security none bind,optional 0 0
  17. lxc.mount.entry = /sys/fs/pstore sys/fs/pstore none bind,optional 0 0
  18. lxc.mount.entry = mqueue dev/mqueue mqueue rw,relatime,create=dir,optional 0 0
  19. lxc.arch = linux64
  20.  
  21. # Container specific configuration
  22. lxc.rootfs.path = dir:/var/lib/lxc/cam2/rootfs
  23. lxc.uts.name = cam2
  24.  
  25. # Network configuration
  26. lxc.net.0.type = veth
  27. lxc.net.0.link = br-local
  28. lxc.net.0.flags = up
  29. lxc.net.0.hwaddr = 10:00:00:00:00:56
  30.  
  31. #fuse
  32. lxc.cgroup.devices.allow = c 10:229 rwm
  33.  
  34. # dev fs
  35. lxc.autodev = 1
  36. lxc.hook.autodev = sh -c "mknod -m 0666 ${LXC_ROOTFS_MOUNT}/dev/fuse c 10 229"
  37.  
  38. lxc.mount.entry=/data/disk /var/lib/lxc/cam2/rootfs/data/disk none bind 0 0
Add Comment
Please, Sign In to add comment