From 81921eb302e12c98cae173ad0f070c9c8de3156f Mon Sep 17 00:00:00 2001 From: Brett Holman Date: Wed, 9 Mar 2022 15:11:14 -0700 Subject: [PATCH] systemd-detect-virt can detect qemu, which we support --- cloudinit/sources/DataSourceLXD.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cloudinit/sources/DataSourceLXD.py b/cloudinit/sources/DataSourceLXD.py index 071ea87cf71..04d393456d0 100644 --- a/cloudinit/sources/DataSourceLXD.py +++ b/cloudinit/sources/DataSourceLXD.py @@ -71,7 +71,10 @@ def generate_fallback_network_config() -> dict: err, ) return network_v1 - if virt_type.strip() == "kvm": # instance.type VIRTUAL-MACHINE + if virt_type.strip() in ( + "kvm", + "qemu", + ): # instance.type VIRTUAL-MACHINE arch = util.system_info()["uname"][4] if arch == "ppc64le": network_v1["config"][0]["name"] = "enp0s5"