rgl/windows-domain-controller-vagrant

Enable "Virtual Machine Platform"

UnwantedFeature opened this issue · 1 comments

When starting the test-nodes with vagrant up --provider=virtualbox, the process exists with an error telling me to enable "Virtual Machine Platform". This feature is already enabled.

PS D:\Projects\Vagrant\WindowsDomain\test-nodes> vagrant up --provider=virtualbox
==> vagrant: You have requested to enabled the experimental flag with the following features:
==> vagrant:
==> vagrant: Features:  typed_triggers
==> vagrant:
==> vagrant: Please use with caution, as some of the features may not be fully
==> vagrant: functional yet.
Bringing machine 'windows' up with 'virtualbox' provider...
Bringing machine 'ubuntu' up with 'virtualbox' provider...
==> windows: Running action triggers before up ...
==> windows: Running trigger...
    windows: Running local: Inline script
    windows: bash -euc '
    windows: certs=(
    windows:     ../tmp/ExampleEnterpriseRootCA.der
    windows: )
    windows: for cert_path in "${certs[@]}"; do
    windows:     if [ -f $cert_path ]; then
    windows:         mkdir -p tmp
    windows:         cp $cert_path tmp
    windows:     fi
    windows: done
    windows: '
    windows:
    windows: Aktivieren Sie bitte das Windows-Feature ?Virtual Machine Platform? und stellen Sie sicher, dass die Virtualisierung im BIOS aktiviert ist.
    (Translation: Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.)
    windows: Weitere Informationen finden Sie unter https://aka.ms/wsl2-install
    (Translation: You can find more information on https://aka.ms/wsl2-install)
    windows:
==> windows: Trigger run failed
==> windows: A script exited with an unacceptable exit code 1.
A script exited with an unacceptable exit code 1.

Virtual Machine Platform is installed:

PS C:\Windows\system32> Get-WindowsOptionalFeature -Online | Where-Object {$_.FeatureName -match "virtualmachineplatform"}


FeatureName : VirtualMachinePlatform
State       : Enabled

Also there were no problems setting up the base machines.

rgl commented

Never saw that before; that seems related to something changed in Windows/VirtualBox/VagrantVirtualBoxProvider. Please try searching/asking for help in the Vagrant repository and let me known what was the solution :-)