Jump to content
7 posts in this topic

Recommended Posts

I was able to successfully do a fresh install of Lion (final release version purchased and downloaded from the App Store) on VMware Workstation 7.1.4 running under Linux. The following directions will most likely work under Windows as well.

 

I tried many different ways to get it work from an ISO (DVD as well as ISO mounted in VMware) with no success.

 

The only way I was able to get it to work is by using an installation vmdk.

 

Most of this work is based on

 

http://www.sysprobs.com/create-bootable-li...based-computers

 

which in turn was based on

 

http://www.obviouslogic.com:8080/solutions/lion-vmware/

 

 

My changes are (1) that there is no need to flag the installation as a Server version; Albert's VMware unlocker already removes that restriction and (2) that there is no need to do anything special to the nvram file; the one that Workstation generates works fine for the final Lion release and (3) I am using a GUID Partition Table for the installation disk; I had trouble with disks with an Apple Partition Map

 

Things seem to be working pretty well except for sound.

 

 

==========================

 

The following instructions are to be run on your current Snow Leopard VM.

 

Before starting your Snow Leopard VM, make the following changes to the VM:

- Add Hardware

Hard Disk

Create a new virtual disk

SCSI, Independent, Persistent

Size = 5.0GB, store virtual disk as a single file

File name = LionInstaller.vmdk

Start Snow Leopard VM

- In dialog "The disk you inserted was not readable by this computer"

Initialize... (opens Disk Utility)

Select 5.37 GB VMWare disk

Partition

1 Partition

Name: LionInstaller

Format: Mac OS Extended

Options... GUID Partition Table

- Purchase and download Lion from the App Store

- cp /Applications/Install\ Mac\ OS\ X\ Lion.app/Contents/SharedSupport/InstallESD.dmg ~/Desktop

- Look in /Volumes to make sure you don't have any of the following: Mac\ OS\ X\ Install\ ESD, Mac\ OS\ X\ Base\ System

- Look in /Volumes to make sure you do have the following: LionInstaller

- Double click InstallESD.dmg on desktop to open it

- in Terminal

cd /Volumes/Mac\ OS\ X\ Install\ ESD

open BaseSystem.dmg (mounts Mac\ OS\ X\ Base\ System)

- In Disk Utility

Select Restore

Drag (mounted) Mac OS X Base System to Source

Drag (mounted) LionInstaller to Destination

unselect Erase destination

Restore (type in password when asked)

- in Terminal

cd /Volumes/Mac\ OS\ X\ Install\ ESD

sudo cp kernelcache /Volumes/LionInstaller (type in password when prompted)

sudo vi /Volumes/LionInstaller/Library/Preferences/SystemConfiguration/com.apple.Boot.plist

Add the following to the <dict> section

<key>Kernel Cache</key>

<string>\kernelcache</string>

sudo rm /Volumes/LionInstaller/System/Installation/Packages

sudo cp -R Packages /Volumes/LionInstaller/System/Installation

cd

- Eject LionInstaller

- Eject Mac\ OS\ X\ Base System

- Eject Mac\ OS\ X\ Install\ ESD

Shut down Snow Leopard VM

Edit Snow Leopard VM settings

- Remove 5GB hard disk

Move LionInstaller.vmdk to a safe place

 

 

 

Unlock VMware 7.1.4 using Albert's unlocker

 

Create a new VM with the following settings:

Typical

I will install the operating system later

Guest OS: Apple Mac OS X, version Mac OSX Server 10.6 64-bit

VM Name: Lion

Disk size: 40GB, store virtual disk as single file

Customize hardware

memory=2048MB

processors = 1 processor, 4 cores

remove floppy

network adapter = bridged

add sound card

Save

Finish

Copy LionInstaller.vmdk to the Lion vm dir

Edit virtual machine settings

Add hardware

hard disk

Use an existing disk, disk file = LionInstaller.vmdk

Click on New Hard Disk

Advanced... mode = Independent, Nonpersistent

 

Start the new Lion VM and it will come up to the installation screen

 

Use Disk Utility to partition the 40+GB virtual disk into 1 partition, Mac OS Extended (Journaled) with GUID partition table, call new partition Lion

 

The rest of the installation will proceed normally.

 

After installation, mount darwin312.iso and install VMware Tools

 

Enjoy...

I've already tried this on Windows, but the installation process hung in the 2nd-stage boot with about 6 minutes remaining. I'll try again.

Also, in the 2nd-stage boot, I had to manually program the EFI boot manager to get it to boot the target volume.

One more thing is I just copied InstallESD.dmg to the Lion Installation VMDK. I didn't do all that stuff with manually splitting out BaseSystem. I don't think it's needed. Then I booted the installation VMDK.

 

Thanks.

 

EDIT: I tried again, and this time it didn't hang. Installation complete.

84e3aa37be2efc90b07feadd69e4d7cb08c9ee8b0e1738530a43b7f3554968856g.jpg

 

Here's a simplified variant

  • Create a 5GB LionInstall.vmdk with GPT/HFS+
  • Use disk utility to copy InstallESD.dmg to the HFS partition on LionInstall.vmdk
  • Create a VM with 2GB ram/guestos="darwin10-64"/firmware="efi", and a 40GB SCSI HD
  • Use the EFI firmware to boot LionInstall.vmdk [use /boot.efi].
  • Format the 40GB drive and let the 1st-stage install run (it copies the installation media from LionInstall.vmdk to the drive)
  • After the 1st-stage install reboots, program the EFI boot manager to boot "Mac OS X Install Data/boot.efi" on the target drive.
  • The 2nd-stage install proceeds and reboots to the installed system.

Here's a simplified variant

  • Create a 5GB LionInstall.vmdk with GPT/HFS+
  • Use disk utility to copy InstallESD.dmg to the HFS partition on LionInstall.vmdk
  • Create a VM with 2GB ram/guestos="darwin10-64"/firmware="efi", and a 40GB SCSI HD
  • Use the EFI firmware to boot LionInstall.vmdk [use /boot.efi].
  • Format the 40GB drive and let the 1st-stage install run (it copies the installation media from LionInstall.vmdk to the drive)
  • After the 1st-stage install reboots, program the EFI boot manager to boot "Mac OS X Install Data/boot.efi" on the target drive.
  • The 2nd-stage install proceeds and reboots to the installed system.

You don't need the LionInstall.vmdk, you can do it with an ISO. Thus, your simplified steps become:

 

  • Make an ISO by either of these steps:
    • Boot into an existing Mac OS X, run hdiutil convert -format UDTO -o Lion.iso InstallESD.dmg, which will create Lion.iso.cdr which you can rename to Lion.iso. [Credit]
    • Use a similar toolset like 7-Zip + UltraISO. [Credit]

    [*]Use VMware + Albert's Unlocker and create a new VM. Generally use defaults, except:

    • Select Mac OS X and choose Mac OS X Server 10.6 64-bit
    • Change the CD drive to SCSI 0:1 [Credit]
    • Configure the CD drive to use the ISO image of the Lion.iso that you made in the previous step.
    • Add Sound Card (for eventual install of Zenith's audio kext)

    [*]Boot (it should boot from Lion.iso)

    [*]Use Disk Utility to partition as usual

    [*]Choose Reinstall Mac OS X and it will copy files and reboot

    [*]When it reboots, hit the Escape key until you get the VMware boot menu, then:

    [*]Click Continue to finish the rest of the installation.

Edited by FireWired1394
  • Change the CD drive to SCSI 0:1
  • Configure the CD drive to use the ISO image of the Lion.iso that you made in the previous step.
  • Boot (it should boot from Lion.iso)

I tried something very similar, but instead of using an ISO image, I burned InstallESD.dmg to a DVDR. It consistently refused to boot it. Kept giving me an error 7 (whatever that is) when boot.efi tries to load \kernelcache. :unsure:

 

[PS I did check that kernelcache is in fact readable on the DVDR, so it wasn't an issue of defective media]

You don't need the LionInstall.vmdk, you can do it with an ISO. Thus, your simplified steps become:

Glad you guys got it working on 7.x. For info the procedure will be similar for Workstation 2011. Just there are some other settings that are useful and VMware did acknowledge and fix a bug in EFI boot that Zenith432 has seen.

  • 2 weeks later...
You don't need the LionInstall.vmdk, you can do it with an ISO. Thus, your simplified steps become:

 

  • Make an ISO by either of these steps:
    • Boot into an existing Mac OS X, run hdiutil convert -format UDTO -o Lion.iso InstallESD.dmg, which will create Lion.iso.cdr which you can rename to Lion.iso. [Credit]
    • Use a similar toolset like 7-Zip + UltraISO. [Credit]

    [*]Use VMware + Albert's Unlocker and create a new VM. Generally use defaults, except:

    • Select Mac OS X and choose Mac OS X Server 10.6 64-bit
    • Change the CD drive to SCSI 0:1 [Credit]
    • Configure the CD drive to use the ISO image of the Lion.iso that you made in the previous step.
    • Add Sound Card (for eventual install of Zenith's audio kext)

    [*]Boot (it should boot from Lion.iso)

    [*]Use Disk Utility to partition as usual

    [*]Choose Reinstall Mac OS X and it will copy files and reboot

    [*]When it reboots, hit the Escape key until you get the VMware boot menu, then:

    [*]Click Continue to finish the rest of the installation.

This method worked perfectly for me. Thank you.

×
×
  • Create New...