diff --git a/.gitignore b/.gitignore index 9ee2540..667b1ff 100755 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +Azure/Ansible/inventory.yml Vagrant/.vagrant/* Vagrant/vagrant*.log Packer/packer_cache/* diff --git a/Vagrant/prepare.ps1 b/Vagrant/prepare.ps1 index 66a851d..45201e2 100644 --- a/Vagrant/prepare.ps1 +++ b/Vagrant/prepare.ps1 @@ -253,6 +253,14 @@ function preflight_checks { else { Write-Host ' ['$($checkmark)'] The vagrant-reload plugin is installed' -ForegroundColor green } + + # Warn if Virtual Machine Platform is enabled + Write-Host '' + Write-Host '[+] Checking if Virtual Machine Platform is enabled...' + if ((Get-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform").State -eq "Enabled") { + Write-Host ' [-] The "Virtual Machine Platform" Windows feature is enabled on your computer and is known to cause issues with starting Virtualbox VMs' -ForegroundColor yellow + Write-Host ' [-] If you experience issues with Virtualbox, it is recommended to disable it by running "optionalfeatures" from the run prompt and unchecking "Virtual Machine Platform".' -ForegroundColor yellow + } }