1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 09:47:35 +00:00

Documentation+Meta: Automatically set vmx=off on Windows

This commit is contained in:
Gunnar Beutner 2021-07-10 14:12:40 +02:00
parent 2c392669c6
commit cc87bf46c1
2 changed files with 7 additions and 3 deletions

View file

@ -49,6 +49,13 @@ fi
[ -z "$SERENITY_RAM_SIZE" ] && SERENITY_RAM_SIZE=512M
if command -v wslpath >/dev/null; then
case "$SERENITY_QEMU_BIN" in
/mnt/c/*)
[ -z "$SERENITY_QEMU_CPU" ] && SERENITY_QEMU_CPU="max,vmx=off"
esac
fi
[ -z "$SERENITY_QEMU_CPU" ] && SERENITY_QEMU_CPU="max"
[ -z "$SERENITY_DISK_IMAGE" ] && {