HA OS on unRaid!

To further investigate on the issue i am able to create a partial snapshot of just the configuration but when i make a full snapshot it just hangs.

Here is what happens:

19-11-26 21:07:15 INFO (MainThread) [hassio.snapshots] Partial-Snapshot 44247158 start
19-11-26 21:07:15 INFO (MainThread) [hassio.snapshots] Snapshot 44247158 store folders
19-11-26 21:07:15 INFO (SyncWorker_8) [hassio.snapshots.snapshot] Snapshot folder share
19-11-26 21:07:15 INFO (SyncWorker_0) [hassio.snapshots.snapshot] Snapshot folder homeassistant
19-11-26 21:07:15 INFO (SyncWorker_4) [hassio.snapshots.snapshot] Snapshot folder addons/local
19-11-26 21:07:15 INFO (SyncWorker_6) [hassio.snapshots.snapshot] Snapshot folder ssl
19-11-26 21:07:15 INFO (SyncWorker_8) [hassio.snapshots.snapshot] Snapshot folder share done
19-11-26 21:07:15 INFO (SyncWorker_4) [hassio.snapshots.snapshot] Snapshot folder addons/local done
19-11-26 21:07:15 INFO (SyncWorker_6) [hassio.snapshots.snapshot] Snapshot folder ssl done
19-11-26 21:07:16 INFO (SyncWorker_0) [hassio.snapshots.snapshot] Snapshot folder homeassistant done
19-11-26 21:07:16 INFO (MainThread) [hassio.snapshots] Partial-Snapshot 44247158 done
19-11-26 21:08:22 INFO (MainThread) [hassio.snapshots] Full-Snapshot 917e20ca start
19-11-26 21:08:22 INFO (MainThread) [hassio.snapshots] Snapshot 917e20ca store Add-ons
19-11-26 21:08:22 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on a0d7b954_airsonos
19-11-26 21:08:22 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on a0d7b954_adb
19-11-26 21:08:22 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on a0d7b954_logviewer
19-11-26 21:08:22 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on a0d7b954_vscode
19-11-26 21:08:22 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on a0d7b954_lutron-cert
19-11-26 21:08:22 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on core_samba
19-11-26 21:08:22 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on core_ssh
19-11-26 21:08:22 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on a0d7b954_ide
19-11-26 21:08:22 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on a0d7b954_glances
19-11-26 21:08:22 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on a0d7b954_influxdb
19-11-26 21:08:22 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on core_rpc_shutdown
19-11-26 21:08:22 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on a0d7b954_grafana
19-11-26 21:08:22 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on core_check_config
19-11-26 21:08:22 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on a0d7b954_nodered
19-11-26 21:08:22 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on core_configurator
19-11-26 21:08:22 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon a0d7b954_airsonos
19-11-26 21:08:23 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon a0d7b954_logviewer
19-11-26 21:08:23 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon a0d7b954_adb
19-11-26 21:08:23 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_samba
19-11-26 21:08:23 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon a0d7b954_glances
19-11-26 21:08:23 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon a0d7b954_lutron-cert
19-11-26 21:08:23 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_rpc_shutdown
19-11-26 21:08:23 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon a0d7b954_ide
19-11-26 21:08:23 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_check_config
19-11-26 21:08:23 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_ssh
19-11-26 21:08:23 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_configurator
19-11-26 21:08:23 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon a0d7b954_nodered
19-11-26 21:08:23 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon a0d7b954_grafana
19-11-26 21:08:56 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon a0d7b954_vscode

And then it just stalls there.

Hi -

I was trying to install LIFX in Home Assistant with the standard integration (it works fine on the regular unraid docker) but I’m unable to discover any bulbs on the VM. I attribute this to the VM network, the VM is assigned IP 172.16.16.18 but Hassio when running show IP address shows 172.30.32.1/23. I’m thinking it’s only running discovery on the Hassio subnet. Do I need a route in networking for this or something else on hassio?

Here are my current network settings in the VM:

That’s an internal docker network address. Nothing to do there.

After the add-ons there are the directories and the db. Do you have a large home-assistant_v2.db ?

In the end it passed through without issue.

I finally figured it out … i had a very big mess with the database in influxdb the size was almost 13 GB so i uninstalled and going to do a different approach with the database thanks for the help tho. Snapshots are working properly now.

1 Like

Did you figure this out?
I have the same problem, do not know how to reallocate space.

I ended up making a new VM and restoring from snapshot. From the Youtube video in this feed the guy responded to me and said I could resize it using the command below. Adjust filename and size to your situation. I didn’t try this because I already made the new VM before I got a reply.

sudo qemu-img resize /mnt/user/domains/hassos_ova-1.6.qcow2 +30G

2 Likes

UPDATE: Please see my post below: the stick was not flashed with firmware by vendor as promised. After flashing stick all worked as expected. Leaving this here as a warning to others who trusted the vendor too much!

I am aware there are quite a few comments in this thread on passing through a USB device to hassio as a VM on unraid, I have read them all but I am still struggling and I would love some help if possible.

I have a Zigbee2MQTT stick (CC2531 USB sniffer) connected to a USB port on my unraid server (3rd device listed below):

root@Tower:~# lsusb
Bus 002 Device 003: ID 0781:5567 SanDisk Corp. Cruzer Blade
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 006: ID 0451:16ae Texas Instruments, Inc.
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 046b:ff10 American Megatrends, Inc. Virtual Keyboard and Mouse
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@Tower:~#

I have passed this device through to my hassio VM with settings as follows:

After I start the VM and login to the host machine I can see the same device id with lsusb:

I presumed that this means the device is correctly passed through but it still does not appear in Hassio:

Any advice on getting this device to appear in my VM correctly?
Anything obvious that I am doing wrong to stop it working?

1 Like

I had an HUSBZB-1 connected to mine at one point. Looking at my settings I have the USB controller set for 3.0 (qemu XHCI) . Have you tried that?

That unfortunately made no difference at all.

All info from my post above remains the same for hassio VM (host shows device under lsusb, hassio does not see device)

Any other ideas?

Not really. You could try adding the config for it?

# Serial settings
serial:
  # Location of CC2531 USB sniffer
  port: /dev/ttyACM0

While trying to figure this out I realised that the USB sniffer is not creating an entry in /dev/ttyX in unraid, should it be?

as prev: it appears under lsusb but not seeing it in /dev

root@Tower:~# ls /dev/tty*
/dev/tty    /dev/tty18  /dev/tty28  /dev/tty38  /dev/tty48  /dev/tty58
/dev/tty0   /dev/tty19  /dev/tty29  /dev/tty39  /dev/tty49  /dev/tty59
/dev/tty1   /dev/tty2   /dev/tty3   /dev/tty4   /dev/tty5   /dev/tty6
/dev/tty10  /dev/tty20  /dev/tty30  /dev/tty40  /dev/tty50  /dev/tty60
/dev/tty11  /dev/tty21  /dev/tty31  /dev/tty41  /dev/tty51  /dev/tty61
/dev/tty12  /dev/tty22  /dev/tty32  /dev/tty42  /dev/tty52  /dev/tty62
/dev/tty13  /dev/tty23  /dev/tty33  /dev/tty43  /dev/tty53  /dev/tty63
/dev/tty14  /dev/tty24  /dev/tty34  /dev/tty44  /dev/tty54  /dev/tty7
/dev/tty15  /dev/tty25  /dev/tty35  /dev/tty45  /dev/tty55  /dev/tty8
/dev/tty16  /dev/tty26  /dev/tty36  /dev/tty46  /dev/tty56  /dev/tty9
/dev/tty17  /dev/tty27  /dev/tty37  /dev/tty47  /dev/tty57  /dev/ttyS0
root@Tower:~#

UPDATE: I am beginning to think that the CC2531 is faulty or not flashed corrected. I tested things by plugging in a NodeMCU into the same USB port and passing it through to the hassio VM: it passed through without problems.

UPDATE #2: Confirmed, stick was not flashed by vendor as promised. Apologies to all

Even though my server is on a UPS it looks like it might have had a hard shutdown.
Ever since Home Assistant doesn’t want to start.

Anyone know what these errors might mean?

After a period of time it sometimes (not always) manages to start. Just seems very random, but not healthy.

Strange but I have the exact same problem and those screens look very familiar, it also started yesterday.

It started when I pressed the “Update” button under host section in the homeassistant webgui. Homeassistant became unavailable but after few hours it did not came back.

I got a feeling that the disk became corrupted, even trying to retrieve files and snapshots from the VM disk seems difficult as I keep getting errors reading the disk. I did get one snapshot back from August 2019 which seems to be fine and some additional configuration files from homeassistant.

I did see that the filesystem was missing some files which were important in my homeassistant installation.

I’ve started a fresh install and will restore from the snapshot. Then I need to update everything that was changed since August (which is a lot …)

Well that isnt good news :confused:

Maybe something to do with this PiP install?
I noticed this in the logs.

19-12-07 16:47:24 INFO (SyncWorker_6) [hassio.docker.interface] Start homeassistant/qemux86-64-homeassistant
19-12-07 16:47:24 INFO (MainThread) [hassio.api.security] /dns/info access from a0d7b954_vscode
19-12-07 16:47:34 INFO (MainThread) [hassio.homeassistant] Home Assistant pip installation in progress
19-12-07 16:49:04 INFO (MainThread) [hassio.homeassistant] Home Assistant pip installation done
19-12-07 16:59:06 WARNING (MainThread) [hassio.homeassistant] Don't wait anymore of Home Assistant startup!
19-12-07 16:59:06 INFO (MainThread) [hassio.addons] Phase 'application' start 1 add-ons
19-12-07 16:59:06 INFO (SyncWorker_9) [hassio.docker.interface] Clean addon_cebe7a76_hassio_google_drive_backup application
19-12-07 16:59:06 INFO (SyncWorker_9) [hassio.docker.addon] Start Docker add-on sabeechen/hassio-google-drive-backup-amd64 with version 0.99.0

I’m getting the same error as well. I guess I will wait long enough that hopefully it loads again. It has not so far. I tried creating a new VM and getting the same issues as well. Have not idea what it is??

I’ve been searching and reading for days/hours… this saved my life… thank you!!!

I have been having the same issue for awhile. To restart I first check config, and all is well. If I the press restart it hangs and never comes back. If I ssh into the VM I see that the database is not being updated.

If I run
hassio homeassistant rebuild

Then the HA instance starts running again.
I have also had times where I have to delete the db prior to being able to run rebuild.