Skip to content
Snippets Groups Projects
config 1.17 KiB
Newer Older
  • Learn to ignore specific revisions
  • lxc.cap.drop = mac_admin
    lxc.cap.drop = mac_override
    lxc.cap.drop = sys_admin
    lxc.cap.drop = sys_boot
    lxc.cap.drop = sys_module
    lxc.cap.drop = sys_nice
    lxc.cap.drop = sys_pacct
    lxc.cap.drop = sys_ptrace
    lxc.cap.drop = sys_rawio
    lxc.cap.drop = sys_resource
    lxc.cap.drop = sys_time
    lxc.cap.drop = sys_tty_config
    lxc.cap.drop = syslog
    lxc.cap.drop = wake_alarm
    
    lxc.autodev = 1
    lxc.console.buffer.size = auto
    lxc.tty.max = 5
    lxc.pty.max = 5
    lxc.mount.auto = cgroup:mixed proc:mixed sys:mixed
    
    
    # Networking block
    lxc.net.0.type = veth
    lxc.net.0.link = lxcbr0
    lxc.net.0.flags = up
    
    
    lxc.net.0.type = veth
    lxc.net.0.flags = up
    lxc.net.0.link = br-lan
    lxc.net.0.name = eth0
    lxc.net.0.mtu = 1500
    
    
    # Rootfs path
    lxc.rootfs.path = dir:/tmp/lxc/iowrt/rootfs
    lxc.uts.name = "iowrt"
    
    # Application start point
    lxc.init.cmd = "/sbin/init"
    
    # Users
    #lxc.init.uid = 1002
    #lxc.init.gid = 1002
    
    # Mount points
    lxc.mount.entry = /etc/config/wireless etc/config/wireless none ro,bind,create=file,optional 0 0
    lxc.mount.entry = /etc/config/mapcontroller etc/config/mapcontroller none rw,bind,create=file,optional 0 0
    lxc.mount.entry = /var/run/ubus/ubus.sock run/ubus/ubus.sock none rw,bind,create=file,optional 0 0