Skip to content

Instantly share code, notes, and snippets.

@pr1ntf
Last active July 20, 2023 20:02
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pr1ntf/055c922d034913287757e513e73e6572 to your computer and use it in GitHub Desktop.
Save pr1ntf/055c922d034913287757e513e73e6572 to your computer and use it in GitHub Desktop.
mac-yabs.sh
#!/bin/sh
# Yet Another bhyve Script v0.1.5
# This was once used to test booting MacOS
# Don't expect it to work
name=clover
ram=8192M
cpu=4
disk=clover-capitan.img
#ss=512
iso=refind-cd-0.10.3.iso
#tap=tap0
#con=stdio
fbuf=fbuf,tcp=127.0.0.1:5902,w=1280,h=1024,wait
fw=BHYVE_UEFI_20160526.fd
# -s 3,ahci-cd,${iso} \
# -s 10,virtio-net,${tap} \
# -l com1,${con} \
bhyve \
-c ${cpu} -m ${ram} \
-H -w \
-s 0,hostbridge \
-s 4,ahci-hd,${disk} \
-s 11,${fbuf} \
-s 31,lpc \
-l bootrom,${fw} \
${name}
@twlawrenceko
Copy link

Hello,

With the curiosity of your implementation of running Clover in Bhyve. Would you mind to share how you create your ESP for UEFI Shell to recognize your Clover EFI partition?
Also as if you are still active, I am currently testing OpenCore Bootloader running in VM Bhyve.

Thanks,
twsps

@Marietto2008
Copy link

Can you explain why your script does not work ? maybe someone can help you if you give to us more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment