]> git.proxmox.com Git - pve-installer.git/blobdiff - proxinstall
proxinstall: check hvm support through runtime env info
[pve-installer.git] / proxinstall
index 274f39c22a8c2ce14463c07e901f55ca09b48637..d5b2565c283ffe5d510f420d169c0174ab16e0db 100755 (executable)
@@ -1583,14 +1583,11 @@ sub create_intro_view {
            "See 'System Requirements' in the $iso_env->{cfg}->{fullname} documentation.");
     }
 
-    if ($iso_env->{product} eq 'pve') {
-       my $cpuinfo = eval { file_read_all('/proc/cpuinfo') };
-       if (!$cpuinfo || $cpuinfo !~ /^flags\s*:.*(vmx|svm)/m) {
-           Proxmox::UI::error(
-               "No support for hardware-accelerated KVM virtualization detected.\n\n"
-               ."Check BIOS settings for Intel VT / AMD-V / SVM."
-           );
-       }
+    if ($iso_env->{product} eq 'pve' && !$run_env->{hvm_supported}) {
+       Proxmox::UI::error(
+           "No support for hardware-accelerated KVM virtualization detected.\n\n"
+           ."Check BIOS settings for Intel VT / AMD-V / SVM."
+       );
     }
 
     Proxmox::UI::display_html('license.htm', sub {