-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCB: Load image failed - Unsupported #8
Comments
I normally test using the create-virtual-machine script which is what I used to determine the macOS support matrix; the most extensive testing was done on Monterey and Ventura, with some manual image tweaks for legacy boot on Lion and older. If you haven't already I'd enable these Lines 79 to 102 in e8eb79b
I'd verify that the HfsPlus.efi driver is loaded and Lines 207 to 212 in e8eb79b
I am curious, what is the significance of the '5 GB' image size for the EFI disk? Is this an issue with the New-VHD cmdlet? There shouldn't be any boot issue from the image size as long as it's large enough to fit the macOS base image and EFI folder. |
It fails to create the recovery image. I checked the real size after I set it to 5GB and it was around 1.35 GB. |
Ah I see. I'll have to change the default size or adjust it with
The scripts in the You'd have to build the project with
The The |
The release folders are corrupted, they cannot be opened. |
This comment was marked as resolved.
This comment was marked as resolved.
Once I deleted the previous machine it compiled fine. Went to the recovery screen. |
This comment was marked as resolved.
This comment was marked as resolved.
I had to delete and recreate the network switch to make internet work. |
You may need to convert the image to an intermediate ISO image and run qemu-img on that instead: dmg2img InstallMacOSX.dmg InstallMacOSX.iso qemu-img convert -O vhdx InstallMacOSX.iso InstallMacOSX.vhdx
This has also been fixed in 1ce9be2 (v0.1.0) to override the default network switch. Will have to note that in the release notes -- it should just work in the updated release or from source. I also fixed the EFI VHDX size issue just now in 25e9275. For now, the pre-allocated size is fixed to 5GB but will shrink after building the disk. |
Sounds like the original issue was resolved then? I'll close this issue for now, though let me know if that issue pops up again. |
For Monterey only. Can't get Lion to boot. Still the same error. |
Tried changing the platform info to |
Are you using the HfsPlusLegacy.efi driver when booting Lion (10.7)? It looks like it's missing from the build spec in v0.1.0: Lines 11 to 17 in 25e9275
Could you upload the OpenCore log when booting into Lion (either with a debug release or with the instructions in #8 (comment))? |
No, that driver is unavailable. Even from Opencore Package itself: |
You can find it under the OCBinaryData repo here: I was mostly asking since it would have indicated a regression in legacy boot (originally fixed in acidanthera/OpenCorePkg@092af5d). |
https://github.com/acidanthera/OcBinaryData/blob/master/Drivers/HfsPlusLegacy.efi |
Disregard the above picture. I downloaded it as a raw file. But anyway, even that one comes with |
Did not work. Can I attach it as a DVD somehow? |
You appear to have a Comet-Lake i9 10920X CPU, which supports RDRAND instructions (so you wouldn't need HfsPlusLegacy). On a related note, I'm not sure you can boot below macOS Catalina on that CPU? Initial support for Comet Lake was only added in 10.15.4. As Hyper-V is a type-1 hypervisor, you'll need to make sure your CPU is supported by that version of macOS. |
OC were saying the CPU may need to be spoofed?
|
Tried:
Still the same. |
Ah right. You can use a CPUID patch w/ DummyPowerManagement to avoid CPUID/power management kernel panics -- I've normally done this on unsupported Pentium systems (which I completely forgot you could do). That wouldn't prevent loading the Lion image but it would create issues while booting the installer. |
|
Type-1 generally refers to running on/with the physical hardware of the machine; something like VirtualBox or QEMU (without KVM) would have to emulate the CPU instructions without direct hardware access. On the other hand, Hyper-V has two different generations of virtual machine types that have different virtual hardware models (and thus different supported features). It's a different concept from the level of hardware abstraction the hypervisor uses.
|
Is your script creating type-1? Tried this too:
|
Still not sure how to make the disk appear in the boot menu converted from |
by the way getting panic on Monterey:
|
Hyper-V is always a type-1 hypervisor; the script is creating a generation 2 virtual machine mainly to support UEFI boot.
If you have the dmg you can try creating a VHD/VHDX disk with a OSX-Hyper-V/scripts/lib/create-macos-recovery.ps1 Lines 20 to 40 in 25e9275
|
Got past that one with:
Make sure to add it. |
As noted in the README there is no graphics acceleration -- at least for most cards. This would require DDA support from the host (dependent on the Windows edition) and additional work on Lilu and WhateverGreen to fix Hyper-V device detection for GPU patching. |
Aha. Whatevergreen is not even included. Is it needed? |
It doesn't detect PCI bridges early enough to do anything (and you'd need to be able to pass in the iGPU to the VM with DDA). The MacHyperVSupport package includes basic framebuffer support which is what you see with 'Hyper-V Graphics' -- I've explained this issue in #6 as well. |
My CPU has no iGPU. |
It's still the same issue whether you want to pass in an iGPU or a DGPU. It'd be the only way to get graphics acceleration which is still blocked by the issues mentioned above. |
Disabling AMFI should only be done when necessary when running unsupported hardware on an unsupported OS; it can create unnecessary issues in macOS (e.g. in adding applications to |
I don't get then the panic. Monterey supports this CPU. It is very similar to the MacPro's CPU. Maybe I should change the Nope still getting it. |
So I got acceleration with the use of a Kext. Tested with 10.6.8 and 10.9.5. Don't know if it would work with the newer macOS, but don't see why not. |
I'd verify that you actually have QE/CI or some basic acceleration for OpenGL (for example, with a transparent dock in modern macOS versions). This kext shouldn't give you any hardware acceleration since we don't have any VirtIO/QXL device in Hyper-V. It may be useful if you can change your screen resolution from the default set in the HyperVGraphicsBridge module, which would suggest that it works similarly to UEFIGraphicsFB as a basic framebuffer driver. Feel free to create a new issue for it though. I'll take a look later in case there's a way I can add support in Hyper-V. |
It also worked with plain VGA card and manually adding vRAM of up-to 512MB. A short video is attached. |
Does it require driver communication from the host or does it work as a more optimized CPU-driven framebuffer driver? I suppose I'm not really following since increasing the VRAM isn't indicative of hardware acceleration, only that there is some sort of device created. |
The screen saver (even in preview mode) works perfectly well. Also I don't think |
Have you tested this with Hyper-V or is this just with UTM? |
Downloading now Hyper-V for testing. For now tested only in UTM (Vbox should work as well). |
I get this error:
But the dependency appears to be loaded |
That kext can't be injected through OpenCore since it requires linking with IOGraphicsFamily which is in SysKC; you'd have to put it under |
That is probably for the new macOS’s. It may work up to Catalina?
The kext is not signed so loading from |
You can disable SIP (or disable kext signing) to load it. Set the |
Good job, but unfortunately I cant get it to boot.
First of all, you have to increase the EFI image size to at least 5G.
Second no matter what machine I choose (I tried Lion, Mavericks and Monterey) I always get an error on boot
OC: Load image failed - Unsupported
Do you have a tested machine with this script?
The text was updated successfully, but these errors were encountered: