meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
home_automation:z2m:lxc [2023/06/20 12:45] niziakhome_automation:z2m:lxc [2023/06/20 18:23] (current) niziak
Line 5: Line 5:
 Installation hints: [[https://www.zigbee2mqtt.io/guide/installation/01_linux.html|Linux]] Installation hints: [[https://www.zigbee2mqtt.io/guide/installation/01_linux.html|Linux]]
  
 +3rd party Proxmox installer scripts:
 +  - <code bash>bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/zigbee2mqtt.sh)"</code>
 +  - [[https://raw.githubusercontent.com/tteck/Proxmox/main/ct/zigbee2mqtt.sh]]
 +  - [[https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func|build.func]]
 ===== CT configuration ===== ===== CT configuration =====
   * unprivileged   * unprivileged
Line 10: Line 14:
   * additional permissions to access USB dongle:   * additional permissions to access USB dongle:
 <code> <code>
-lxc.cgroup2.devices.allow: a 
-lxc.cap.drop: 
 lxc.cgroup2.devices.allow: c 188:* rwm lxc.cgroup2.devices.allow: c 188:* rwm
 lxc.mount.entry: /dev/serial/by-id  dev/serial/by-id  none bind,optional,create=dir lxc.mount.entry: /dev/serial/by-id  dev/serial/by-id  none bind,optional,create=dir
 lxc.mount.entry: /dev/ttyUSB0       dev/ttyUSB0       none bind,optional,create=file lxc.mount.entry: /dev/ttyUSB0       dev/ttyUSB0       none bind,optional,create=file
-lxc.mount.entry: /dev/ttyACM0       dev/ttyACM0       none bind,optional,create=file 
- 
-TOOD: 
-lxc.cgroup2.devices.allow: c 188:* rwm 
-lxc.mount.entry: /dev/serial/by-id  dev/serial/by-id  none bind,optional,create=dir 
-lxc.mount.entry: /dev/ttyUSB0       dev/ttyUSB0       none bind,optional,create=file 
-lxc.mount.entry: /dev/ttyACM0       dev/ttyACM0       none bind,optional,create=file 
- 
 </code> </code>
   * unprivileged container has mapped own UID to host uids 100000 and higher. So ''dialout'' GID=20 in LXC is visible for host as 100020. It is need to give correct permissions to device node: <code bash>chown 100000:100020 /dev/ttyUSB0</code>    * unprivileged container has mapped own UID to host uids 100000 and higher. So ''dialout'' GID=20 in LXC is visible for host as 100020. It is need to give correct permissions to device node: <code bash>chown 100000:100020 /dev/ttyUSB0</code> 
Line 43: Line 37:
  
 Get MQTT user and password from ''MQTT settings'' or create new HA user which also will became MQTT user. Get MQTT user and password from ''MQTT settings'' or create new HA user which also will became MQTT user.
 +
 +Enable [[https://www.zigbee2mqtt.io/guide/usage/integrations/home_assistant.html#mqtt-discovery|MQTT Discovery]]