Installing Home Assistant OS using Proxmox 8

Great ty! This looks pretty close to the setup I want except having HAOS then having z2m, mqtt outside that plumb into the VM. Is that possible?

1 Like
5 Likes

This is awesome! Thank you so much! I get my NUC on Friday and am looking forward to getting it setup then migrating off my old VM solution

1 Like

thanks for the guide. Working in Beelink U55 mini pc.

1 Like

@tteck That is an awesome script thing. One question that I do have is what is the fundamental difference between the VM and the Container when it comes to these applications? Is the container more reliable over the VM?

I am very interested in doing something along the lines of moving some key components out of HA. Like @ryphez stated the resiliency is nice to have.

1 Like

The resources needed to run a LXC container are much less than running a VM.
Modifying the resources assigned to a LXC container can be done without having to reboot the container.
Serial devices connected to Proxmox can be shared with multiple LXC containers.

1 Like

Not really, since my case is also to monitored my docker container in my HA which is not posible using Container. So move all to VM and now HA will be able to monitor each docker easily. Just devided my docker into several VM.

I know container will used less resources but I need more sensor.

It’s nice having key automation’s continue to function without Home Assistant.

1 Like

@KingRichard I have no idea what you’re talking about but what sensory data are u looking for that a container can’t provide?

@tteck I will have to play with the containers and see how it all works. I think my hangup may be the network. The documents say it will run the same IP as the host. I don’t want that; for security reasons prox is on a separate port and VLAN. I actually have 9 ports. 1 for the server and LCAP ports in 2’s for the 4 main networks in the house.

Each LXC container will have its own IP address

Edit: I think you’re confusing Linux Containers (LXC) with Docker Containers.

@hanselljl I’m running a docker monitor which will have much information regarding each docker container that is running on my system. That addon requires some detailed information which will not show if I’m running my docker on proxmox container.

Currently, my setup is 3 VM. One VM running HA Supervised + addons, One VM running my MySQL + InfluxDB, and One VM running the rest of other PlugIn

Furthermore, my Synology runs my MQTT and some other plugins.

My work in progress for Monitored Docker Container

I also adding WUD to check my container version which will give me information on when to upgrade the version if required.

I think he is confused…

Yes… But I will get there.

1 Like

I installed the z2m one but can’t get it to start. Whenever I run the β€œstart zigbee2mqtt” command I don’t see any output. Where would logs be to debug?

This is my config

homeassistant: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://192.168.1.215:1883
  user: usr
  password: pwd
  keepalive: 60
  reject_unauthorized: true
  version: 4
frontend:
  port: 9190
serial:
  port: /dev/serial/by-id/usb-Texas_Instruments_XDS110__03.00.00.15__Embed_with_CMSIS-DAP_L43002HR-if00
advanced:
  pan_id: 26390
  last_seen: ISO_8601
devices:
  ...

Found the container log

Aug 21 21:52:27 zigbee2mqtt npm[615]: #033[32mZigbee2MQTT:info #033[39m 2021-08-21 21:52:27: Logging to console and directory: β€˜/opt/zigbee2mqtt/data/log/2021-08-21.21-52-26’ filename: log.txt
Aug 21 21:52:27 zigbee2mqtt npm[615]: #033[32mZigbee2MQTT:info #033[39m 2021-08-21 21:52:27: Starting Zigbee2MQTT version 1.21.0 (commit #70891eec)
Aug 21 21:52:27 zigbee2mqtt npm[615]: #033[32mZigbee2MQTT:info #033[39m 2021-08-21 21:52:27: Starting zigbee-herdsman (0.13.124)
Aug 21 21:52:27 zigbee2mqtt npm[615]: #033[31mZigbee2MQTT:error#033[39m 2021-08-21 21:52:27: Error while starting zigbee-herdsman
Aug 21 21:52:27 zigbee2mqtt npm[615]: #033[31mZigbee2MQTT:error#033[39m 2021-08-21 21:52:27: Failed to start zigbee
Aug 21 21:52:27 zigbee2mqtt npm[615]: #033[31mZigbee2MQTT:error#033[39m 2021-08-21 21:52:27: Check | Zigbee2MQTT for possible solutions
Aug 21 21:52:27 zigbee2mqtt npm[615]: #033[31mZigbee2MQTT:error#033[39m 2021-08-21 21:52:27: Exiting…
Aug 21 21:52:27 zigbee2mqtt npm[615]: #033[31mZigbee2MQTT:error#033[39m 2021-08-21 21:52:27: Error: Error while opening serialport β€˜Error: Error: Operation not permitted, cannot open /dev/serial/by-id/usb-Texas_Instruments_XDS110__03.00.00.15__Embed_with_CMSIS-DAP_L43002HR-if00’
Aug 21 21:52:27 zigbee2mqtt npm[615]: at SerialPort. (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28)
Aug 21 21:52:27 zigbee2mqtt npm[615]: at SerialPort._error (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
Aug 21 21:52:27 zigbee2mqtt npm[615]: at /opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12

The OP is a guide for Installing Home Assistant using Proxmox
Somehow, it seams, that I’ve managed to hijack this thread, and for this I apologize to @kanga_who and will respect, and only reply to topic related posts.

It’s all good, no stress :+1:

I’m trying to update my Proxmox server with the upgrade item listed in the main post, sudo apt update && sudo apt dist-upgrade -y && sudo apt autoremove –y , but I get an error Unable to locate package –y. Is this the correct command for Proxmox 7?

Works fine without -y

To update Proxmox, use the UI

You might be able to notice a slight difference in these.

–y -y

The second one is correct, the first will not work and give you that error, likely just a copy paste error. If you look closely, the one after autoremove is the incorrect one.

Interesting, the joys of similar looking characters! Thanks :slight_smile: