foxlet / macOS-Simple-KVM

Tools to set up a quick macOS VM in QEMU, accelerated by KVM.
13.56k stars 1.14k forks source link

Ventura please #583

Open ImGGAAVVIINN opened 1 year ago

ImGGAAVVIINN commented 1 year ago

Add Ventura support if you can. It will be greatly appreciated. :D

MobCode100 commented 1 year ago

You could try to download osx-kvm Ventura version that has just released today!

I expect ventura to be widely supported in the near future.

I successfully installed Ventura from OSX-KVM repo, having to add +avx2 to the MY_OPTIONS line and changing -cpu Penryn to -cpu host in OpenCore-Boot.sh before installation, or else you might get errors relating to dyld cache / missing library files (e.g. libSystem.B.dylib). Make sure your CPU model supports avx2 instruction.

Edit: The above solution is no longer required for OSX-KVM as the problem has been fixed so just proceed with normal installation however, depending on your computer you might need to do it if your other device requires avx2 on the CPU such as GPU, according to here.

@ImGGAAVVIINN You can install OneClick macOS SImple KVM if you prefer a fork macOS-Simple-KVM. Honestly, you should stop creating issues here as this project is considered dead. It is better to create issues for other currently maintained and updated projects.

bhat-sahab commented 1 year ago

@MobCode100 Is +avx2 required to while installation or we can add it later? I add +avx2 to the MY_OPTIONS, but getting same issue, though I added it after installation had completed.

MobCode100 commented 1 year ago

@MobCode100 Is +avx2 required to while installation or we can add it later? I add +avx2 to the MY_OPTIONS, but getting same issue, though I added it after installation had completed.

You must do it before installing/upgrading because the installer reads the hardware and initialize the proper storage/boot device to be rebooted later. I'm not sure in detail how this exactly works, but that's what I did to make the installation successful. Make sure that your CPU supports avx2 instruction by running lscpu | grep avx2.

bhat-sahab commented 1 year ago

@MobCode100 I tried it again with avx2 enable initially and same it gets stuck on same kernel panic with missing libSystem.B.dylib. I have i5 12400f with windows 11 running ubuntu 20 under wsl2.

MobCode100 commented 1 year ago

@MobCode100 I tried it again with avx2 enable initially and same it gets stuck on same kernel panic with missing libSystem.B.dylib. I have i5 12400f with windows 11 running ubuntu 20 under wsl2.

Wierd. Remove OSX-KVM folder and redo the cloning process and everything. After launching with OpenCore-Boot.sh, at the screen where you have to erase the disk and reinstall macOS, click utilities at the top bar, run terminal, and enter sysctl -a | grep avx. If you have it enabled, it will show the output hw.optional.avx2_0: 1

bhat-sahab commented 1 year ago

Wierd. Remove OSX-KVM folder and redo the cloning process and everything. After launching with OpenCore-Boot.sh, at the screen where you have to erase the disk and reinstall macOS, click utilities at the top bar, run terminal, and enter sysctl -a | grep avx. If you have it enabled, it will show the output hw.optional.avx2_0: 1

Tried the command in the recovery mode terminal and its enabled.

Screenshot 2022-10-29 131029

MobCode100 commented 1 year ago

Tried the command in the recovery mode terminal and its enabled.

Run this lscpu | grep avx2 on your Ubuntu terminal, does it show anything? If it's not try, to enable avx2 in Windows. I found a video for that, not sure if it works well.

bhat-sahab commented 1 year ago

Run this lscpu | grep avx2 on your Ubuntu terminal, does it show anything? If it's not try, to enable avx2 in Windows. I found a video for that, not sure if it works well.

Tried that already its enabled in wsl, im trying big sur just to check if everything is fine.

MobCode100 commented 1 year ago

Tried that already its enabled in wsl, im trying big sur just to check if everything is fine.

Try changing -cpu Penryn to -cpu host. That should fix the issue. I've updated my original comment.

bhat-sahab commented 1 year ago

Try changing -cpu Penryn to -cpu host. That should fix the issue. I've updated my original comment.

Well this worked lol. Thanks!