===== Virtualbox =====
=== Hardware Virtualization ===
Hardware Virtualization (alias VT-X - a command Set of the CPU) is required for virtual machines.
== on MSI Mainboard ==
Enabling it is hidden within
Overclocking > CPU Features > Inter Virtualization Technology
**ACHTUNG:** "CPU Features" IS FUCKING ONLY AVAILABLE IN "STANDARD MODE" - NOT IN "ECO MODE"
{{https://lh3.googleusercontent.com/-tbZpzosm5_8/Wqpj6zIVVrI/AAAAAAAAAFM/lyMkyhGs8tEiFW1-1Yu7DdkMO9iM2Jq4QCHMYCw/s0/2018-03-15_13-15-36.png?800}}
== on HP Notebook ==
{{https://lh3.googleusercontent.com/-g7MYwCe8tMg/WqpjjMM8ozI/AAAAAAAAAFI/r4cjlnQE2AYv5iNkJ5eMy6qM5aRN12UFACHMYCw/s0/2018-03-15_13-14-00.png}}
{{https://lh3.googleusercontent.com/-GMtpMuuPCTA/Wqpjdwfc_vI/AAAAAAAAAFE/0VSmI6OQDc0KAnsjAKOLlNBB50EbTwgBwCHMYCw/s0/2018-03-15_13-13-40.jpg}}
== DeviceGuard ==
"DeviceGuard" also blocks the VT-x feature,
which causes the "VERR_VMX_NO_VMX" message by VirtualBox or Vagrant.
You can check, whether DeviceGuard is running under SystemInformation. Search for:
"DeviceGuard Virtualization: Running"
{{https://docs.microsoft.com/en-us/visualstudio/cross-platform/tools-for-cordova/tips-workarounds/media/android-tips/device-guard.png}}
You can disable it, via "gpedit.msc",
setting "Computer Configuration\Administrative Templates\System\Device Guard\Turn On Virtualization Based Security" to "Disabled".
{{https://www.tenforums.com/attachments/tutorials/108861d1485973713-enable-disable-device-guard-windows-10-a-device_guard_gpedit-1.png}}
Additionally you can set "bcdedit /set hypervisorlaunchtype off"
* https://arstechnica.com/civis/viewtopic.php?f=8&t=1423473
* https://forums.virtualbox.org/viewtopic.php?f=38&t=86399
You can check, whether the device guard is running under
== Device Guard and Credential Guard hardware readiness tool ==
You can use the tool to disable the DeviceGuard.
Use the **Device Guard and Credential Guard hardware readiness tool** from Microsoft to disable the credential guard:
https://www.microsoft.com/en-us/download/details.aspx?id=53337
Run Powershell as administrator and follow this steps:
To verify DG/CG is enabled:
DG_Readiness_Tool_v3.6 -Ready
To disable DG/CG:
DG_Readiness_Tool_v3.6 -Disable
and restart the PC.
If Powershell can't execute the script, first try to set the execution policies unrestricted with this just typing:
Set-ExecutionPolicy Unrestricted
Try again to execute the script and restart the PC.
=== Resolution ===
How to customize Virtual box resolution is written here: http://www.virtualbox.org/manual/ch09.html
VBoxManage.exe setextradata "Windows8" CustomVideoMode1 1680x1050x32
VBoxManage.exe setextradata global GUI/MaxGuestResolution any
=== Release Disk space ===
The dynamic disk occupies XGB of real disk space, once there tehre were XGB of Data. \\
But the virtualdisk does not automatically release diskpace. \\
To release diskspace do:
- Disk defragmentation inside of the virtual machine
- use [[ http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx | sdelete.exe ]] tool to delete unneeded blocks
sdelete.exe -z
- use vmbox toolkit to compact the disk
VBoxManage modifyhd "X:\Virtual Machines VirtualBox\VirtualboxHdd.vdi" --compact
=== Running Virtualbox as a VBoxHeadlessTray===
http://www.toptensoftware.com/VBoxHeadlessTray/
Use the vboxvmservice tool to run Virtual Machines as a service!
=== Network ===
The Network woks if set to **Networkbridge**