[pve-devel] [PATCH installer] fix #1479: detect missing KVM support

Fabian Gr├╝nbichler f.gruenbichler at proxmox.com
Tue Aug 22 14:18:46 CEST 2017


Signed-off-by: Fabian Gr├╝nbichler <f.gruenbichler at proxmox.com>
---
 proxinstall | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/proxinstall b/proxinstall
index 509430f..a04d98a 100755
--- a/proxinstall
+++ b/proxinstall
@@ -2971,6 +2971,14 @@ sub create_intro_view {
 
     cleanup_view ();
 
+    eval {
+	my $cpuinfo = file_get_contents('/proc/cpuinfo');
+	if ($cpuinfo && !($cpuinfo =~ /^flags\s*:.*(vmx|svm)/m)) {
+	    display_error("No support for KVM virtualisation detected.\n\n" .
+	                  "Check BIOS settings for Intel VT / AMD-V / SVM.")
+	}
+    };
+
     display_html ("license.htm");
 
     set_next ("I a_gree", \&create_hdsel_view);
-- 
2.11.0




More information about the pve-devel mailing list