I purchased Lion and heard that it supports virtual machine install.
I want to install Lion into my VirtualBoxVM on Lion on on iMac. How can I do this?
|
I purchased Lion and heard that it supports virtual machine install. I want to install Lion into my VirtualBoxVM on Lion on on iMac. How can I do this? |
|||||||||||
|
10.7 (Build 11A511) guest in VirtualBox 4.1 greaterWhilst end user forums are currently limited to Mac OS X Server, not updated for Lion, there is discussion of Lion (not always Lion Server) in that context. With the most recent VirtualBox it is unnecessary to convert disk images; .dmg files are recognised. Depending on your approach, you might see:
— (example) — I saw that at least once. Suggestion A: await media from AppleI recommend this most strongly. Await Apple's provision of Lion on a USB thumb drive. It may be something greater than 11A511 and if so, that greatness may be more suitable for use in virtual machines without the need to hack (see caution below). Suggestion B: attempt upgrade from Snow Leopard within the virtual machineIn the virtual machine: install Snow Leopard then (honouring Apple's license for Snow Leopard as far as possible in this situation) use that installation for nothing other than an immediate upgrade to Lion. Attention please to agreements at Apple — Legal. Suggestion C: hobby hacking with BaseSystem.dmg
Suggestion D: hobby hacking with InstallESD.dmgAt least one Apple Exchange user reports some success with a home-produced DVD burnt from an This may be most tempting and most likely to yield immediate success, of sorts, but in my estimation: hacking with this particular .dmg (ignoring Apple's .app for 11A511 as a whole) carries the greatest long-term risks. Caution!By using any .dmg out of context, as suggested above, you may be risking the integrity of your installation in ways that we can not predict. Please consider the following extract from Ask Different Chat: With that caution in mind, my strongest recommendation is (A) to wait for Apple to provide USB flash media (scheduled for August 2011) with the assumption that it will be both (i) greater than 11A511 and (ii) more suitable for virtual machines and other environments that lacked broad support from Apple on the day of Lion's release. (Bear in mind: day one was almost totally oriented to download-based upgrades from Snow Leopard.) |
|||||||||||
|
|
See this article: http://osxdaily.com/2011/06/08/create-burn-bootable-mac-os-x-lion-install-disc/ Use the .dmg as your source disk. You may have to convert it first to an .iso: if that's the case, use Disk Utility to convert it to a "CD/DVD Master" image (.cdo) and simply rename it to .iso. |
|||
|
|
|
VMWare Fusion 4 is supposed to support it but I don't know if it's out yet? |
|||
|
|
NVRAM for Lion in a virtual machineI don't use VMware, and I don't know which version was in use by the person who posted the following article, but it seems to contain interesting information about NVRAM. Installing Mac OS X Lion in VMware — obviouslogic : solutions (undated, bookmarked by me on 2nd July) Could help people to think about how to get an installation of Lion started, without upgrade from Snow Leopard, in virtual machines hosted by things other than VMWare Fusion. |
|||
|
|
10.7.x or 10.8 (Build 12A269) in VirtualBoxA preferred alternative to my earlier answer, a simpler approach to installing then imaging what's required to run 10.8 in a VirtualBoxVM. Assume that a similar approach will be equally good for 10.7. IntentionA template, a reasonably small virtual disk image that can be copied for use in any VirtualBoxVM. RequirementsVirtualBox 4.1.18 or greater. A spare drive. For a virtual machine with 2 GB memory, a 16 GB device will suffice. Create a template
First use of a copy of the template
HintsFor a virtual machine configured in the way outlined above:
Whenever you start the virtual machineFor verbosity, use boot option
Whenever you attempt to restart the virtual machineVerbosity will allow you to see when things are done, after which a MACH Reboot is attempted:
If OS X does not proceed beyond that point, use the Machine menu of the VirtualBoxVM:
BootloadersFor a first test, I chose Chimera 1.10.0. MultiBeast 5.0 for Mountain Lion can install Chimera 1.11.1. Getting the size of a deviceUse diskutil. In this example I want the size of
The second command – Creating a virtual disk image of a deviceUse VBoxManage convertfromraw. For the example above:
As zeros were written when free space was erased, the resulting image should be far smaller than the size of the device – probably less than 8 GB. Additional credit: the accepted answer to a Super User question, VirtualBox: booting cloned disk. Why image the entire device?Assume that a future version of VirtualBox will be able to use Serial number and hardware UUIDI don't know what's normal for VirtualBox. A screenshot of my test result (machine type Mac OS X, machine version Mac OS X (64 bit), Chimera 1.11.1):
It's possible to change such things, but methods of changing are beyond the scope of this question. A longer approachRevision 7 of this answer outlined a longer and more complicated approach to installing and running 10.7 in a VirtualBoxVM. That approach, originally for 10.7, may be equally good for 10.8. |
|||||
|
|
With VMWare Fusion 4 there is a very elegant approach to installing Lion into a VM. Its essentially using the Lion Installer image from the Mac App Store. It boils down to drag and drop of the Lion installer to get started. No disk image conversion, no spare partitions needed as indicated in Installing Mac OS X 10.7 (Lion) as a virtual machine in Fusion 4 Additionally there are VMWare Tools available for OS X once you get OS X Lion installed too.
|
|||
|
|