Setting up a Home Assistant as a KVM - resize qcow2 & set up network bridge device [Guide]
Setting up a Home Assistant as a KVM - resize qcow2 & set up network bridge device [Guide] - Lemmy.world
I occasionally find myself reinstalling home assistant and every time I do, I get stuck on two steps because I didn’t write them down the previous time. I’m writing them below mainly for myself but also for anyone else who may get stuck. For future reference, I’m using Ubuntu 23.04 with Virt-Manager. Before you begin the installation of the provided qcow2 [https://www.home-assistant.io/installation/linux] image, you might want to resize that image from 32G to whatever size you want. ex: qemu-img resize haos_ova-10.3.qcow2 +68G Next, you might want to make a network bridge device. Navigate to your netplan folder and backup the yaml file that’s in there (your file may be named differently) cd /etc/netplan cp ./01-network-manager-all.yaml ./01-network-manager-all.yaml.old Edit the yaml config. nano ./01-network-manager-all.yaml Change the renderer to networkd and add the bridge device (br0) network: renderer: networkd ethernets: enp12s0: dhcp4: true version: 2 bridges: br0: dhcp4: yes interfaces: - enp12s0 parameters: stp: true save the file. generate and apply the new netplan. WARNING - If you are hosting this on your own network, it’s possible the Ubuntu host IP could change. If you were doing these steps over SSH, you might need to find the new IP and reconnect. Static IPs can be set in the netplan config but I usually just do it from my router settings afterwards which is probably why the IP changed. netplan generate netplan apply