No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kevin Heyer c659469a1b Add MIT license [skip ci]
The repository is public but had no license, so no one was allowed to use it.
MIT, copyright iac contributors.. No build needed.
2026-11-17 07:08:25 +01:00
.forgejo/workflows Add README, changelog, agent files and the lint workflow 2026-11-05 20:55:48 +01:00
.vibe Add README, changelog, agent files and the lint workflow 2026-11-05 20:55:48 +01:00
.clinerules Add README, changelog, agent files and the lint workflow 2026-11-05 20:55:48 +01:00
.cursorrules Add README, changelog, agent files and the lint workflow 2026-11-05 20:55:48 +01:00
.windsurfrules Add README, changelog, agent files and the lint workflow 2026-11-05 20:55:48 +01:00
AGENTS.md Add README, changelog, agent files and the lint workflow 2026-11-05 20:55:48 +01:00
CHANGELOG.md Add README, changelog, agent files and the lint workflow 2026-11-05 20:55:48 +01:00
CLAUDE.md Add README, changelog, agent files and the lint workflow 2026-11-05 20:55:48 +01:00
GEMINI.md Add README, changelog, agent files and the lint workflow 2026-11-05 20:55:48 +01:00
iac.json Update home-assistant/operating-system to v18.5 2026-11-09 15:18:29 +00:00
LICENSE Add MIT license [skip ci] 2026-11-17 07:08:25 +01:00
README.md Add README, changelog, agent files and the lint workflow 2026-11-05 20:55:48 +01:00

iac-homeassistant

Home Assistant als Home Assistant OS in einer VM auf Proxmox VE – das offizielle Image mit Supervisor und Apps (früher Add-ons). Teil von iac.

Anders als die übrigen iac-Apps ist der Gast kein Debian ("os": "haos" in iac.json): iac legt die VM an und liest ihren Zustand, alles im Gast verwaltet Home Assistant selbst.

Installation (auf der Proxmox-Node)

bash -c "$(curl -fsSL https://iac.heyer.systems/homeassistant/vm.sh)"

Ohne Dialog, mit fester Adresse und einem Zigbee-Stick:

IAC_NONINTERACTIVE=1 var_hostname=homeassistant var_storage=local-zfs \
  var_bridge=vmbr0 var_vlan=70 var_net=192.168.70.220/24 var_gateway=192.168.70.1 \
  var_nameserver=192.168.70.1 var_usb=1cf1:0030 \
  bash -c "$(curl -fsSL https://iac.heyer.systems/homeassistant/vm.sh)"

vm.sh

  • lädt haos_ova-<version>.qcow2.xz aus dem GitHub-Release von home-assistant/operating-system in der Version aus iac.json und prüft es gegen SHA256SUMS des Release,
  • legt die VM an: q35, UEFI (OVMF, Secure Boot aus), CPU x86-64-v2-AES, Vorgabe 2 vCPU, 4 GiB RAM, 32 GiB Platte,
  • setzt nach dem Start Adresse, Gateway, DNS und Hostname über den QEMU-Guest-Agent (ha network update, ha host options) – ohne var_nameserver den DNS der Node,
  • reicht USB-Geräte durch: var_usb mit <vendor>:<product> wie lsusb sie zeigt, mehrere durch Leerzeichen. Das Gerät hängt nach Hersteller und Produkt an der VM und übersteht Umstecken.

Ohne Wirkung (Hinweis in der Ausgabe): Module, var_ssh_keys, var_media; var_searchdomain kennt HAOS nicht. ct.sh lehnt die App ab – Home Assistant OS gibt es nur als VM.

Erste Anmeldung

Direkt nach vm.sh http://<ip>:8123 öffnen und das Onboarding abschließen – neues Konto anlegen oder ein Backup einspielen. Bis dahin kann jeder, der Port 8123 erreicht, das erste Konto anlegen. Deshalb ist der Port private: nur aus dem eigenen Netz freigeben.

Update

Kein automatisches Update von Core und Betriebssystem:

  • in Home Assistant: Einstellungen → System → Updates, oder
  • aus NetBox: Tag iac-update-now an der VM (iac-provisioner führt ha … update für Supervisor, Core und OS aus, das OS zuletzt mit Neustart; Ergebnis im Journal).

Der Supervisor aktualisiert sich selbst (Standard von Home Assistant, bleibt so).

Eine neue Version von Home Assistant OS in iac.json betrifft nur neue VMs; bestehende aktualisieren sich in Home Assistant.

NetBox (iac-provisioner)

Eine VM mit der App homeassistant und dem Tag iac-managed liest der Provisioner über qm guest exec <id> -- docker exec hassio_cli ha … --raw-json:

Feld Inhalt
Version Core, OS und Supervisor
Packages haos, homeassistant, supervisor, installierte Apps als app:<slug>
Sicherheit ausstehende Updates, unsupported/unhealthy, offene Repairs, letztes Backup
Neustart nötig aus dem Repair reboot_required

Die CVE-Felder bleiben leer (kein debsecan in HAOS). Module, Settings und Firewall aus NetBox wirken nicht und bleiben leer.

Daten und Backup

Alles liegt in der Platte der VM. Backups in Home Assistant einrichten (Einstellungen → System → Backups) und/oder die VM in den Backup-Job von Proxmox (PBS) aufnehmen – Home Assistant meldet sonst no_current_backup.