Anyone using Conbee II in LXC (Proxmox)?

Should be lrwxrwxrwx 1 root root if I’m not mistaken

Try running the lxc privileged

Removing that unpriviliged line causes HA not to start, the lxc does though.
Rebooted twice, after putting back that line HA runs fine.

Also tried to change owner/group in the lxc but got a permission denied.

Here’s my z2m lxc options
Screenshot 2021-07-15 4.31.50 PM

Also NO firewall

uhm… I’m doing this in my HA contianer
image

Are you running Home Assistant Supervised or Home Assistant Container?

I’m still lost in all the different types of setup/names.

Version 	core-2021.7.1
Installation Type 	Home Assistant Core
Development 	false
Supervisor 	false
Docker 	false
Virtual Environment 	true
Python Version 	3.8.7
Operating System Family 	Linux
Operating System Version 	5.4.119-1-pve
CPU Architecture 	x86_64

You’re running core

Have you tried HAOS before?

Yes, I have installed it aside some time ago as a VM but my server is at it’s max of RAM usage, that’s why I sticked to core.

Is it wrong/impossible/unlogic to run deCONZ in the same lxc as HA and/or is this the reason why I’m have this problem?i

I think so

Ok, let’s cut it here (have to walk the dog)

THANKS A MILLION MAN for your help and have a nice remains of the day!

Sorry to dig up an old topic, but I just came across this and thought I’d share what fixed it for me.

I was moving my deconz from a Proxmox KVM to a LXC and to make it more complex deconz is running in docker on the LXC :slight_smile:

Everything looked good except it couldn’t β€˜see’ the stick - the permissions on the below command were the issue

ls -l /dev/serial/by-id/

As @tteck said, the permissions should be root root not nobody nobody

The fix is to chown on the host

In Proxmox on an unprivileged container for security root user is user 10000 not 1000 as on the host.

Just run on the host

chown 100000:100000 /dev/serial/by-id/*

Then do the ls -l in the LXC and it will show root as the user and group.

Hope this helps someone.

BTW - deconz in a LXC in docker flies!!!

Cheers

mb

3 Likes

Seems I’m stuck with the same issue.
I’ve been able to pass the stick through (by-id) and the owner/group is β€œroot”
Not sure what to try next

Hi all,
I have the same setup with a conbee II and i am trying to make it work inside a LXC zigbee2mqtt.
I setup the zigbee2mqtt LXC using ttecks awesome scripts. Thank you @tteck for creating these and sharing it with the community.
Here is my setup so far.

Screen Shot 2022-02-23 at 3.59.57 PM

I ran the following on the proxmox host as root

Then I ran this

And I get the following message.

total 0

Can you please help

In the Proxmox shell run cat /etc/pve/lxc/104.conf and share your results

The script that you referred to doesn’t exist any longer.

@tteck thanks for offering help.

here are the results.

arch: amd64
cores: 2
features: nesting=1
hostname: zigbee2mqtt
memory: 1024
net0: name=eth0,bridge=vmbr0,gw=192.168.1.1,hwaddr=XX:XX:XX:XX:XX:XX,ip=192.168.XXX.XXX/24,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-104-disk-0,size=4G
swap: 512
lxc.cgroup2.devices.allow: a
lxc.cap.drop: 
lxc.cgroup2.devices.allow: c 188:* rwm
lxc.cgroup2.devices.allow: c 189:* 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

ls -l /dev/serial/by-id shows nothing?

Should show something similar

root@zigbee2mqtt:~# ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Feb 22 13:07 usb-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_a4766cbfb593eb11b7611b4f3d9-if00-port0 -> ../../ttyUSB0
root@zigbee2mqtt:~# 

do i run this in the container or on the host?

Host.

You haven’t connected it to your guest successfully yet.

oh boy! it must be frustrating to deal with noobs like me. I feel for you :slight_smile:

on host I do see

lrwxrwxrwx 1 root root 13 Feb 23 18:07 usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2488601-if00 -> ../../ttyACM0