Installing HAOS in a VM on TrueNAS SCALE

ans still :frowning:

is there a way to install it by an other way?

i try again today with a new release and a new zvol,
still the same

Sorry you’re still having trouble @Xsto4 - I don’t know what we’re missing here.

I see you’re now trying to use the haos_generic-aarch64 image. I think you should be using the haos_ova, but that’s not the issue here.

I’ve posted your error in the TrueNAS forum to see if anyone there can help.

@Xsto4 I just noticed you’re using the zsh shell - I don’t think that should matter, but let’s try using bash instead.

To avoid confusion, let’s first remove the previous files you downloaded and start again.

rm haos_ova-12.4.*

Next, switch to bash

bash

Finally, try again (I’ve used your new APPLICATIONS/ha ZVOL below)

wget https://github.com/home-assistant/operating-system/releases/download/12.4/haos_ova-12.4.qcow2.xz
sudo unxz haos_ova-12.4.qcow2.xz
sudo qemu-img convert -O raw haos_ova-12.4.qcow2 /dev/zvol/APPLICATIONS/ha

thanks for your supply troy.
i dont know if i’m in bash but i’ve got the same message

I would have been surprised if using a bash shell would have helped, but it was worth a shot.

Anyway, someone replied to my post in the TrueNAS forum.

I’ve seen the device fail to be constructed at the location, especially when under load.

I suspect if you ls the location, you won’t see the device.

Suggest a reboot.

Let’s try their suggestion. The following will recursively list any ZVOL located in /dev/zvol - Please share the output after running this command.

ls -R /dev/zvol

Then, try rebooting your TrueNAS server and run the command again. When we see your ZVOL listed using the ls command, the HAOS installation should work.

ok i 've run this command,
got this

Ok, I think I see it now! It looks like APPLICATIONS has a space after it.

Try this

sudo qemu-img convert -O raw haos_ova-12.4.qcow2 "/dev/zvol/APPLICATIONS /ha"

trying the whole thing
thx again for helping me !

maybe a answer with a +

1 Like

That looks like a winner!

i will try to pursuit the install and see if it worked ! thx again because my app dataset is already set with my files

1 Like

finally !
after get my truenas unreachable this morning ( bad bridge setting), reset and new zvol cause to erase bad vm setting i got this

thx troy for the support !

1 Like
  1. hello i’ve installed haos on truenas scale on a vm following this guide the vm starts and ha boots but it’s looping on the step
    [supervisor.docker.interface] Updating image Package qemux86-64-homeassistant · GitHub to Package qemux86-64-homeassistant · GitHub [supervisor.docker.interface] Downloading docker image Package qemux86-64-homeassistant · GitHub with tag 2024.8.2. with the following error [supervisor.docker.interface] Can’t install ghcr.io/home-assistant/qemux86-64-homeassistant:2024.8.2: 500 Server Error for http+docker://localhost/v1.45/images/create?tag=2024.8.2&fromImage=ghcr.io%2Fhome-assistant%2Fqemux86-64-homeassistant&platform=linux%2Famd64: Internal Server Error (“Get “https://ghcr.io/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)”) can anyone help me please ?

i have the same issue, i’m logged as root because is the only login that i have

unxz: haos_ova-13.1.qcow2.xz: Unespected end of input
qemu-img: Could not open 'haos_ova-13.1.qcpw2': Could not open 'haos_ova-13.1.qcpw2':No such file or directory
root@truenas[]

i also tyed using these command line but nothing

sudo wget https://github.com/home-assistant/operating-system/releases/download/13.1/haos_ova-13.1.qcow2.xz
sudo unxz haos_ova-13.1.qcow2.xz
sudo qemu-img convert -O raw haos_ova-13.1.qcow2 /dev/zvol/tank/vm/haos

how can i remove the old files?

Looks like a corrupt download. You can remove old files using

rm haos_ova-13.1.*

Thank you very much for this guide. I could click every step with success :slight_smile:

1 Like

Hello, I have installed a VM with HAOS on TrueNAS Scale ElectricEel-24.10-BETA.1. A Sonoff 3.0 Zigbee stick is connected to my device. I have already tried using USB passthrough to pass the stick to the VM. In Home Assistant, I can see the device under hardware with the following

ID:
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0a8b8a206319ec1192ab37cc47486eb0-if00-port0

However, the device does not work with either Zigbee2MQTT or HA Zigbee. I also tried using Deconz 2, but that didn’t work either. When I try to pass the device through as PCI passthrough, everything crashes, and my USB ports stop working. The only solution is to restart and disable PCI passthrough. Has anyone else experienced a similar problem?

Also, the error I get in Zigbee2MQTT is:

[2024-09-30 19:44:07] info: 	z2m: Logging to console, file (filename: log.log)
[2024-09-30 19:44:07] info: 	z2m: Starting Zigbee2MQTT version 1.40.1 (commit #unknown)
[2024-09-30 19:44:07] info: 	z2m: Starting zigbee-herdsman (0.57.3)
[2024-09-30 19:44:17] error: 	z2m: Error while starting zigbee-herdsman
[2024-09-30 19:44:17] error: 	z2m: Failed to start zigbee
[2024-09-30 19:44:17] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-09-30 19:44:17] error: 	z2m: Exiting...
[2024-09-30 19:44:17] error: 	z2m: undefined

Do you have the P or E Dongle?
I have the E and had the same error.

This worked in my case:

port: /dev/ttyACM0
adapter: ezsp

And this ist my Scaleconfig:

1 Like