I've repurposed the notes at Install Home Assistant OS with KVM on Ubuntu headless (CLI only) for a Debian Bullseye (v11) system.
Start by checking that virtualization is available (the second command counts the number of instances, and needs to be non-zero):
# lscpu|egrep '(Model|Virtualization)' Model: 158 Model name: Intel(R) Xeon(R) E-2176G CPU @ 3.70GHz Virtualization: VT-x # egrep -c '(vmx|svm)' /proc/cpuinfo 24
The virtualization packages can be installed, networking is not included as it is already configured:
apt install -y \ qemu-kvm \ qemu-utils \ libvirt-daemon-system \ libvirt-clients \ ovmf
Optional packages include:
- numad - User-level daemon that monitors NUMA topology and usage
- pm-utils - Utilities and scripts for power management
Confirm a successful installation:
systemctl status libvirtd ● libvirtd.service - Virtualization daemon Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2023-04-26 00:10:10 MDT; 5min ago
I will have to return to this note at a later time, I decided to give domoticz a try. I was reading a reddit posting about the regular upgrade issues HASS has. So I think something a bit leaner might be more my style. Albeit, it may require more hands on.
And as it turns out, with Domoticz, there is a bit more hand-holding, and more manual installation, but I think it fits my style better. It has forced a deep examinatiohn of how Domoticz, ESPHome, the Arduino IDE, and the various Arduino boards work together.