-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathqemu.cfg
37 lines (29 loc) · 908 Bytes
/
qemu.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/false
# shebang false prevents accidental execution of the configuration file
# example of qemu configuration file for Windows 11
# modprobe kvm-intel nested=1
-accel kvm
-machine q35
-m 2048
# hv_relaxed, hv_spinlocks=0x1fff, hv_vapic and hv_time
# are specific flags to a Windows guest
-cpu Nehalem,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time,kvm=off
# 2 cores are required for Windows 11
-smp 2
# usb2
-usb
# mouse/touchpad integration (usb2)
-device usb-tablet,bus=usb-bus.0,id=mouse
# usb3
-device qemu-xhci,id=usb3
# bidirectional file-sharing system (usb3)
-device usb-mtp,bus=usb3.0,rootdir=/tmp/,readonly=off,id=mtp
-parallel null
# avoids accidental Ctrl-C from terminal linked to qemu
# Ctrl-A c to access qemu console from terminal-serial mon:stdio
-serial mon:stdio
# (cp || ln -s) /usr/share/edk2/x64/OVMF[.4m].fd uefi
-bios uefi
-hda 11.disk
# no network card
-net none