Let’s start with a little background I have a lot of servers all over the place, and it’s not uncommon that I need to connect them together in some way. For simple setups WireGuard is working fantastically well but I usually need layer 2 networks. For that I still use tinc, another software I can recommend. Before WireGuard was a thing, tinc was easily my default choice. The new overlay I use LXD to run both VM:s and system containers on my servers and it supports VXLAN overlay networks.

Run Home Assistant OS inside LXD

My Home Assistant installation running on a rpi3b+ finally failed. More precisely, the SD card failed. No big surprise, I was expecting this and had planned a replacement for some time but I never got to in in time. The good this, I had a recent backup so it’s all good! Backup people! New install Instead of just throwing in a new SD-card and just carry on like before, I choose to do a proper install this time on one of my home servers.

Import a qcow2 image to LXD

I recently learned how to make my own LXD VM image based on Home Assistant’s QCOW2 VM images. This blog post is a short write-up how to do that! This is of course useful for other qcow2 images as well. Download a image I downloaded the Home Assistant OS image in the qcow2 format, and uncompressed it. The image is intended for KVM, and LXD runs VM:s with Qemu/KVM so it’s a good fit for LXD VM:s.