Why my macOS Monterey raw image does not boot in VirtualBOX using the dd image file of the opencore USB disk ?

  • Hello to everyone.


    Currently I'm using FreeBSD 13.1-RELEASE,but sometimes I enjoy myself using MacOS Monterey that I have installed in one of my SSD disk. Precisely,this is the SSD disk where I have installed it :


    Code
    1. =>       34  976773101  ada1  GPT  (466G)
    2.          34          6        - free -  (3.0K)          
    3. 40     409600     1  efi  (200M)  
    4. 409640  488543392     2  apple-apfs  (233G)  
    5. 488953032  487820096     3  apple-apfs  (233G)
    6. 976773128          7        - free -  (3.5K)


    and this is the USB stick where I have installed opencore :


    Code
    1. => 34 120845233 da5 GPT (58G)
    2. 34 6 - free - (3.0K)
    3. 40 409600 1 efi (200M)
    4. 409640 28625096 2 apple-hfs (14G)
    5. 29034736 91810531 - free - (44G)


    Now I would like to boot Monterey that I have installed on ada1,that usually is capable to boot physically using the USB stick that I've created following the opencore tutorial,directly in VirtualBOX,giving the USB stick as a OPTICAL disk and the SSD disk as SATA disk.


    r/macOSVMs - Why my macOS Monterey raw image does not boot in VirtualBOX using the dd image file of the opencore USB disk ?

    r/macOSVMs - Why my macOS Monterey raw image does not boot in VirtualBOX using the dd image file of the opencore USB disk ?


    This is what I did to be able to accomplish the task :


    Code
    1. # VBoxManage internalcommands createrawvmdk -filename "/root/VirtualBox VMs/EVO.vmdk" -rawdisk /dev/ada1
    2. # VBoxManage internalcommands createrawvmdk -filename "/root/VirtualBox VMs/opencore.vmdk" -rawdisk /dev/da5


    but it fails to boot. So,I tried another approach,doing :


    Code
    1. dd if=/dev/da5 of=opencore.iso


    and I've attached the ISO file to the VirtualBOX / Monterey VM created previously. Unfortunately also in this case,it does not boot. I've read that an img file is basically the same as an iso file. So,why it fails to boot ?