[elbe-devel] [PATCH 5/5] elbepack: initvm: show warning if kvm is not available
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue Aug 20 11:52:15 CEST 2024
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/initvm.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/elbepack/initvm.py b/elbepack/initvm.py
index fa7e6168b605..db5cd0d12fa2 100644
--- a/elbepack/initvm.py
+++ b/elbepack/initvm.py
@@ -175,6 +175,7 @@ class LibvirtInitVM(_InitVM):
arch = xml.et.find('.//os/type').attrib['arch']
if caps_tree.et.find('.//guest/arch[@name="' + arch + '"]/domain[@type="kvm"]') is None:
+ print('KVM accelerated emulation is not available for the initvm, builds will be slow')
return xml
xml.root.et.attrib['type'] = 'kvm'
--
2.46.0
More information about the elbe-devel
mailing list