Skip to content

Commit 92e9421

Browse files
committed
[CONF] virtIO experimental support.
1 parent 35840df commit 92e9421

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

virtio.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
3+
OSK="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
4+
VMDIR=$PWD
5+
OVMF=$VMDIR/firmware
6+
#export QEMU_AUDIO_DRV=pa
7+
#QEMU_AUDIO_DRV=pa
8+
9+
qemu-system-x86_64 \
10+
-nodefaults \
11+
-enable-kvm \
12+
-m 2G \
13+
-machine q35,accel=kvm \
14+
-smp 4,cores=2 \
15+
-cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc \
16+
-device isa-applesmc,osk="$OSK" \
17+
-smbios type=2 \
18+
-drive if=pflash,format=raw,readonly,file=$OVMF/OVMF_CODE.fd \
19+
-drive if=pflash,format=raw,file=$OVMF/OVMF_VARS-1024x768.fd \
20+
-vga std \
21+
-device ich9-intel-hda -device hda-output \
22+
-usb -device usb-kbd -device usb-mouse \
23+
-netdev user,id=net0 \
24+
-device vmxnet3,netdev=net0,id=net0,mac=52:54:00:09:49:17 \
25+
-drive id=ESP,if=virtio,format=qcow2,file=ESP.qcow2 \
26+
-drive id=MyDisk,if=virtio,format=qcow2,file=MyDisk.qcow2 \

0 commit comments

Comments
 (0)