-
-
Save anoadragon453/fa687e88c887044f5dd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Starting Samba" | |
sudo systemctl start smbd.service | |
sudo systemctl start nmbd.service | |
cd /home/rainbow/VMs/osx/ | |
sudo qemu-system-x86_64 \ | |
-m 2048 \ | |
-enable-kvm \ | |
-cpu core2duo,kvm=off,vendor=GenuineIntel \ | |
-M q35 \ | |
-bios ./ovmf/OVMF-pure-efi.fd \ | |
-device ahci,id=hdbus,bus=pcie.0 \ | |
-device ide-drive,bus=hdbus.0,drive=Clover \ | |
-drive id=Clover,if=none,file=./disks/clover-debug-test.dd,format=raw \ | |
-device ide-drive,bus=hdbus.1,drive=MacOSX \ | |
-drive id=MacOSX,if=none,file=./disks/mac_hdd.img,format=raw \ | |
-device isa-applesmc,osk="this-is-the-key-of-course" \ | |
-usb -device usb-kbd -device usb-mouse \ | |
-netdev user,id=hub0port0 \ | |
-device e1000-82545em,netdev=hub0port0,id=mac_vnet0 \ | |
-serial stdio \ | |
-smb /home/rainbow/VMs/osx/smb \ | |
-device virtio-scsi-pci,id=scsi \ | |
-device vfio-pci,host=02:00.0,multifunction=on,x-vga=on \ | |
-device vfio-pci,host=02:00.1 | |
echo "Stopping Samba" | |
sudo systemctl stop smbd.service | |
sudo systemctl stop nmbd.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment