Skip to content
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

"--create-bootdisks" doesn't work as expected #15

Open
ivankoma opened this issue Aug 14, 2021 · 4 comments
Open

"--create-bootdisks" doesn't work as expected #15

ivankoma opened this issue Aug 14, 2021 · 4 comments

Comments

@ivankoma
Copy link

If I run ./generate-unique-machine-values.sh -c 1 --model iMacPro1,1 --custom-plist=./config-custom.plist --create-bootdisks file ./bootdisks/AAAAAAAAAAAA.OpenCore-nopicker.qcow2 with a size of 5.9MiB is created however /osx-serial-generator/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2 is 16.1MiB.

  1. What does -nopicker argument do?
  2. Why is generated OpenCore.qcow2 smaller in size compared to /OSX-KVM/OpenCore-Catalina/OpenCore.qcow2?

When I run these commands:

rm ./OSX-KVM/OpenCore-Catalina/OpenCore.qcow2
rm ./OSX-KVM/OpenCore-Catalina/config.plist
cp ./bootdisks/AAAAAAAAAAAA.OpenCore-nopicker.qcow2 ./OSX-KVM/OpenCore-Catalina/OpenCore.qcow2
cp ./plists/AAAAAAAAAAAA.config.plist ./OSX-KVM/OpenCore-Catalina/config.plist

And try to run:

cd OSX-KVM/
./OpenCore-Boot.sh

I get these messages:

,0x0) /Sata (Ox2,OxFFFF .0x0)
BdsDxe: starting Boot0001 “UEFI QEMU HARDDISK QM00017 ” from PciRoot (0x0) /Pci (Ox
3,0x0) /Sata (Ox2,OxFFFF,0x0)
BS: Starting OpenCore application...
BS: Booter path - \EFI\BOOT\BOOTX64.EFI
OCFS: Trying to locate filesystem on 7E77DA98 7E88AF98
OCFS: Filesystem DP - \EFI\BOOT\BOOTX64.EFI
BS: Trying to load OpenCore image...
BS: Relative path - EFI
BS: Startup path - EFINOpenCore.efi (0)
BS: Fallback to absolute path - EFI\OC\OpenCore.efi
BS: Read OpenCore image of 892928 bytes
OCM: Loaded image has DeviceHandle 7E77DA98 FilePath 7DB24F98 ours DevicePath 7D
B2A018
OC: Starting OpenCore. . .
OC: Booter path - EFI\OC\OpenCore-efi
OCFS: Trying to locate filesystem on 7E77DA98 7DB24F98
OCFS: Filesystem DP - EFI\OC\OpenCore.efi
OC: Absolute booter path - EFI\OC\OpenCore.efi
OC: Storage root EFI\OC\OpenCore .efi
OCST: Missing vault data, ignoring...
OC: OcMiscEarlyInit...
OC: Failed to load configuration!

It says here in order to generate a valid OpenCore.qcow2 file from config.plist to execute:

cd OpenCore-Catalina
rm -f OpenCore.qcow2
sudo ./opencore-image-ng.sh --cfg config.plist --img OpenCore.qcow2

Now file OpenCore.qcow2 is 16.1MiB and

cd ..
./OpenCore-Boot.sh
  1. It seems to me that argument --create-bootdisks doesn't work as expected.
@ivankoma
Copy link
Author

ivankoma commented Aug 15, 2021

It seems to me that there is something wrong with https://github.com/kholia/OSX-KVM. I cannot generate valid OpenCore.qcow2 from my custom config.plist because I get the same mentioned error: OC: Failed to load configuration!

git clone https://github.com/kholia/OSX-KVM.git
git clone https://github.com/sickcodes/osx-serial-generator.git
cd OSX-KVM/OpenCore-Catalina/
rm OpenCore.qcow2; sudo ./opencore-image-ng.sh --cfg config.plist --img OpenCore.qcow2
cd ../../osx-serial-generator/
./generate-unique-machine-values.sh --bootdisks
cd OSX-KVM/OpenCore-Catalina
rm OpenCore.qcow2; sudo ./opencore-image-ng.sh --cfg config.plist --img OpenCore.qcow2

Notice that OSX-KVM repo produces bad OpenCore.qcow2 file with a size of 5.9MiB instead od 16.1MiB like osx-serial-generator does.

When I place same files:

BaseSystem.img
mac_hdd_ng.img`

and run ./OpenCore-Boot.sh only the one in osx-serial-generator/OSX-KVM repo works.

@sickcodes
Copy link
Owner

sickcodes commented Aug 15, 2021

@ivankoma in my config.plist for OS X serial generator, there are placeholders, which need to be manually changed.

That's why I made the generator :)

@sickcodes
Copy link
Owner

Warning this is broken on 5.14 Kernel.

@takov751
Copy link

takov751 commented Sep 5, 2022

I was able to create a boot image. Just run into a boot loop after finishing fresh install of osx . Recovery baseimg working. I'm still investigating if it's related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants