Mac VM not working after 6.9 update


Recommended Posts

This is the full log:

 

-device pcie-root-port,port=0x9,chassis=2,id=pci.2,bus=pcie.0,addr=0x1.0x1 \
-device pcie-root-port,port=0xa,chassis=3,id=pci.3,bus=pcie.0,addr=0x1.0x2 \
-device pcie-root-port,port=0x13,chassis=4,id=pci.4,bus=pcie.0,addr=0x2.0x3 \
-device ich9-usb-ehci1,id=usb,bus=pcie.0,addr=0x7.0x7 \
-device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pcie.0,multifunction=on,addr=0x7 \
-device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pcie.0,addr=0x7.0x1 \
-device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pcie.0,addr=0x7.0x2 \
-device virtio-serial-pci,id=virtio-serial0,bus=pci.2,addr=0x0 \
-blockdev '{"driver":"file","filename":"/mnt/user/domains/MacinaboxCatalina/Clover.qcow2","node-name":"libvirt-2-storage","cache":{"direct":false,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-2-format","read-only":false,"cache":{"direct":false,"no-flush":false},"driver":"qcow2","file":"libvirt-2-storage","backing":null}' \
-device ide-hd,bus=ide.2,drive=libvirt-2-format,id=sata0-0-2,bootindex=1,write-cache=on \
-blockdev '{"driver":"file","filename":"/mnt/user/domains/Macinabox Catalina/macos_disk.img","node-name":"libvirt-1-storage","cache":{"direct":false,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-1-format","read-only":false,"cache":{"direct":false,"no-flush":false},"driver":"raw","file":"libvirt-1-storage"}' \
-device ide-hd,bus=ide.3,drive=libvirt-1-format,id=sata0-0-3,write-cache=on \
-netdev tap,fd=33,id=hostnet0 \
-device e1000-82545em,netdev=hostnet0,id=net0,mac=52:54:00:89:d4:1e,bus=pci.1,addr=0x0 \
-chardev pty,id=charserial0 \
-device isa-serial,chardev=charserial0,id=serial0 \
-chardev socket,id=charchannel0,fd=34,server,nowait \
-device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 \
-device usb-tablet,id=input0,bus=usb.0,port=1 \
-device vfio-pci,host=0000:29:00.0,id=hostdev0,bus=pci.3,addr=0x0 \
-device vfio-pci,host=0000:29:00.1,id=hostdev1,bus=pci.4,addr=0x0 \
-device usb-host,hostbus=5,hostaddr=3,id=hostdev2,bus=usb.0,port=2 \
-device usb-host,hostbus=5,hostaddr=4,id=hostdev3,bus=usb.0,port=3 \
-usb \
-device usb-kbd,bus=usb-bus.0 \
-device '************************' \
-smbios type=2 \
-cpu Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
-msg timestamp=on
2021-03-21 09:27:08.639+0000: Domain id=3 is tainted: high-privileges
2021-03-21 09:27:08.639+0000: Domain id=3 is tainted: custom-argv
2021-03-21 09:27:08.639+0000: Domain id=3 is tainted: host-cpu
char device redirected to /dev/pts/0 (label charserial0)
2021-03-21T09:27:08.721074Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
2021-03-21T09:27:08.722739Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
2021-03-21T09:27:08.723951Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
2021-03-21T09:27:08.725116Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]

 

It works fine with VNC only
It doesn't work at all with GPU only
But with VNC and GPU, VNC stays on apple logo and GPU shows secondary screen.

 

 

Edited by bigmac5753
Link to comment

There are no issue in qemu/kvm. You need to provide clover/opencore log.

For opencore use a debug version and change Target to 83 in config.plist, then upload the log generated in the EFI folder. 

That warnings will go away if you delete +pcid from your cpu arguments.

Is your gpu compatible with the version of mac os you are using?

Did you ever manage to get it work with older versions with gpu passed through?

Edited by ghost82
Link to comment
9 minutes ago, ghost82 said:

There are no issue in qemu/kvm. You need to provide clover/opencore log.

For opencore use a debug version and change Target to 83 in config.plist, then upload the log generated in the EFI folder. 

That warnings will go away if you delete +pcid from your cpu arguments.

How can I access the log?

Link to comment
12 minutes ago, bigmac5753 said:

How can I access the log?

Following instructions refer to opencore, no idea for clover

Easiest way:

1- Backup your bootloader file (/mnt/user/domains/MacinaboxCatalina/Clover.qcow2), copy it somewhere in case of issues, so you can restore the image.

2- Since it works with vnc, set up the vm with vnc; once booted into mac os mount the efi image Clover.qcow2 (use opencore configurator, clover configurator, any software able to mount efi partitions, or terminal).

3- Download the latest stable debug version of opencore (0.6.7):

https://github.com/acidanthera/OpenCorePkg/releases/download/0.6.7/OpenCore-0.6.7-DEBUG.zip

4- Extract the archive and replace the files on your mounted efi with extracted ones.

5- Open config.plist, search for "Target" and change it to 83.

6- Shutdown the vm, configure your gpu passthrough, start the vm.

7- After it freezes, force shutdown the vm, reconfigure it with vnc.

8- Start again the vm, mount again the efi image Clover.qcow2 (use opencore configurator, clover configurator, any software able to mount efi partitions, or terminal), go to EFI folder and you will find 2 logs (the "failed one" and the current one).

9- Upload the failed log.

 

Edited by ghost82
Link to comment

ok it seems you used an older version of opencore?

Open your config.plist and replace VboxHfs.efi with OpenHfsPlus.efi

Make sue you have the file OpenHfsPlus.efi in /EFI/OC/Drivers

You need to check what changed in the config.plist from your older version to the new one, several keys were added and removed.

Link to comment
  • 2 weeks later...
On 3/21/2021 at 11:42 AM, ghost82 said:

ok it seems you used an older version of opencore?

Open your config.plist and replace VboxHfs.efi with OpenHfsPlus.efi

Make sue you have the file OpenHfsPlus.efi in /EFI/OC/Drivers

You need to check what changed in the config.plist from your older version to the new one, several keys were added and removed.

It's working now.

When I first set up the server I created a custom GPU ROM with higher fan speeds.  It worked fine so didn't suspect that as the culprit.  I changed back to the original ROM and it works fine now.

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.