]> git.proxmox.com Git - systemd.git/commitdiff
virt: detect OpenStack instance as KVM on arm
authorMichael Biebl <biebl@debian.org>
Sun, 7 Aug 2022 13:21:32 +0000 (15:21 +0200)
committerMichael Biebl <biebl@debian.org>
Sun, 7 Aug 2022 13:21:32 +0000 (15:21 +0200)
Closes: #1016157
debian/patches/series
debian/patches/virt-detect-OpenStack-Nova-instance.patch [new file with mode: 0644]

index b3493c53c54fd53dae69028a4711e94493d279fe..d0ebfa1ba6e22a049aa631a1e138f39d201a324a 100644 (file)
@@ -27,6 +27,7 @@ machine-enter-target-PID-namespace-when-adding-a-live-mou.patch
 Drop-bundled-copy-of-linux-if_arp.h.patch
 virt-Support-detection-for-ARM64-Hyper-V-guests.patch
 virt-Fix-the-detection-for-Hyper-V-VMs.patch
+virt-detect-OpenStack-Nova-instance.patch
 debian/Use-Debian-specific-config-files.patch
 debian/Bring-tmpfiles.d-tmp.conf-in-line-with-Debian-defaul.patch
 debian/Make-run-lock-tmpfs-an-API-fs.patch
diff --git a/debian/patches/virt-detect-OpenStack-Nova-instance.patch b/debian/patches/virt-detect-OpenStack-Nova-instance.patch
new file mode 100644 (file)
index 0000000..87686b2
--- /dev/null
@@ -0,0 +1,21 @@
+From: Michael Biebl <biebl@debian.org>
+Date: Sun, 7 Aug 2022 15:21:12 +0200
+Subject: virt: detect OpenStack Nova instance
+
+(cherry picked from commit 01d9fbccddd694bc584aed24eaa0543f831dc929)
+---
+ src/basic/virt.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/basic/virt.c b/src/basic/virt.c
+index 54befd9..78ee1b8 100644
+--- a/src/basic/virt.c
++++ b/src/basic/virt.c
+@@ -149,6 +149,7 @@ static int detect_vm_dmi(void) {
+                 int id;
+         } dmi_vendor_table[] = {
+                 { "KVM",                 VIRTUALIZATION_KVM       },
++                { "OpenStack",           VIRTUALIZATION_KVM       }, /* Detect OpenStack instance as KVM in non x86 architecture */
+                 { "QEMU",                VIRTUALIZATION_QEMU      },
+                 { "VMware",              VIRTUALIZATION_VMWARE    }, /* https://kb.vmware.com/s/article/1009458 */
+                 { "VMW",                 VIRTUALIZATION_VMWARE    },