VBox VM using EFI on Mac running OCLP

This is for discussing general topics about how to use VirtualBox.
Post Reply
Nap
Posts: 30
Joined: 22. Jul 2014, 02:06

VBox VM using EFI on Mac running OCLP

Post by Nap »

[Macbook Pro Retina 15" mid-2014 (11.3), Ventura 13.3.1, OCLP 0.6.7]

Disclaimer In order to extend the useful life of my Macbook, I decided to make use of OpenCore Legacy Patcher (OCLP). With OCLP, I am able to run Ventura and I'm satisfied with it overall. Having said that, I'm not sure if my Virtual Box issues have anything to do with OCLP but I just wanted to make this disclaimer just in case.

I'm having problems running guest VMs with Virtual Box 7.0.x. None of the machines I used to use with VBox 6.1.22 (when I was running Catalina 10.15.6) run any more under 7.0.x and because I'm worried that I might corrupt these old machines I stopped trying after a few initial fails. After trying VBox 7.0.8 and having problems, I decided to try v7.0.2 and that's what I'm working with now. In each case I have installed the Extension Pack for the VBox version.

When preparing to make this post I figured I should get my ducks lined up. Thus I tried installing Ubuntu 22.04.1-Desktop LTS without EFI and it worked fine. I then tried to install Debian 12 machine using the debian-12.0.0-amd64-DVD-1.iso but it would not work no matter what I tried. I first tried using the unattended install; it crashed almost immediately with EFI but it got to a point where it flashed the blue option screen without EFI but then crashed. I then tried skipping the unattended install and used all default options except I changed the n/w to bridged. With EFI it crashed immediately after starting the VM. When I tried again without EFI, the machine did boot and showed me the install options menu. I gave up trying to install Debian 12 after unsuccessfully trying the Graphical Install and normal Install options. So no Debian for me for now.

Though I've been using Virtual Box on and off for over a decade, the reason for doing all this right now is that I need to be able to demonstrate Home Assistant (HA) running in a VM to my students, and HA is based on Debian and, according to the HA installation instructions, requires EFI.

So, my question is, what could be the issue I'm having with EFI? I have attached the VBox generated logfile of my HA machine's execution from startup with this post. There are a few things in it that I see which could be of interest, but not being across the low level execution details, I don't know which of them is significant.

Any help would be appreciated.
Attachments
HA2023-10.3-2023-07-17-02-25-00.log
(56.57 KiB) Downloaded 231 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VBox VM using EFI on Mac running OCLP

Post by mpack »

VirtualBox v7.x is known to have problems running under OCLP+Ventura.

To be precise, VirtualBox v7.x needs the Apple Hypervisor to be available to run under Ventura, and the Apple Hypervisor apparantly does not work properly under OCLP.

Executive summary: only official host OS's are tested and supported. An install of Ventura hacked to run with the wrong hardware I'm afraid does not count.
marcoslaredo
Posts: 1
Joined: 7. Dec 2023, 21:41

Re: VBox VM using EFI on Mac running OCLP

Post by marcoslaredo »

I was reading at apple Hypervisor docs that it need to have full access to Extended Page Tables and Unrestricted Mode, so I went to my OCLP -> settings -> Security and marked the ALLOW_UNRESTRICTED_DTRACE and ALLOW_UNRESTRICTED_NVRAM options and builded and reinstalled the OCLP.
Now I have VirtualBox 7.0 running well on my "vintage" Mac Mini 2012, running Sonoma 14.1.2
Attachments
Screenshot 2023-12-07 at 21.43.12.jpg
Screenshot 2023-12-07 at 21.43.12.jpg (94.02 KiB) Viewed 2698 times
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VBox VM using EFI on Mac running OCLP

Post by scottgus1 »

Thanks, marcoslaredo, for the information! If this is reproducible, I'm sure a lot of old-Mac-new-OS users will rejoice.
Post Reply