Issues Migrating Home Assistan OS/VM to Home Assistant in LXC on Proxmox

Hi,

I am running Home Assistant OS as a virtual machine on Proxmox, and while it works fine, I’ve experienced some performance drawbacks. To improve efficiency, I decided to migrate it to an LXC container.

Steps Taken:

  1. Set up a new Privileged LXC using this script: Proxmox VE Helper-Scripts.
  2. Created a manual backup of my VM-based Home Assistant and then shut down the VM.
  3. Started the new Home Assistant Core Privileged LXC, created an account, uploaded the backup, and restored it.
  4. After reboot, Home Assistant runs fine except for Zigbee.

Issue:

image

Zigbee is not working after migration.

  • I tried restoring a Zigbee backup, but that didn’t resolve the issue.
  • I also renamed /root/.homeassistant/zigbee.db to zigbee.old to check if the database was the problem, but there was no change. Is this file still in use?

Question:

What steps should I take to get my Zigbee setup working again in the LXC container?

Any guidance would be greatly appreciated!

Thanks!

verify file permissions

verify container can see the zigbee device. could be device permission issue.
do you have any log showing failure?

Thanks for your tips,

I have the same USB-devices at the proxmox host as I have in the LXC

ls -l /dev/serial/by-id/
total 0
lrwxrwxrwx 1 root root 13 Mar  3 15:58 usb-1a86_USB_Serial-if00-port0 -> ../../ttyUSB0
lrwxrwxrwx 1 root root 13 Mar  4 20:32 usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_d0556f610d86ec119b3d5b1719c2d21c-if00-port0 -> ../../ttyUSB1

/ttyUSB1 is the zigbee USB dongle—

Is this file that has the rights issue?

-rwxr-xr-x 1 homeassistant homeassistant 1507328 Mar 3 21:02 zigbee.db

chmod 666 zigbee.db
-rw-rw-rw- 1 homeassistant homeassistant 1507328 Mar 3 21:02 zigbee.db

what else could I check?

In HA I see it like this:
image

But I get this errorn when I try to start it: unable to open database file

User permissions like access to serial or some commands

File permissions like read write execute

I meant both for the device not file. Make sure it is seen by container and make sure container can access and use it.

Yeah this sound like it can’t access db. I would expect it needs same permissions as homeassistant files but not sure