Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ OVMF=$VMDIR/firmware
#export QEMU_AUDIO_DRV=pa
#QEMU_AUDIO_DRV=pa

qemu-system-x86_64 \
args=(
-enable-kvm \
-m 2G \
-machine q35,accel=kvm \
Expand All @@ -26,3 +26,9 @@ qemu-system-x86_64 \
-device ide-hd,bus=sata.2,drive=ESP \
-drive id=InstallMedia,format=raw,if=none,file=BaseSystem.img \
-device ide-hd,bus=sata.3,drive=InstallMedia \
### add device/file that you have installed macos on
#-drive id=SystemDisk,if=none,file=MyDisk.qcow2 \
#-device ide-hd,bus=sata.4,drive=SystemDisk \
)

qemu-system-x86_64 "${args[@]}"
5 changes: 4 additions & 1 deletion headless.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ MOREARGS=()
MOREARGS+=(-nographic -vnc :0 -k en-us)
}

qemu-system-x86_64 \
args=(
-enable-kvm \
-m $MEM \
-machine q35,accel=kvm \
Expand All @@ -50,3 +50,6 @@ qemu-system-x86_64 \
-drive id=SystemDisk,if=none,file="${SYSTEM_DISK}" \
-device ide-hd,bus=sata.4,drive=SystemDisk \
"${MOREARGS[@]}"
)

qemu-system-x86_64 "${args[@]}"
5 changes: 4 additions & 1 deletion virtio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ OVMF=$VMDIR/firmware
#export QEMU_AUDIO_DRV=pa
#QEMU_AUDIO_DRV=pa

qemu-system-x86_64 \
args=(
-nodefaults \
-enable-kvm \
-m 2G \
Expand All @@ -24,3 +24,6 @@ qemu-system-x86_64 \
-device vmxnet3,netdev=net0,id=net0,mac=52:54:00:09:49:17 \
-drive id=ESP,if=virtio,format=qcow2,file=ESP.qcow2 \
-drive id=MyDisk,if=virtio,format=qcow2,file=MyDisk.qcow2 \
)

qemu-system-x86_64 "${args[@]}"