Changes between Version 1 and Version 2 of jazz/Hackintosh


Ignore:
Timestamp:
May 28, 2024, 12:29:35 PM (6 months ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/Hackintosh

    v1 v2  
    3838See "man sudo_root" for details.
    3939}}}
     40* 安裝必要的套件 Install QEMU and other packages.
     41  * 由於 qemu 在 Ubuntu 22.04 LTS 是 dummy package, 在 Ubuntu 24.04 LTS 已經沒有這個套件。先拿掉再來看到底程式會用到什麼 QEMU 指令。
     42{{{
     43ubuntu@ip-172-31-18-147:~$ sudo apt-get update
     44ubuntu@ip-172-31-18-147:~$ sudo apt-get install uml-utilities virt-manager git \
     45    wget libguestfs-tools p7zip-full make dmg2img tesseract-ocr \
     46    tesseract-ocr-eng genisoimage vim net-tools screen -y
     47}}}
     48{{{
     49ubuntu@ip-172-31-18-147:~$ cd ~; git clone --depth 1 --recursive https://github.com/kholia/OSX-KVM.git; cd OSX-KVM
     50Cloning into 'OSX-KVM'...
     51remote: Enumerating objects: 639, done.
     52remote: Counting objects: 100% (639/639), done.
     53remote: Compressing objects: 100% (563/563), done.
     54remote: Total 639 (delta 46), reused 611 (delta 37), pack-reused 0
     55Receiving objects: 100% (639/639), 30.11 MiB | 31.63 MiB/s, done.
     56Resolving deltas: 100% (46/46), done.
     57Submodule 'resources/OcBinaryData' (https://github.com/acidanthera/OcBinaryData.git) registered for path 'resources/OcBinaryData'
     58Cloning into '/home/ubuntu/OSX-KVM/resources/OcBinaryData'...
     59remote: Enumerating objects: 1190, done.       
     60remote: Counting objects: 100% (398/398), done.       
     61remote: Compressing objects: 100% (381/381), done.       
     62remote: Total 1190 (delta 23), reused 32 (delta 16), pack-reused 792       
     63Receiving objects: 100% (1190/1190), 67.73 MiB | 25.41 MiB/s, done.
     64Resolving deltas: 100% (149/149), done.
     65Submodule path 'resources/OcBinaryData': checked out '4e7e1b7465aae297d706afe5de5c4d1572d86917'
     66}}}
     67* 啟用 KVM 模組。 KVM may need the following tweak on the host machine to work.
     68{{{
     69ubuntu@ip-172-31-18-147:~/OSX-KVM$ git pull --rebase
     70Already up to date.
     71ubuntu@ip-172-31-18-147:~/OSX-KVM$ sudo modprobe kvm; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs
     721
     73}}}
     74* 由於確認過 CPU 是 Intel 的,就複製 kvm.conf
     75{{{
     76ubuntu@ip-172-31-18-147:~/OSX-KVM$ head /proc/cpuinfo
     77processor       : 0
     78vendor_id       : GenuineIntel
     79cpu family      : 6
     80model           : 85
     81model name      : Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
     82stepping        : 7
     83microcode       : 0x5003605
     84cpu MHz         : 2499.996
     85cache size      : 36608 KB
     86physical id     : 0
     87ubuntu@ip-172-31-18-147:~/OSX-KVM$ sudo cp kvm.conf /etc/modprobe.d/kvm.conf
     88}}}