arindas / mac-on-linux-with-qemu

Runs macOS on linux with qemu.
MIT License
196 stars 18 forks source link

why big sur update cannot be completed ? #15

Closed tombombadilom closed 3 years ago

tombombadilom commented 3 years ago

Big sur upgrade is proposed , downloaded and the first step install completed. But after reboot, it is as if nothing had happend and the system reboot as catalina os. Same thing for the last 2021-04 security update. I tried to change the external update process back to normal but no result.

Is it possible to change the fetch-macos.py script instead and change the https://swscan.apple.com/content/catalogs/others/index-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog , to big sur dmg url instead , and remake a new fresh install ?

Does anybody got the good Big Sur url ?

arindas commented 3 years ago

I don't have the keys and URL for Big Sur. I am however confused that the update didn't work as expected. Will look into this.

arindas commented 3 years ago

Here's how a different project solved it https://github.com/foxlet/macOS-Simple-KVM/issues/436#issuecomment-862703823

The proposed solution is to download https://github.com/kholia/OSX-KVM/blob/master/OpenCore-Catalina/OpenCore.qcow2 and replace ESP.qcow2 with this. This needs to be verified, however.

tombombadilom commented 3 years ago

[root@tomPC mac-on-linux-with-qemu]# wget https://github.com/kholia/OSX-KVM/raw/master/OpenCore-Catalina/OpenCore.qcow2
[root@tomPC mac-on-linux-with-qemu]# ./launch-macos.sh
qemu-system-x86_64: -drive id=OpenCore,if=virtio,format=qcow2,file=OpenCore.qcow2: Image is not in qcow2 format
[root@tomPC mac-on-linux-with-qemu]# qemu-img info OpenCore.qcow2
image: OpenCore.qcow2
file format: raw
virtual size: 16.1 MiB (16842752 bytes)
disk size: 16.1 MiB
[root@tomPC mac-on-linux-with-qemu]# cat launch-macos.sh | grep OpenCore
    -drive id=OpenCore,if=virtio,format=raw,file=OpenCore.qcow2 \
[root@tomPC mac-on-linux-with-qemu]# ./launch-macos.sh
pulseaudio: pa_context_connect() failed
pulseaudio: Reason: Connection refused
pulseaudio: Failed to initialize PA contextaudio: Could not init `pa' audio driver
audio: warning: Using timer based audio emulation
Authorization required, but no authorization protocol specified
Could not initialize SDL(x11 not available) - exiting
arindas commented 3 years ago

Ummm just do this:

git restore .
git checkout -b test-branch
wget https://github.com/kholia/OSX-KVM/raw/master/OpenCore-Catalina/OpenCore.qcow2 -O ESP.qcow2
./launch-macos.sh
arindas commented 3 years ago

In any case, I did the above I'm downloading the security update right now. I Will post updates.

2021-08-25-14:32:29-screenshot

tombombadilom commented 3 years ago

[root@tomPC mac-on-linux-with-qemu]# cp OpenCore.qcow2 ESP.qcow2 [root@tomPC mac-on-linux-with-qemu]# ./launch-macos.sh qemu-system-x86_64: -drive if=pflash,format=raw,readonly,file=packaged-firmware/OVMF_CODE.fd: warning: short-form boolean option 'readonly' deprecated Please use readonly=on instead qemu-system-x86_64: -drive id=ESP,if=virtio,format=qcow2,file=ESP.qcow2: Image is not in qcow2 format [root@tomPC mac-on-linux-with-qemu]# qemu-img info OpenCore.qcow2 image: OpenCore.qcow2 file format: raw virtual size: 16.1 MiB (16842752 bytes) disk size: 16.1 MiB

arindas commented 3 years ago

Ok I realize the problem.

Download using

$ wget https://github.com/kholia/OSX-KVM/raw/master/OpenCore-Catalina/OpenCore.qcow2 -O ESP.qcow2
$ qemu-img info ESP.qcow2
image: ESP.qcow2
file format: qcow2
virtual size: 384 MiB (402653184 bytes)
disk size: 16.1 MiB
cluster_size: 65536
Format specific information:
    compat: 1.1
    compression type: zlib
    lazy refcounts: false
    refcount bits: 16
    corrupt: false
    extended l2: false

The other URL downloads an HTML page. Sorry for the inconvenience.

tombombadilom commented 3 years ago
[root@tomPC mac-on-linux-with-qemu]# qemu-img info ESP.qcow2
image: ESP.qcow2
file format: qcow2
virtual size: 384 MiB (402653184 bytes)
disk size: 16.1 MiB
cluster_size: 65536
Format specific information:
    compat: 1.1
    compression type: zlib
    lazy refcounts: false
    refcount bits: 16
    corrupt: false
    extended l2: false
[root@tomPC mac-on-linux-with-qemu]# ./launch-macos.sh
qemu-system-x86_64: -drive if=pflash,format=raw,readonly,file=packaged-firmware/OVMF_CODE.fd: warning: short-form boolean option 'readonly' deprecated
Please use readonly=on instead
pulseaudio: pa_context_connect() failed
pulseaudio: Reason: Connection refused
pulseaudio: Failed to initialize PA contextaudio: Could not init `pa' audio driver
audio: warning: Using timer based audio emulation
Authorization required, but no authorization protocol specified
Could not initialize SDL(x11 not available) - exitin
tombombadilom commented 3 years ago

you cannot launch mac os as root

I have chown ESP.qcow2 to my user and now it launch ! I will confirm when my upgrade is over 30min ...

tombombadilom commented 3 years ago

Big Sur Upgrade Complete !

photo_2021-08-25_06-30-37

arindas commented 3 years ago

Thank you @tombombadilom for your help.