Kernel configs for VM images are missing useful settings #2987
Labels
board/generic-aarch64
Generic aarch64 machine
board/ova
Open Virtual Appliance (Virtual Machine)
bug
hypervisor/kvm
KVM related issues
Describe the issue you are experiencing
A follow-on to #2909 in a sense—here's a couple kernel switches I noticed were lacking when setting up HAOS in libvirt, which would make sense to turn on (as modules) for VM-enabled configurations.
CONFIG_VIRTIO_MEM
– virtio-mem allows for growing and shrinking VM memory allocation at runtime, in cooperation with the guest. It could be seen as an advanced successor to virtio-balloon, with true memory hot(un)plug that's far more flexible. Seems useful for experimenting with addons (one of the main motivations to run HAOS in a VM, I think!).CONFIG_DMI_SYSFS
(and/orCONFIG_FW_CFG_SYSFS
) – Enables userspace access to SMBIOS tables (and, respectively, QEMU'sfw_cfg
user-defined values). Of interest is the SMBIOS Type 11 "OEM Strings" structure, which VMMs these days are using as a place for admins to provide arbitrary data to guests. systemd, as of v252, will read values for its credentials from here to pass to services that request them; some settings which HAOS admins might want to configure includenetwork.hosts
andssh.authorized_keys.root
(these are handled bysystemd-tmpfiles-setup.service
, which runs afterlocal-fs.target
is reached, so thehassos-bind.target
mounts will already be set up at that point).fw_cfg
, and has supported it for longer. However, it has several limitations and is QEMU-specific, so using it seems to be discouraged now, hence the "and/or". But on the other hand, throwing the module in only costs a couple dozen KiB uncompressed...)What operating system image do you use?
generic-aarch64 (Generic UEFI capable aarch64 systems)
What version of Home Assistant Operating System is installed?
11.2
Did you upgrade the Operating System.
Yes
Steps to reproduce the issue
virtio-mem
in libvirt for your HAOS VMzcat /proc/config.gz | grep CONFIG_VIRTIO_MEM
prints# CONFIG_VIRTIO_MEM is not set
Anything in the Supervisor logs that might be useful for us?
Anything in the Host logs that might be useful for us?
System information
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: