Restarting 32-bit macOS Applications Using VirtualBox

Guide Emulators by Emuzone

Un écran affichant le menu de démarrage du jeu "Smash Court Tennis Histoires de Bushido" sur un émulateur Rainé sous système d'exploitation macOS
vbox3203.png

The solution, if it does not require 3D acceleration or other hardware-specific features, could once again come from VirtualBox (used here for its free availability, although Parallels Desktop and VMware Fusion, both paid, are also capable).

vbox3201.png

We had already seen how to use this software to install an old Windows or an older macOS in order to run PowerPC applications via Rosetta (see our dossiers on SheepShaver for so-called Classic applications). Here, we will try to install a more recent macOS version in the hope of benefiting from its 32-bit support.

vbox3202.png

If you are familiar with our dossiers and have already used those dealing with VirtualBox, this should not pose too much of a problem, except that... You will need an installation disk image of your macOS, and on the Apple Store, only applications are available.

vbox3203bis.png

You will therefore need to convert your installation application into a disk image, which will require some operations. We will do this with macOS 10.11, El Capitan (currently, VirtualBox supports Intel macOS from 10.5 to 10.13 and theoretically 10.4).

vbox3204.png

This operation, known to Apple specialists and found on French-speaking sites, will require the use of the Terminal, and we will also describe these manipulations for you, assuming that the macOS installation application is located in your Applications folder. Start by opening a terminal, available in Utilities.

vbox3205.png

Run the first command to mount the installation disk image contained within the application:

hdiutil attach /Applications/Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app

vbox3206.png

Next, we will create a large enough image to hold the files. Since the installer is almost 7 GB, we'll take a bit of margin and set it to 7500 Mo: hdiutil create -o ~/Documents/ElCapitan.cdr -size 7500m -layout SPUD -fs HFS+J

vbox3207.png

This image should appear in your Documents folder.

vbox3208.png

Next, we will mount this image:

hdiutil attach ~/Documents/ElCapitan.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build

vbox3209.png

Let's proceed with the Apple Software Restore command to apply the content of the installation disk image to our working partition:

asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase

vbox3210.png

Once completed, a disk image named « OS X Base System » should appear.

vbox3211.png

We will then remove the packages:

rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages

vbox3212.png

We will then copy the essential elements from the installer into this new disk image using the following three commands:

cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/ ;
cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist ;
cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/BaseSystem.dmg ;

vbox3213.png

Once done, you can unmount the first image:

hdiutil detach /Volumes/install_app

vbox3214.png

Then the second one:

hdiutil html

detach /Volumes/OS X Base System/

vbox3215.png

All that remains is to convert the created image into an ISO using the following command:
hdiutil convert ~/Documents/ElCapitan.cdr.dmg -format UDTO -o ~/Documents/ElCapitan.iso

vbox3216.png

Here are the two disk images below.
You can delete the first one and rename the second one with the final extension « iso », which will be your image for installing OSX on VirtualBox.

vbox3217.png

Let's now launch VirtualBox.

vbox3218.png

First, check that the extensions are installed.

For this, click on the key named « Settings ». Choose the « Extensions » tab and verify, as shown below, that you have the « Oracle VM VirtualBox Extension Pack » corresponding to your version of VirtualBox installed and active. If this is not the case, go to the official website to download the extensions for your version of VirtualBox: https://www.virtualbox.org/wiki/Downloads.
vbox3219.png

Return to VirtualBox and click on the green plus sign button on the right.

vbox3220.png

Select the recently retrieved extension file.

vbox3221.png

Confirm the installation of this file.

vbox3222.png

To accept the license, you will need to scroll down to the bottom, simulating a full reading of the text, which you will undoubtedly do.

vbox3223.png

You will need to elevate your privileges to administrator to install this extension.

vbox3224.png

This installation should be quick and pose no problems.

vbox3225.png

Check again that you have the « Oracle VM VirtualBox Extension Pack » corresponding to your version of VirtualBox installed and active.

vbox3226.png

Close this window and return to the main one to click on the checkbox button to the right of « Tools », then click on « Network ».

vbox3227.png

Create a virtual interface by simply clicking on the green button accompanied by The button labeled "Create" appears next to the plus sign.

vbox3228.png

A new interface named vboxnet0 appears. To simplify its later use, click on « Enable » to start the DHCP server, so you have a configuration like the one shown in the image below.

vbox3229.png

Return to VirtualBox's home page by clicking again on the « Tools » button and selecting the page named « Welcome ».

vbox3230.png

The main step begins: create a virtual machine. To do this, click on the blue star labeled « New ».

vbox3231.png

Give your virtual machine a name, specify that the installed system will be OSX, and choose from the list the version of the OS that will be installed. Adjust the allocated RAM as you wish and according to the use you will make of your virtual machine, while making sure not to leave your physical machine resource-starved. Then click on « Create ».

vbox3232.png

Choose the location of the file representing the hard drive, as well as its maximum size and whether you want it to be dynamic or not, and also the file type if you want to be able to use it with other emulators.

Once done, click on « Create » again.

vbox3233.png

The virtual machine is then created, but it is not yet fully ready; select your virtual machine and click on the yellow gear labeled « Settings »

vbox3234.png

Choose the « System » menu, then in the « Motherboard » tab, uncheck the « Floppy » in the boot order and move it to the lowest position.

vbox3235.png

Click especially on the « Processor » tab to verify that there is only one but also that the only active one is at least at 100% and that the PAE/NX function is enabled.

vbox3236.png

Then choose the « Display » menu and in the « Screen » tab, select the video memory you wish to allocate and whether you want to enable 3D acceleration.

vbox3237.png

Move on to the « Storage » menu, and select the virtual optical drive. Click on the small icon representing an optical disc to choose the addition of a file.

vbox3238.png

Select the disk image containing the OSX installation.

vbox3239.png

The disk will then be considered inserted during the next boot.

vbox3240.png

You can also go into the « Audio » menu if you wish to disable it or enable the microphone, or modify the driver and the type of simulated controller.

vbox3241.png

Let's move on to the « Network » menu.

If you wish to share your Mac's Internet connection with your virtual Mac, make sure in the « Adapter 1 » tab that the interface is enabled and the access mode is set to « NAT ».

vbox3242.png

You may also want to transfer files between your guest OSX and the host OSX. To do this, click on the « Adapter 2 » tab, enable the network interface, and select the access mode « Host-Only Network ». Normally, the only available interface should be the one created at the beginning of the tutorial, namely « vboxnet0 ».

vbox3243.png

In the « Ports » menu, you can choose to enable or disable USB support. This is also where USB devices will appear, and where you can apply filters so that the host machine captures them or, conversely, allows the physical machine to manage them.

vbox3244.png

Here is your virtual machine configured. Click the « OK » button to confirm everything and return to the list of virtual machines.

vbox3245.png

Launch your machine by clicking the green arrow « Start ».
The console mode boot process may take some time.

vbox3246.png

However, booting from the disk image should proceed.

vbox3247.png

Here you are, the installer launches and asks you to choose a language.

vbox3248.png

The system configuration will begin. Click on « Continue » when the splash screen appears.

vbox3249.png

Even though you don’t need to scroll to click the « Continue » button, make sure to read the license carefully.

vbox3250.png

Accept it.

vbox3251.png

The first issue is that the hard drive is not usable. To start, improve your interface by switching the keyboard to French.

vbox3252.png

Now is the time to deal with the disk by opening the Disk Utility.

vbox3253.png

Select the disk « VBOX HARDDISK Media » and click the « Erase » button.

vbox3254.png

Give a name to your hard drive and leave the format and scheme as default before clicking the « Erase » button.

vbox3255.png

Once done, you can quit the Disk Utility.

vbox3256.png

Your disk is then selectable, which you must do, and thus continue the installation.

vbox3257.png

And there you go, you just have to wait.

vbox3258.png

Except that it may not be the case, an error prevents you from installing OSX.
Why?

vbox3259.png

If you go back to the top of the tutorial during the ISO creation, you may have noticed that my installer is from 2015, except that Apple applies authentication certificates to these applications, which is good, but with a time limit. Does this mean you have to download a new installer again, from an outdated OS of several gigabytes, and create a new ISO all over again? Not necessarily. If this is your case, gently click on « Restart ». Then follow the initial steps as before, making sure to set the keyboard to French, until you reach the point of selecting the installation disk. Open a terminal.

vbox3260.png
Change your Mac host's date using the `date` command as follows: « date MMJJhhmmAA ». Here, our installer from 2015, we will set the date to April 20, 2015, at 14:00, and use the command « date 0420140015 ».
vbox3261.png
Once done, you can exit the terminal and continue the installation as before.
vbox3262.png
Here we have a correctly installed OS X.
vbox3263.png
The selection of options begins now.
vbox3264.png
If you have enabled NAT for internet sharing, keep the default connection type. If you don’t want internet access on your machine, simply select it via the panel below.
vbox3265.png
In the case of connection sharing, leave the default configuration and proceed. The configuration should complete successfully.
vbox3266.png
Regarding the data transfer panel, we have not tested it from a Windows PC, nor from a Time Machine backup or boot disk. Maybe another time. If you have succeeded with one method or another, feel free to let us know.

vbox3267.png

As for the localization service, it clearly doesn’t offer much interest on a host OS; it’s better to have done it on your physical Mac’s OS.

vbox3268.png

Once again, because we prefer reading—especially terms of service—we accept them.

vbox3269.png

Create an administrator account for your OS X.

vbox3270.png

All that remains is to perform the usual settings, that is, the time zone.

vbox3271.png

And the data.

vbox3272.png

OS X finally launches...

vbox3273.png

...And attempts to detect your keyboard.

vbox3274.png

As requested, press the key next to the left « Shift » key.

vbox3275.png

With your keyboard correctly identified, you can click on « Done ».

vbox3276.png

You can eject the disk; we won’t need it anymore.

vbox3277.png

You may have had to modify the date to install your system; if that’s the case...

vbox3278.png

...Don’t forget to update the date and time of your OS X if needed.

vbox3279.png

Open or keep open the host system preferences.

vbox3280.png

If it seems necessary, you can open the panel

Security and Privacy

vbox3281.png

Then click on « Share » and enable file sharing.

vbox3282.png

Go back to your host system preferences and click on « Network », then choose the second interface. Note the IP address.

vbox3283.png

Return to your Mac's Finder, and in the « Go » menu, click on « Connect to Server… » or use the shortcut « command + k ».

vbox3284.png

A window will open, where you need to enter the connection protocol followed by the machine's address. For Apple File Protocol sharing, the protocol name is afp and for the machine, it will be the IP address you noted earlier, such as « afp:// ». In our case « afp://192.168.56.3 ».

vbox3285.png

After correctly filling in the field and validating, the connection attempt will start.

vbox3286.png

You will need to validate this connection.

vbox3287.png

Once the server is found, you will need to log in with the host machine's user account by entering the account name and associated password.

vbox3288.png

Normally, the system should prompt you for the shared folder you wish to access.

Make your choice; as for us, we will use the public folder of the host account.

vbox3289.png

You can now access a shared folder from the host macOS system on your Mac.

vbox3290.png

You can copy 32-bit files and applications there, for example.

vbox3291.png

They will end up on the host Mac.

vbox3292.png

And there you have your 32-bit application back in operation.

vbox3293.png

Finally, with a bit of luck, as this certainly won't be the case for all.

vbox3294.png

Above, the display works only because it was necessary to modify Raine's options so that it does not use the default graphics library, which is OpenGL.

vbox3295.png

To conclude, I repeat once again, but emulation will never be as precise as the original hardware, and in addition to sometimes being resource-intensive, slowing down your Mac or making your macOS sluggish—since the graphics card is not fully managed, especially in 3D—do not expect miracles from software and games that fully utilize this type of resource. However, here is a simple and inexpensive solution to enjoy 32-bit software that will no longer be updated by the publisher for various reasons, despite Apple's abandonment of the architecture with the switch to Catalina.

Related software

Reply on the forum

A question or a hands-on report? Open the discussion on the forum.

Reply on the forum