Giter Club home page Giter Club logo

Comments (15)

dogi avatar dogi commented on July 20, 2024

Since having Intel VT and AMD-V enabled we should maybe write testing scripts for each OS:

  • Windows
  • Mac OS X
  • Linux

... not only add it to the README.md

from ole--vagrant-community.

mhalqurashi avatar mhalqurashi commented on July 20, 2024

Links for checking whether hardware support virtualization:
For Linux: https://help.ubuntu.com/community/KVM/Installation
For Mac: docker-archive/toolbox#166 http://kb.parallels.com/en/5653
For Windows: https://technet.microsoft.com/en-us/sysinternals/cc835722.aspx

from ole--vagrant-community.

mhalqurashi avatar mhalqurashi commented on July 20, 2024

Also for Windows (Does not work for Windows 10):
https://www.microsoft.com/en-us/download/details.aspx?id=592

hav does not work in windows 10

from ole--vagrant-community.

mhalqurashi avatar mhalqurashi commented on July 20, 2024

As for Windows 8-8.1-10, you can check from task manager.
virtualization_check_for_new_windows

from ole--vagrant-community.

mhalqurashi avatar mhalqurashi commented on July 20, 2024

This link shows how you can detect if VM is enabled
http://stackoverflow.com/questions/21537769/programatically-detect-if-vt-x-or-amd-v-is-enabled-on-windows

from ole--vagrant-community.

mhalqurashi avatar mhalqurashi commented on July 20, 2024

Coreinfo only shows whether the processor supports virtualization, and it does not show if virtualization is enabled or not.
hardware_virtualization_enabled
hardware_virtualization_disabled

from ole--vagrant-community.

xinglunxu avatar xinglunxu commented on July 20, 2024

I cannot find a way to check if vt-x is on/off in mac. It seems that vt-x is always on. If vt-x is off then it needs some firmware update, as indicated here. However checking if vm is hardware supported is possible. Not sure if it is necessary.

from ole--vagrant-community.

dogi avatar dogi commented on July 20, 2024

@xinglunxu as in http://kb.parallels.com/en/5653 described sysctl -a | grep machdep.cpu.features

and if you combine that with the linux solution of https://help.ubuntu.com/community/KVM/Installation
you can create something boolean ;)

from ole--vagrant-community.

xinglunxu avatar xinglunxu commented on July 20, 2024

@dogi Thanks for the detail solution! But this can only verify if vt-x is supported but not if vt-x is enabled, right?

And this the script I can come up with to check if vt-x is hardware supported:
sysctl -a | grep machdep.cpu.features | egrep -c 'VMX'
It output 1 if true otherwise 0.

from ole--vagrant-community.

dogi avatar dogi commented on July 20, 2024

think on macosx we don't need to worry about this too much ;)

if the software is new enough it is always enabled
look at https://support.apple.com/en-us/HT203296

from ole--vagrant-community.

mhalqurashi avatar mhalqurashi commented on July 20, 2024

I have created a simple program for Windows to check if virtualization is enabled or not. It has been tested on Windows 8.1 and Windows 10.
The following screenshots show the output of the program on Windows 8.1 (Disabled) and 10 (Enabled and Disabled)
vircheck_disabled_windows_8 1

vircheck_disabled
vircheck_enabled

from ole--vagrant-community.

mhalqurashi avatar mhalqurashi commented on July 20, 2024

Will try to improve the program so that is checks if virtualization support exist in a pc before it checks for whether it is enabled or not.

from ole--vagrant-community.

mhalqurashi avatar mhalqurashi commented on July 20, 2024

Here is the source code for the first version of vircheck.exe.

from ole--vagrant-community.

mhalqurashi avatar mhalqurashi commented on July 20, 2024

@dogi I think I got what you asked for. This link shows how to check for virutalization using PowerShell.

from ole--vagrant-community.

mhalqurashi avatar mhalqurashi commented on July 20, 2024

@dogi I was able to reproduce the results of the this link.
image

from ole--vagrant-community.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.