Add check for Virtual Machine Platform to prepare script
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
Azure/Ansible/inventory.yml
|
||||||
Vagrant/.vagrant/*
|
Vagrant/.vagrant/*
|
||||||
Vagrant/vagrant*.log
|
Vagrant/vagrant*.log
|
||||||
Packer/packer_cache/*
|
Packer/packer_cache/*
|
||||||
|
|||||||
@@ -253,6 +253,14 @@ function preflight_checks {
|
|||||||
else {
|
else {
|
||||||
Write-Host ' ['$($checkmark)'] The vagrant-reload plugin is installed' -ForegroundColor green
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user