]> glassweightruler.freedombox.rocks Git - waydroid.git/blob - lxc-configs/config
anbox: Change veth name to anbox0
[waydroid.git] / lxc-configs / config
1 # Anbox LXC Config
2
3 lxc.rootfs.path = /home/anbox/rootfs
4 lxc.utsname = anbox
5 lxc.arch = aarch64
6 lxc.autodev = 0
7 # lxc.autodev.tmpfs.size = 25000000
8 lxc.aa_profile = unconfined
9
10 lxc.init_cmd = /init
11
12 lxc.mount.auto = cgroup:ro sys:ro proc
13
14 lxc.network.type = veth
15 lxc.network.flags = up
16 lxc.network.link = anbox0
17 lxc.network.name = eth0
18 lxc.network.hwaddr = 00:16:3e:f9:d3:03
19 lxc.network.mtu = 1500
20
21 # Necessary dev nodes
22 lxc.mount.entry = tmpfs dev tmpfs nosuid 0 0
23 lxc.mount.entry = /dev/zero dev/zero none bind,create=file,optional 0 0
24 lxc.mount.entry = /dev/full dev/full none bind,create=file,optional 0 0
25 lxc.mount.entry = /dev/ashmem dev/ashmem none bind,create=file,optional 0 0
26 lxc.mount.entry = /dev/fuse dev/fuse none bind,create=file,optional 0 0
27 lxc.mount.entry = /dev/ion dev/ion none bind,create=file,optional 0 0
28 lxc.mount.entry = /dev/char dev/char none bind,create=dir,optional 0 0
29
30 # Graphic dev nodes
31 lxc.mount.entry = /dev/kgsl-3d0 dev/kgsl-3d0 none bind,create=file,optional 0 0
32 lxc.mount.entry = /dev/mali0 dev/mali0 none bind,create=file,optional 0 0
33 lxc.mount.entry = /dev/pmsg0 dev/pmsg0 none bind,create=file,optional 0 0
34 lxc.mount.entry = /dev/fb0 dev/fb0 none bind,create=file,optional 0 0
35 lxc.mount.entry = /dev/graphics/fb0 dev/graphics/fb0 none bind,create=file,optional 0 0
36 lxc.mount.entry = /dev/fb1 dev/fb1 none bind,create=file,optional 0 0
37 lxc.mount.entry = /dev/graphics/fb1 dev/graphics/fb1 none bind,create=file,optional 0 0
38 lxc.mount.entry = /dev/fb2 dev/fb2 none bind,create=file,optional 0 0
39 lxc.mount.entry = /dev/graphics/fb2 dev/graphics/fb2 none bind,create=file,optional 0 0
40 lxc.mount.entry = /dev/dri dev/dri none bind,create=dir,optional 0 0
41
42 # Binder dev nodes
43 lxc.mount.entry = /dev/anbox-binder dev/binder none bind,create=file 0 0
44 lxc.mount.entry = /dev/anbox-vndbinder dev/vndbinder none bind,create=file 0 0
45 lxc.mount.entry = /dev/anbox-hwbinder dev/hwbinder none bind,create=file 0 0
46 lxc.mount.entry = /dev/hwbinder dev/host_hwbinder none bind,create=file 0 0
47
48 # Necessary device nodes for adb
49 lxc.mount.entry = none dev/pts devpts defaults,mode=644,ptmxmode=666,create=dir 0 0
50 lxc.mount.entry = /dev/uhid dev/uhid none bind,create=file,defaults,optional 0 0
51
52 # Low memory killer sys node
53 lxc.mount.entry = /sys/module/lowmemorykiller sys/module/lowmemorykiller none bind,create=dir,optional 0 0
54
55 # Mount /data
56 lxc.mount.entry = tmpfs mnt tmpfs mode=0755,uid=0,gid=1000
57 lxc.mount.entry = /home/anbox/data data none bind 0 0
58
59 # Mount host /vendor to /vendor_extra
60 lxc.mount.entry = /vendor vendor_extra none bind,optional 0 0
61
62 # Recursive mount /run to provide necessary host sockets
63 lxc.mount.entry = /run run none rbind,create=dir 0 0
64
65 # Necessary sw_sync node for HWC
66 lxc.mount.entry = /dev/sw_sync dev/sw_sync none bind,create=file,optional 0 0
67 lxc.mount.entry = /sys/kernel/debug sys/kernel/debug none rbind,create=dir,optional 0 0
68
69 # Media dev nodes (for Mediatek)
70 lxc.mount.entry = /dev/Vcodec dev/Vcodec none bind,create=file,optional 0 0
71 lxc.mount.entry = /dev/MTK_SMI dev/MTK_SMI none bind,create=file,optional 0 0
72 lxc.mount.entry = /dev/mdp_sync dev/mdp_sync none bind,create=file,optional 0 0
73 lxc.mount.entry = /dev/mtk_cmdq dev/mtk_cmdq none bind,create=file,optional 0 0
74
75 # Media dev nodes (for Qcom)
76 lxc.mount.entry = /dev/video32 dev/video32 none bind,create=file,optional 0 0
77 lxc.mount.entry = /dev/video33 dev/video33 none bind,create=file,optional 0 0
78
79 lxc.hook.post-stop = /dev/null