maximedrn / macos-catalina-on-virtualbox-windows

Small tutorial with all the sources that allowed me to install macOS Catalina on VirtualBox under Windows.
https://maximedrn.github.io/macos-catalina-on-virtualbox-windows/
MIT License
2 stars 4 forks source link

compatibility w/ Linux? #1

Open Lvceo opened 1 year ago

Lvceo commented 1 year ago

Hi Maxime,

I'm trying to do the same for Linux. Do you have any insight?

I followed your Readme, but stuck here Screenshot from 2023-02-15 15-02-42

maximedrn commented 1 year ago

Hi, at what step exactly?

Lvceo commented 1 year ago

Once VM created. After all commands adapted to Linux :

$ VBoxManage modifyvm "MacOSX" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
$ VBoxManage setextradata "MacOSX" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
$ VBoxManage setextradata "MacOSX" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
$ VBoxManage setextradata "MacOSX" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
$ VBoxManage setextradata "MacOSX" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
$ VBoxManage setextradata "MacOSX" VBoxInternal2/EfiGraphicsResolution 1920x1080
$ VBoxManage modifyvm "MacOSX" --vram 256

Then Starting the VM with all the parameters you suggested, but NOT VMSVGA in Graphics controller as VirtualBox inform it's "Invalid settings detected". Rest seems to be OK for the VM conf. Running Linux 5.15 on Manjaro. Here is an extract of my VM infos.

$ VBoxManage list --long vms
Name:                        MacOSX
Encryption:     disabled
Groups:                      /
Guest OS:                    Mac OS X (64-bit)
UUID:                        a3300b3e-4d03-41f0-b489-c90218f6bc65
Config file:                 /home/virtualbox/MacOSX/MacOSX.vbox
Snapshot folder:             /home/virtualbox/MacOSX/Snapshots
Log folder:                  /home/virtualbox/MacOSX/Logs
Hardware UUID:               a3300b3e-4d03-41f0-b489-c90218f6bc65
Memory size:                 8192MB
Page Fusion:                 disabled
VRAM size:                   256MB
CPU exec cap:                100%
HPET:                        enabled
CPUProfile:                  host
Chipset:                     piix3
Firmware:                    EFI
Number of CPUs:              4
PAE:                         enabled
Long Mode:                   enabled
Triple Fault Reset:          disabled
APIC:                        enabled
X2APIC:                      disabled
Nested VT-x/AMD-V:           disabled
CPUID Portability Level:     0
CPUID overrides:             Leaf no.      EAX      EBX      ECX      EDX
                             00000001/000  000106e5 00100800 0098e3fd bfebfbff
Boot menu mode:              message and menu
Boot Device 1:               Floppy
Boot Device 2:               DVD
Boot Device 3:               HardDisk
Boot Device 4:               Not Assigned
ACPI:                        enabled
IOAPIC:                      enabled
BIOS APIC mode:              APIC
Time offset:                 0ms
BIOS NVRAM File:             /home/virtualbox/MacOSX/MacOSX.nvram
RTC:                         UTC
Hardware Virtualization:     enabled
Nested Paging:               enabled
Large Pages:                 enabled
VT-x VPID:                   enabled
VT-x Unrestricted Exec.:     enabled
AMD-V Virt. Vmsave/Vmload:   enabled
IOMMU:                       None
Paravirt. Provider:          Default
Effective Paravirt. Prov.:   Minimal
State:                       powered off (since 2023-02-15T14:09:28.597000000)
Graphics Controller:         VMSVGA
Monitor count:               1
3D Acceleration:             disabled
2D Video Acceleration:       disabled
Teleporter Enabled:          disabled
Teleporter Port:             0
Teleporter Address:          
Teleporter Password:         
Tracing Enabled:             disabled
Allow Tracing to Access VM:  disabled
Tracing Configuration:       
Autostart Enabled:           disabled
Autostart Delay:             0
Default Frontend:            
VM process priority:         default
Storage Controllers:
#0: 'SATA', Type: IntelAhci, Instance: 0, Ports: 4 (max 30), Bootable
  Port 0, Unit 0: UUID: c6d3f942-7cca-4173-94c4-04d356e54850
    Location: "/home/virtualbox/MacOSX/MacOSX.vdi"
  Port 1, Unit 0: Empty
  Port 2, Unit 0: UUID: 6de3811d-c3c9-4e00-a105-8a1b4cf92dd2
    Location: "/home/sab/Downloads/macOS Catalina 10.15.5 (19F101).iso"
  Port 3, Unit 0: UUID: 4b77acfa-eac9-4045-8c5e-aebafb037df1
    Location: "/home/virtualbox/MacOSX/Boot.vmdk"
NIC 1:                       MAC: 0800272B7BE6, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82545EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings:  MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2:                       disabled
NIC 3:                       disabled
NIC 4:                       disabled
NIC 5:                       disabled
NIC 6:                       disabled
NIC 7:                       disabled
NIC 8:                       disabled
Pointing Device:             USB Tablet
Keyboard Device:             USB Keyboard
UART 1:                      disabled
UART 2:                      disabled
UART 3:                      disabled
UART 4:                      disabled
LPT 1:                       disabled
LPT 2:                       disabled
Audio:                       enabled (Driver: Default, Controller: HDA, Codec: STAC9221)
Audio playback:              enabled
Audio capture:               disabled
Clipboard Mode:              disabled
Drag and drop Mode:          disabled
VRDE:                        disabled
OHCI USB:                    disabled
EHCI USB:                    disabled
xHCI USB:                    enabled
USB Device Filters:          <none>
Bandwidth groups:            <none>
Shared folders:              <none>
Recording enabled:           no
Recording screens:           1
 Screen 0:
    Enabled:                 yes
    ID:                      0
    Record video:            yes
    Destination:             File
    File:                    /home/virtualbox/MacOSX/MacOSX-screen0.webm
    Options:                 vc_enabled=true,ac_enabled=false,ac_profile=med
    Video dimensions:        1024x768
    Video rate:              512kbps
    Video FPS:               25fps
* Guest:
Configured memory balloon:   0MB
maximedrn commented 1 year ago

The VMSVGA graphics controller seems to be necessary for macOS to boot

Lvceo commented 1 year ago

Do you have any references regarding this point?

maximedrn commented 1 year ago

VMSVGA emulates the VMware Workstation graphics adapter with the “VMware SVGA 3D” acceleration method.

From https://intoguide.com/install-vm-tool-virtualbox-macos-catalina/ Moreover, all the tutorials say to use this graphic controller even if it is reported as an invalid parameter.

Lvceo commented 1 year ago

Thanks @maximedrn to confirm for VMSVGA. Anyway I'm still not able to go any further right now, VM got stuck at the same point as mentioned before (screenshot). May be it's related to Linux Host. It would work w/ Windows Host but not Linux :thinking: ...

maximedrn commented 1 year ago

image From https://najigram.com/2022/01/run-macos-in-virtualbox-on-linux-os/

This tutorial recommends VBoxVGA. Maybe the issue comes from your Linux: something is missing for VirtualBox so macOS cannot run as it should.

Lvceo commented 1 year ago

Thanks again @maximedrn for this comment & screenshot, If this VM is working under Linux, it's a great news. Could you provide me the


$ uname -a
``` output please?

I also noticed the "Chipset Type" is ICH9, which was not the setting mentioned in the first tutorial.

By the way, it seems the VDI connected to SATA port 0, is alone, and there is no boot VDI anymore, is you configuration working that way too?