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

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Sep 14 09:13:03 CEST 2017


applied

On Tue, Aug 22, 2017 at 02:18:46PM +0200, Fabian Grünbichler wrote:
> 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