VirtualBox

Ticket #9388 (new enhancement)

Opened 3 years ago

Last modified 17 months ago

Support Mac OS X 10.7 Lion Guest

Reported by: mackyle Owned by:
Priority: major Component: other
Version: VirtualBox 4.1.0 Keywords:
Cc: Guest type: other
Host type: Mac OS X

Description

The Mac OS X 10.7 (Lion) installer software license agreement (the regular install, not the server) states:

"... you are granted a limited, non-transferable, non-exclusive license: [...] (iii) to install, use and run up to two (2) additional copies or instances of the Apple Software within virtual operating system environments on each Mac Computer you own or control that is already running the Apple Software."

Which would seem to explicitly permit running Mac OS X 10.7 (Lion) non-server version as a guest under VirtualBox provided the VirtualBox host is also running Mac OS X.

Attempts to boot the 10.7 installer under VirtualBox 4.1.0 running on a Mac OS X system that is supported by Lion results in a

"This version of Mac OS X is not supported on this platform!"

message early in the boot process inside the virtual machine. See  http://www.macrumors.com/2011/07/18/make-an-os-x-lion-boot-disc/ for instructions on how to make a Mac OS X Lion install disk or else acquire one of the Mac OS X Lion installation bootable flash drives from AppleCare.

Attachments

VirtualBox-4.1.2_OSE-DMI-board-info-patch.diff.gz Download (1.8 KB) - added by MusicMiK 3 years ago.
Patch to provide board info needed for Lion

Change History

comment:1 in reply to: ↑ description Changed 3 years ago by Sharpie

CC Me.

Changed 3 years ago by MusicMiK

Patch to provide board info needed for Lion

comment:2 Changed 3 years ago by MusicMiK

Still testing, but the attached patch at least adds the most important stuff to make the install image boot and the installer start - both rely on the board ID.

I implemented the stuff to get the info from the host just for the darwin part, i hope other host platforms just break with this patch and i was a bit unsure about the VBOX_DMI_TABLE_SIZE. But at least it should be a good starting point :)

comment:3 Changed 3 years ago by Sharpie

I can confirm that the attached patch allows a Lion VM to boot with EFI enabled and no need for a hacked bootloader. The only hiccup I have noticed so far is that on boot the VM does hang at "Waiting for DSMOS... macx_swapon SUCCESS" for half a minute or so before "DSMOS has arrived" shows up and the VM finishes booting.

Getting Lion to install is still tricky.

comment:4 follow-up: ↓ 5 Changed 2 years ago by mitar

Tricky in what sense?

comment:5 in reply to: ↑ 4 Changed 2 years ago by Sharpie

Replying to mitar:

Tricky in what sense?

The Lion installer does not operate similar to other operating system installers. Since it is set up to do a diskless install by downloading an app and then running it, a bunch of weird Apple-specific stuff happens.

As far as I can tell, the installer writes out a bunch of data to the disk and then sets startup disk and NVRAM properties that are not typically of the installation processes for other versions of OS X or other operating systems. The VM then has to reboot under these special conditions in order for the installation to complete.

So, passing board ID is pretty simple and allows Lion to boot---but there is a bunch of unknown voodoo that has to occur in order for the installer to succeed.

comment:6 follow-up: ↓ 7 Changed 2 years ago by mitar

OK. But after the installation, should then everything else work OK? Specifically,  here it is written that there are problems with shutdown and reboot. That computer is not automatically halted or rebooted. Also "About the Mac" does not work, they say.

comment:7 in reply to: ↑ 6 Changed 2 years ago by Sharpie

Replying to mitar:

OK. But after the installation, should then everything else work OK? Specifically,  here it is written that there are problems with shutdown and reboot. That computer is not automatically halted or rebooted. Also "About the Mac" does not work, they say.

Startup/shutdown worked fine for me---aside from the half minute of hangtime while "Waiting for DSMOS". Did not try "About this Mac".

comment:8 Changed 2 years ago by BFH

Could you please explain how to install this patch?

Many thanks in advance.

comment:9 follow-up: ↓ 10 Changed 2 years ago by mackyle

Note that VMWare Fusion version 4.0 released 2011-09-14 fully supports running Mac OS X Lion in a virtual machine.

See  http://www.vmware.com/company/news/releases/vmw-fusion-091411.html for the announcement.

Also note that as of VMWare Fusion version 4.1 released 2011-11-17, VMWare fully supports virtualizing the non-server versions of Leopard (10.5) and Snow Leopard (10.6) as well.

See  http://www.macworld.com/article/163755/2011/11/vmware_fusion_update_lets_users_virtualize_leopard_snow_leopard.html for details.

comment:10 in reply to: ↑ 9 Changed 2 years ago by Sharpie

Replying to mackyle:

Also note that as of VMWare Fusion version 4.1 released 2011-11-17, VMWare fully supports virtualizing the non-server versions of Leopard (10.5) and Snow Leopard (10.6) as well.

See  http://www.macworld.com/article/163755/2011/11/vmware_fusion_update_lets_users_virtualize_leopard_snow_leopard.html for details.

I don't see anything in that article that could be construed as "fully supported". If anything, they "look the other way" while the user does something illegal. It all comes down to trusting that having the user click on a box that says "I read the OS X SLA" will defend them in court. By contrast, VirtualBox is avoiding a lawsuit in the first place by explicitly supporting only those OS X versions for which the SLA allows virtualization.

comment:11 Changed 2 years ago by Technologov

CC +1.

-Technologov

comment:12 Changed 2 years ago by ty_cybozu

CC +1

comment:13 Changed 20 months ago by arobi

I see that this has not been updated in 7 months. What is the schedule for supporting OSX lion and newer guests on OSX host (Mac hardware)?

Note that the SLA does allow this usage (Lion is allowed to be installed as 2 VMs on Mac hardware).

FYI, Parallels is supporting this and I successfully installed Lion in a VM with a Mountain lion host.

comment:14 Changed 20 months ago by Edward

I see that OS X 10.8 Server is only provided as an addition package, there is no single DMG install.

We must install OS X first, then upgrade to OS X Server.

Please fix it!

Version 0, edited 20 months ago by Edward (next)

comment:15 Changed 18 months ago by alexs-guitar

CC +1

comment:16 Changed 17 months ago by mattconnolly

CC +1

comment:17 follow-up: ↓ 18 Changed 17 months ago by grahamperrin

An unexpected and pleasant surprise. For me, Mountain Lion OS X 10.8.2 (build 12C60) runs as a guest with VirtualBox 4.2.4 r81684 on a 12C60 host, MacBookPro5,2 with 8 GB memory:

Unless I'm missing something, none of the 4.x change logs https://www.virtualbox.org/wiki/Changelog-4.0 https://www.virtualbox.org/wiki/Changelog-4.1 https://www.virtualbox.org/wiki/Changelog mention anything like this.

Lion guest-related  https://forums.virtualbox.org/viewtopic.php?t=31104 remains closed, not open to discussion.

Mountain Lion guest-related  https://forums.virtualbox.org/viewtopic.php?t=52139 was similarly closed, presumably by a moderator.

I assume that relevant improvements to VirtualBox are currently:

  • private
  • not for this public Trac
  • not officially supported.

If improvements are public but elsewhere, maybe someone can find the changeset(s) or other ticket(s) – thanks.

 https://forums.virtualbox.org/viewtopic.php?t=50927 refers to this ticket. I'll post something there.

Last edited 17 months ago by grahamperrin (previous) (diff)

comment:18 in reply to: ↑ 17 Changed 17 months ago by grahamperrin

Replying to grahamperrin:

If improvements are public but elsewhere, maybe someone can find the changeset(s) or other ticket(s) – thanks.

At least:

#11066 was fixed and closed on 2012-10-16

OSX-Guest on VirtualBox

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use