Ubuntu has a Snap package that can run MacOS on KVM. It is a pre-built script that bring out the MacOS up and running automatically.
There are plenty of notes on the web, this passage is just my personal notes.
Pre-Requisite – install KVM utils and assign a common user to KVM group
sudo apt-get install cpu-checker qemu-utils sudo usermod -a -G kvm,libvirt jimmy sudo chown root:kvm /dev/kvm sudo chmod 666 /dev/kvm
Install Sosumi
sudo snap install sosumi --edge
Adjust the default CPU cores, RAM size and disk image size
# Try to launch the VM as a normal user sosumi # immediately close the VM at Clover # go to snap folder and edit the launch file cd ~/snap/sosumi/common nano launch #modify -m 8G / -smp 8,core=4 qemu-img resize macos.qcow2 +20G
Launch the VM and carry out the standard installation process.
sosumi