2018-08-18 12:01:18 +00:00
|
|
|
# User.
|
|
|
|
USER=yu
|
|
|
|
|
2018-11-22 21:48:36 +00:00
|
|
|
# Path to VBIOS, IMG, Mac OS ISO, Virtio iso, Clover, OVMF, ...
|
2018-08-18 12:01:18 +00:00
|
|
|
IMAGES=/home/$USER/vm
|
|
|
|
|
|
|
|
# IOMMU groups for passed devices.
|
|
|
|
IOMMU_GPU=06:00.0
|
|
|
|
IOMMU_GPU_AUDIO=06:00.1
|
|
|
|
IOMMU_USB=07:00.3
|
|
|
|
|
|
|
|
# Virsh devices, only needed if you use virsh.
|
|
|
|
VIRSH_GPU=pci_0000_06_00_0
|
|
|
|
VIRSH_GPU_AUDIO=pci_0000_06_00_1
|
|
|
|
VIRSH_USB=pci_0000_07_00_3
|
|
|
|
|
|
|
|
# PCI BUS ID for binding/unbinding devices.
|
|
|
|
videoid="10de 1184"
|
|
|
|
audioid="10de 0e0a"
|
|
|
|
usbid="1022 145f"
|
|
|
|
videobusid="0000:06:00.0"
|
|
|
|
audiobusid="0000:06:00.1"
|
|
|
|
usbbusid="0000:07:00.3"
|
|
|
|
|
|
|
|
# Images needed for QEMU.
|
|
|
|
VBIOS=$IMAGES/GK104_80.04.C3.00.0F-MODED.rom
|
|
|
|
IMG=$IMAGES/mac-hs.raw,id=disk,format=raw,if=none
|
2018-11-22 21:48:36 +00:00
|
|
|
IMG_MOJAVE=/mnt/wd/vm/hdd/macos-mojave.raw
|
2018-08-18 12:01:18 +00:00
|
|
|
CLOVER=$IMAGES/Clover-1080.qcow2
|
2018-11-22 21:48:36 +00:00
|
|
|
CLOVER_MOJAVE=/mnt/wd/vm/macos/clover-mojave.qcow2
|
2018-08-18 12:01:18 +00:00
|
|
|
ISO=$IMAGES/HighSierra-10.13.6-qemu.iso
|
|
|
|
OVMF=$IMAGES/OSX-KVM/OVMF_CODE.fd
|
2018-08-18 12:18:06 +00:00
|
|
|
OVMF_VARS=$IMAGES/OSX-KVM/OVMF_VARS.fd
|
2018-08-18 12:01:18 +00:00
|
|
|
|
|
|
|
# QEMU options
|
|
|
|
MY_OPTIONS="+aes,+xsave,+avx,+xsaveopt,avx2,+smep"
|
2018-11-22 21:48:36 +00:00
|
|
|
MOJAVE_OPTIONS="+pcid,+ssse3,+sse4.2,+popcnt,+aes,+xsave,+avx,+xsaveopt,avx2,+smep,check"
|
2018-08-18 12:01:18 +00:00
|
|
|
RAM=12G
|
|
|
|
CORES=4
|
|
|
|
|
|
|
|
# To run QEMU as user you need to allow more RAM to be locked by an user.
|
|
|
|
ULIMIT=$(ulimit -a | grep "max locked memory" | awk '{print $6}')
|
|
|
|
|
2018-11-22 21:48:36 +00:00
|
|
|
## Network stuff
|
|
|
|
TAP_INTERFACE=tap0
|
|
|
|
DNSMASQ_CONF=dnsmasq.conf
|
|
|
|
SMB_CONF=smb.conf
|