dogi / ole--vagrant-community

0 stars 19 forks source link

add Bios tweaks to README.md #1

Open dogi opened 8 years ago

dogi commented 8 years ago

Enabling Intel VT and AMD-V virtualization hardware extensions in BIOS

http://www.howtogeek.com/213795/how-to-enable-intel-vt-x-in-your-computers-bios-or-uefi-firmware/

dogi commented 8 years ago

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

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

mhalqurashi commented 8 years ago

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

mhalqurashi commented 8 years ago

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

mhalqurashi commented 8 years ago

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

mhalqurashi commented 8 years ago

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

mhalqurashi commented 8 years ago

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

xinglunxu commented 8 years ago

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.

dogi commented 8 years ago

@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 ;)

xinglunxu commented 8 years ago

@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.

dogi commented 8 years ago

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

mhalqurashi commented 8 years ago

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

mhalqurashi commented 8 years ago

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.

mhalqurashi commented 8 years ago

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

mhalqurashi commented 8 years ago

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

mhalqurashi commented 8 years ago

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