]> git.proxmox.com Git - pve-installer.git/commitdiff
fix #1479: detect missing KVM support
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 22 Aug 2017 12:18:46 +0000 (14:18 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 14 Sep 2017 07:11:04 +0000 (09:11 +0200)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
proxinstall

index 509430fb6fc7a6a1ea3020a91b1ee3dd64ad3b97..a04d98aa413c86e22be99ab573945837473040ff 100755 (executable)
@@ -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);