ds-identify: detect LXD for VMs launched from host with > 5.10 kernel#1370
Conversation
Launching KVM instances from a host system with > 5.10 kernel results in LXC passing `hv_passthrough` to the kvm instance being launched. Systemd < 251 will incorrectly detect the CPU in this case as "qemu" instead of "kvm". ds-identify needs to properly interpret systems with sytemd-detect-virt="qemu" and /sys/class/dmi/id/board_name="LXD" This functionality can be dropped once systemd 251 support is available. LP: #1968085
I don't think this is true, is it? There may be distros/releases out there that might be stuck on a kernel version > 5.10 with a systemd version < 250 for quite some time. Without auditing all supported distros I don't think we can drop this check as soon as 251 is available. Also I see a format issue that will likely fail on CI shortly (line length). |
Fixed and updated both PR "Proposed Commit Message" in this description and the test_ds_identify docstr awaiting CI pass before we can merge. |
Proposed Commit Message
Additional Context
systemd/systemd#22709
Test Steps
From a jammy host:
Checklist: