Skip to content

Commit

Permalink
Documentation+Meta: Automatically add disable_virtio on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarbeutner committed Jul 10, 2021
1 parent cc87bf4 commit baf40ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions Documentation/BuildInstructionsWindows.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ By default this will be located at `/mnt/c/Program Files/qemu/qemu-system-x86_64
- Set the `SERENITY_QEMU_BIN` environment variable to the location above. For example: \
`export SERENITY_QEMU_BIN='/mnt/c/Program Files/qemu/qemu-system-x86_64.exe'`

- Set the `SERENITY_KERNEL_CMDLINE` environment variable to disable VirtIO support (Because it is currently broken on
native windows QEMU):
`export SERENITY_KERNEL_CMDLINE="disable_virtio"`

- `ninja run` as usual.

### Hardware acceleration
Expand Down
1 change: 1 addition & 0 deletions Meta/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ if command -v wslpath >/dev/null; then
case "$SERENITY_QEMU_BIN" in
/mnt/c/*)
[ -z "$SERENITY_QEMU_CPU" ] && SERENITY_QEMU_CPU="max,vmx=off"
SERENITY_KERNEL_CMDLINE="$SERENITY_KERNEL_CMDLINE disable_virtio"
esac
fi

Expand Down

0 comments on commit baf40ad

Please sign in to comment.