Jump to content

os x in cloud host?? please help me!! got stuck at "random seed ++++++" while booting Mojave in Cloud Host


5 posts in this topic

Recommended Posts

1) the story is like this:

 

I have a ECS host in Alibaba Cloud which is a legacy BIOS machine(which equipped a i440fx board but with a cascade lake cpu, and a cirrus vga,virtio ssd), and I am in trying to boot Mojave from it using clover

 

1,following the "mojave-mbr-hfs-firmware-check-patch" posts, i created the whole system image mbr formatted, in which  there were 2 partitions,one 200M fat32 named "BOOT" where clover.iso,EFI directory should lay there, and a 15G+ "OSXKVM" hfsplus part to contain the osx10.14.6

 

2,the boot loader I use is clover 5068 (I self compiled it, reverted back the Commit r3907 changes of the source tree, to avoid the "Type 0D general protection error" during clover booting - I call it "prebooting process",because it happened before the OS X Darwin kernel booting)

 

3,then I installed osx10.14.6 to the system image in a local kvm+qemu1.21 vm under linux, (the detailed qemu machine configures,certainly,are designed to micmic the remote ECS configure at the most to achieve the possibilities towards our goal,,,,,!!!except the CPU!!!!)

in local test, it succeeded in booting into the Mojave desktop(though not perfectly, see below)

 

4,after that i managed to upload the finished zipped 7.8G image to remote ECS disk, in hoping that it would also work in remote ECS, maybe it would work neverless, or maybe it would work in endless further debuging processes

 

(grub2+memdisk to load the clover.iso,I also made a tinycorelinux live system in the image to allow updating the first edition config.plist I put into the EFI directory)

1558130290_2020-05-0410_24_01.thumb.png.b9c6a635fe6dba55824b91af5ca713c0.png

 

(the clover menu)

347907456_2020-05-0410_24_25.thumb.png.90f31d5098aec221d8568fef0a9f33e8.png

 

 

 

 

 

Edited by minlearn

2) hardware and software configuration, boot scripts,clover config, other resources involved:

 

you may guess both the vm and ecs configurations here

 

(boot.sh to boot the vm in local test)

qemu-system-x86_64 -enable-kvm \
-machine pc-i440fx-2.1 \
-cpu Penryn,kvm=off,vendor=GenuineIntel \
-m 990 \
-device cirrus-vga,bus=pci.0,addr=0x2 \
-usb -device usb-kbd -device usb-mouse \
-device virtio-blk-pci,bus=pci.0,addr=0x5,drive=MacHDD \
-drive id=MacHDD,if=none,cache=writeback,format=raw,file=./osxkvm10146 \
-device virtio-net-pci,bus=pci.0,addr=0x3,mac='52:54:00:c9:18:27',netdev=MacNET \
-netdev bridge,id=MacNET,br=virbr0,"helper=/usr/lib/qemu/qemu-bridge-helper"

 

(the clover config.plist used both in vm test and remote ecs host test)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>

        <key>RtVariables</key>
        <dict>
                <key>BooterConfig</key>
                <string>0x28</string>
                <key>CsrActiveConfig</key>
                <string>0x67</string>
        </dict>

        <key>GUI</key>
        <dict>
                <key>ScreenResolution</key>
                <string>1024x768</string>
                <key>TextOnly</key>
                <true/>
                <key>ConsoleMode</key>
                <string>Min</string>
        </dict>

        <key>Boot</key>
        <dict>
                <key>Arguments</key>
                <string>Kernel="kernel" "Graphics Mode"="1024x768" "Boot Graphics"=No "Text Mode"=Yes -v debug=0x100</string>
                <key>DefaultVolume</key>
                <string>OSXKVM</string>
                <key>Timeout</key>
                <integer>10</integer>

                  <key>Debug</key>
                <true/>
                <key>Log</key>
                <true/>
        </dict>

        <key>SystemParameters</key>
        <dict>
                <key>InjectKexts</key>
                <string>Detect</string>
                <key>NoCaches</key>
                <string>No</string>
        </dict>

        <key>KernelAndKextPatches</key>
        <dict>
                <key>KernelToPatch</key>
                <array>
                        <dict>
                        </dict>
                <array/>

                <key>Debug</key>
                <true/>
        </dict>

        <key>SMBIOS</key>
        <dict>
                <key>BiosReleaseDate</key>
                <string>12/22/2016</string>
                <key>BiosVendor</key>
                <string>Apple Inc.</string>
                <key>BiosVersion</key>
                <string>IM142.88Z.0118.B17.1612221936</string>
                <key>Board-ID</key>
                <string>Mac-27ADBB7B4CEE8E61</string>
                <key>Family</key>
                <string>iMac</string>
                <key>Manufacter</key>
                <string>Apple Inc.</string>
                <key>Manufacturer</key>
                <string>Apple Inc.</string>
                <key>ProductName</key>
                <string>iMac14,2</string>
                <key>SerialNumber</key>
                <string>C02KK5W9F8J2</string>
                <key>Version</key>
                <string>1.0</string>

                <key>Mobile</key>
                <false/>
        </dict>

</dict>
</plist>

 

 

 

 

Edited by minlearn

3) testing pics

 

test begin, clover rebooting works both at local vm and remote ecs

 

(in vm , after clover prebooting finished, a white screen occupy whole the "Darwin kernel verbose" lifetime )

 

125616z7x0e475bm3mgein.thumb.png.32322ee2e254a7ed32dd23958994d632.png

 

 

(in vm ,after the white screen, it finally succeeded in booting the desktop:)

 

125654norj3x36fajobueb.thumb.jpg.9658480fdbca9d56fb8b83fab2dba5fc.jpg

 

(but in the remote ecs,after clover prebooting finished , it just hang at "random seed,+++++" just like what often happened wherelse,sometimes end with an auto system reboot)

 

I also got the F2->debug.log file under 2 tests:

 

debuginvm.log

 

3:246  0:000  === [ GetCPUProperties ] ==================================
3:246  0:000  CPU Vendor = 756E6547 Model=10673
3:246  0:000   The CPU supported SSE4.1
3:247  0:000  BrandString = Intel Core 2 Duo P9xxx (Penryn Class Core 2)
3:247  0:000   The CPU not supported turbo
3:247  0:000  MSR dumps:
3:247  0:000  	@0x00CD=3
3:247  0:000  	@0x0198=400000003E8
3:247  0:000  FSBFrequency = 942 MHz, DMI FSBFrequency = 0 MHz, Corrected FSBFrequency = 942 MHz
3:247  0:000  MaxDiv/MinDiv: 3.0/6
3:247  0:000  Turbo: 4/0/0/0
3:247  0:000  Features: 0x078BFBFD
3:247  0:000  Threads: 1
3:247  0:000  Cores: 1
3:247  0:000  FSB: 942 MHz
3:247  0:000  CPU: 2826 MHz
3:247  0:000  TSC: 2826 MHz
3:247  0:000  PIS: 3768 MHz
3:247  0:000  ExternalClock: 942 MHz
 === [ GetAcpiTablesList ] =================================
28:852  3:726  Get Acpi Tables List from RSDT:
29:137  0:285   - [00]: FACP  BXPCFACP len=116
29:257  0:120   - [01]: SSDT  BXPCSSDT len=3065
29:455  0:197   - [02]: APIC  BXPCAPIC len=120
29:537  0:082   - [03]: HPET  BXPCHPET len=56
29:712  0:174  Calibrated TSC Frequency = 2825957220 = 2825MHz
83:558  0:027  === [ PatchSmbios ] =======================================
87:440  3:881  SmbiosTable: Type 2 (BaseBoard Information) not found, create new
87:521  0:080  insert table 9 for dev 3:0
87:687  0:166  Trusting SMBIOS...
87:793  0:106  Channels: 1
87:897  0:104  Interleave: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
90:199  2:301   partNum unknown
90:271  0:071  SMBIOS Type 17 Index = 0 => 0 0:
90:388  0:117  BANK 0 DIMM0 0MHz 990MB
90:591  0:202  mTotalSystemMemory = 990
90:690  0:099  NumberOfMemoryDevices = 1
90:829  0:139  === [ PatchACPI ] =========================================
94:637  3:807  Xsdt is not found! Creating new one
94:714  0:076  RsdPointer is Acpi 1.0 - creating new one Acpi 2.0
94:833  0:119  RsdPointer Acpi 2.0 installed
94:961  0:128  RSDT entries = 4
95:255  0:293  Xsdt reallocation done
95:403  0:148  old FADT length=74
95:470  0:066   SignatureFixup: 0x0 -> 0x0
95:536  0:066  Apply DsdtFixMask=0x00000000
95:914  0:378     drop _DSM mask=0xFFFF
96:037  0:123  === [ FixBiosDsdt ] =======================================
100:303  4:266    0 replacements
100:392  0:088  PreCleanup XSDT: count=4, length=68
100:653  0:261  PreCleanup XSDT, corrected XSDT: count=4, length=68
100:764  0:110  === [ ACPIDropTables ] ====================================
105:483  4:719    0 replacements
105:554  0:070  CPUBase=0 and ApicCPUBase=0 ApicCPUNum=1
105:630  0:075  Cleanup XSDT: count=4, length=68
105:822  0:191  corrected XSDT count=4, length=68

 

debugecs.log

 

0:755  0:000  === [ GetCPUProperties ] ==================================
0:755  0:000  CPU Vendor = 756E6547 Model=50657
0:755  0:000   The CPU supported SSE4.1
0:755  0:000  BrandString = Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
0:755  0:000  got cores from CPUID_1 = 2
0:755  0:000   The CPU not supported turbo
0:755  0:000   TSC/CCC Information Leaf:
0:755  0:000    numerator     : 200
0:755  0:000    denominator   : 2
0:755  0:000   Calibrated ARTFrequency: 25000942
0:755  0:000   Rounded ARTFrequency: 25100000
0:755  0:000  FSBFrequency = 100 MHz, DMI FSBFrequency = 0 MHz, Corrected FSBFrequency = 100 MHz
0:755  0:000  MaxDiv/MinDiv: 25.0/6
0:755  0:000  Turbo: 0/0/0/0
0:755  0:000  Features: 0x1F8BFBFF
0:755  0:000  Threads: 2
0:755  0:000  Cores: 2
0:755  0:000  FSB: 100 MHz
0:755  0:000  CPU: 2500 MHz
0:755  0:000  TSC: 2500 MHz
0:755  0:000  PIS: 400 MHz
0:755  0:000  ExternalClock: 100 MHz
=== [ GetAcpiTablesList ] =================================
4:035  0:441  Get Acpi Tables List from RSDT:
4:062  0:026   - [00]: FACP  BXPCFACP len=116
4:076  0:014   - [01]: SSDT  BXPCSSDT len=3107
4:090  0:013   - [02]: APIC  BXPCAPIC len=120
4:105  0:014   - [03]: SRAT  BXPCSRAT len=184
4:118  0:013  Calibrated TSC Frequency = 2500094240 = 2500MHz
21:134  0:011  === [ PatchSmbios ] =======================================
21:670  0:535  SmbiosTable: Type 2 (BaseBoard Information) not found, create new
21:681  0:010  insert table 9 for dev 5:0
21:693  0:011  Trusting SMBIOS...
21:704  0:011  Channels: 1
21:713  0:008  Interleave: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
22:060  0:347   partNum unknown
22:073  0:013  SMBIOS Type 17 Index = 0 => 0 0:
22:089  0:015  BANK 0 DIMM0 0MHz 1024MB
22:101  0:011  mTotalSystemMemory = 1024
22:115  0:014  NumberOfMemoryDevices = 1
22:127  0:011  === [ PatchACPI ] =========================================
22:680  0:552  Xsdt is not found! Creating new one
22:695  0:015  RsdPointer is Acpi 1.0 - creating new one Acpi 2.0
22:712  0:016  RsdPointer Acpi 2.0 installed
22:729  0:016  RSDT entries = 4
22:743  0:013  Xsdt reallocation done
22:759  0:016  old FADT length=74
22:775  0:015   SignatureFixup: 0x0 -> 0x0
22:791  0:015  Apply DsdtFixMask=0x00000000
22:804  0:013     drop _DSM mask=0xFFFF
22:816  0:011  === [ FixBiosDsdt ] =======================================
23:291  0:474    0 replacements
23:302  0:011  PreCleanup XSDT: count=4, length=68
23:320  0:018  PreCleanup XSDT, corrected XSDT: count=4, length=68
23:334  0:013  === [ ACPIDropTables ] ====================================
23:871  0:537    0 replacements
23:883  0:012  CPUBase=0 and ApicCPUBase=0 ApicCPUNum=1
23:895  0:011  Unsupported CPU (0x6): P-States not generated !!!
23:907  0:011  GeneratePStates failed: Status=Not Found
23:920  0:013  SSDT with CPU C-States generated successfully
23:930  0:009  Cleanup XSDT: count=5, length=76
23:943  0:013  corrected XSDT count=5, length=76

 

Edited by minlearn

so what may cause it fails in remote ECS while it works under a local VM, if it is the different cpu model resulted this, how can I debug to solve it, or any other clues?

 

look forwards your reply and help!

 

regards

×
×
  • Create New...