Lion as VB guest on Mac hardware?

Discussions about using Mac OS X guests (on Apple hardware) in VirtualBox.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Lion as VB guest on Mac hardware?

Post by Sasquatch »

mdurisseau wrote:Which setting am I missing? The processor on this MacBook is 64-bit, the kernel will not run in 64-bit...
Since Lion is 64 bit, you're missing the 64 bit capabilities. You didn't select 64 bit as Mac or made the necessary VM settings to allow 64 bit to be exposed to the VM. See the User Manual.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
mdurisseau
Posts: 69
Joined: 25. Jan 2009, 19:17
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WinXP
Location: Texas

Re: Lion as VB guest on Mac hardware?

Post by mdurisseau »

64bit as Mac?
Sasquatch wrote:
mdurisseau wrote:Which setting am I missing? The processor on this MacBook is 64-bit, the kernel will not run in 64-bit...
Since Lion is 64 bit, you're missing the 64 bit capabilities. You didn't select 64 bit as Mac or made the necessary VM settings to allow 64 bit to be exposed to the VM. See the User Manual.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Lion as VB guest on Mac hardware?

Post by Sasquatch »

By default, yes. Check the hardware requirements for Lion. AFAIK, only systems that have a 64 bit CPU are qualified for Lion.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
mdurisseau
Posts: 69
Joined: 25. Jan 2009, 19:17
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WinXP
Location: Texas

Re: Lion as VB guest on Mac hardware?

Post by mdurisseau »

Doesn't make total sense...if I didn't have a 64-bit system, Lion would not install natively, no? But it does install natively...Vbox won't run it right now, that's all, and I have the newest (4.1) version. I have a Macbook 4,1 version.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Lion as VB guest on Mac hardware?

Post by Sasquatch »

Maybe it checks the CPU and adjusts accordingly to 64 bit mode. Who knows. All I know is that Lion is not supported as Guest atm. It's not a high prio thing, since none of the paying customers asked for it.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
mdurisseau
Posts: 69
Joined: 25. Jan 2009, 19:17
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WinXP
Location: Texas

Re: Lion as VB guest on Mac hardware?

Post by mdurisseau »

Paying customers?
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: Lion as VB guest on Mac hardware?

Post by stefan.becker »

Have you not realized that you can use VBOX in companies and get support from sun/oracle?

Without paying customers you are missing many products on the market.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Lion as VB guest on Mac hardware?

Post by Sasquatch »

mdurisseau wrote:Paying customers?
Yes, paying customers, like companies. Without them, we wouldn't have VB.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
mdurisseau
Posts: 69
Joined: 25. Jan 2009, 19:17
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WinXP
Location: Texas

Re: Lion as VB guest on Mac hardware?

Post by mdurisseau »

Sorry, I did not realize that...
neffs
Posts: 1
Joined: 16. Aug 2011, 13:56
Primary OS: Mac OS X other
VBox Version: OSE self-compiled
Guest OSses: Mac, Linux, Windows

Re: Lion as VB guest on Mac hardware?

Post by neffs »

I just had a look at the issue.

It seems that Lion is verifying the board product name in the smbios/dmi tables. Virtualbox currently does not set this (does not matter if run on a real mac or not).
I had some success by creating a small patch for that and got past "This version of Mac OS X is not supported on this platform" but ran into another issue.

Lion now depends on variables in nvram which it sets during the installation process. (at least install-product-url)
Virtualbox doesn't have a persistent nvram implementation so these variables are cleared after reboot and the installation fails.

-> Not trivial to fix
vii
Posts: 1
Joined: 20. Aug 2011, 11:36
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Win XP, OS X Lion

Re: Lion as VB guest on Mac hardware?

Post by vii »

As the Apple Lion license allows to virtualize Lion and Lion Server, I'd appreciate very much to see at least basic support for Lion guests. (http://www.virtualbox.org/ticket/9388)

I fail with the message "This version of Mac OS X is not supported on this platform! Reason: ".

Thanks!
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Lion as VB guest on Mac hardware?

Post by Sasquatch »

That's because Lion performs some additional checks like DMI information and sets some BIOS value or something that doesn't work with VB. Like I said, it's not a high priority to make it work. OSX support is a community request.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
djtomr941
Posts: 22
Joined: 7. Apr 2010, 20:27
Primary OS: Ubuntu 8.10
VBox Version: OSE other
Guest OSses: Windows, OEL

Re: Lion as VB guest on Mac hardware?

Post by djtomr941 »

That post is old.

It's now allowed. See below, this is for OSX, not just OSX Server.

http://images.apple.com/legal/sla/docs/macosx107.pdf

Top of the 2nd page or section B. iii.

(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

OSX Server is here.

http://images.apple.com/legal/sla/docs/ ... ver107.pdf

I can get my dmg to boot into Vbox (converted to an ISO first) but the EFI loader does not recognize the hardware code as a valid one (i.e. does not recognize it as Apple hardware). Would be nice if Vbox picked up the Apple hardware code and passed it through to the VM.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Lion as VB guest on Mac hardware?

Post by Sasquatch »

Which is exactly what I just explained ;). Thanks for reaffirming that.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
thomasafine
Posts: 2
Joined: 14. Sep 2011, 17:22
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: XP and hopefully lion

Re: Lion as VB guest on Mac hardware?

Post by thomasafine »

neffs wrote:I just had a look at the issue.

It seems that Lion is verifying the board product name in the smbios/dmi tables. Virtualbox currently does not set this (does not matter if run on a real mac or not).
I had some success by creating a small patch for that and got past "This version of Mac OS X is not supported on this platform" but ran into another issue.

Lion now depends on variables in nvram which it sets during the installation process. (at least install-product-url)
Virtualbox doesn't have a persistent nvram implementation so these variables are cleared after reboot and the installation fails.

-> Not trivial to fix
But you're so close. Are you sure it isn't trivial? Do you actually have to implement persistent nvram? Or can you just hardcode install-product-url in the existing NVRAM implementation? It's value should look like this:
x-osproduct://AAAABBBB-CCCC-DDDD-EEEE-FFFF00001111/Mac%20OS%20X%20Install%20Data
where the AAAABBBB stuff is the Volume UID.

And does this install-product-url need to always be there, or only during the install process? i.e. maybe there's a different way to bootstrap it?

tom
Post Reply