mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-18 02:06:20 +08:00
Assert the provisioning process in macOS if VMX is not enabled
The Docker-machine requires VT-x/AMD-v to build up boot2docker virtual machine. The VMX flag should be enabled when deploying the VM into Virtualbox. In the CI framework, it relies on Coin to expose the VMX flag to the CPU feature. To well handle the case that the VMX could be removed due to some CI updates, the provisioning script will assert the process with the related debug message if VMX is not found. Change-Id: I9f3f123d33629df1655a5b55d776d5361878d1f5 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
This commit is contained in:
@@ -44,6 +44,13 @@ esac
|
||||
# testserver shared scripts
|
||||
source "$SERVER_PATH/testserver_util.sh"
|
||||
|
||||
# Nested virtualization - Print CPU features to verify that CI has enabled VT-X/AMD-v support
|
||||
cpu_features=$(sysctl -a | grep machdep.cpu.features)
|
||||
case $cpu_features in
|
||||
*VMX*) ;;
|
||||
*) echo "VMX not found error! Please make sure Coin has enabled VT-X/AMD-v." >&2; exit 1 ;;
|
||||
esac
|
||||
|
||||
# Create docker virtual machine (Boot2docker)
|
||||
source "$SERVER_PATH/docker_machine.sh"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user