Page 19 of 31

Re: Mac OS X guest

Posted: 27. Feb 2010, 06:52
by NotAnAddict
Hi. I thought I'd share my experience getting MacOS running as a guest OS. My host OS is Ubuntu Karmic with VirtualBox 3.1.4. My system is a 2GHz Core2 Quad laptop.

I initially configured VirtalBox as indicated above: FreeBSD 64-bit, IO APIC, 2 CPUs, 982MB RAM, ICH6 HD controller, PAE, VT-x, nested paging, and the undocumented SupportExtHwProfile flag. I attempted to boot iATKOS 7, which is based on MacOS 10.5.7, from an ISO image. With the given configuration, the installer got a kernel panic during boot: "simple lock deadlock detection." After some experimentation, I found that the installer will boot only if I give it exactly one CPU.

Once I got into the installer, some more experimentation was necessary. After the first install, it wouldn't boot until I manually installed the Chameleon2 bootloader from the Utilities menu. I also got a "commpage no match for last" panic until I selected the Voodoo9.5 kernel instead of the stock kernel. Finally, I loaded the ApplePS2 driver for mouse and keyboard.

And then it booted! I never thought I would see the day. And it's fast, too; much faster than under [competing virtual machine manager]. Some things are still broken, obviously. Video works, but only up 1024x768 and without Quartz Extreme (with means no Time Machine, among other things). No networking. No audio. Occasional crashes (e.g. when selecting About this Mac). Some of this brokenness might be remediable with some driver fiddling, but at this point I'm pleased just to have it running at this level.

MacOS is an operating system that continues to both disgust and fascinate me. While it represents much that I dislike both in design and philosophy, I'm glad that I have the opportunity to fiddle with it in a virtual environment, without letting it touch real hardware.

VirtualBox is a real gem. I only hope that the recent changes will not stand in the way of further progress of this great program.

If any of the VirtualBox developers happen to be in town, I will be happy to buy you a beer.

Re: Mac OS X guest

Posted: 28. Feb 2010, 01:08
by notbad
Snow Leo runs also on Ubuntu 9.10 host!!! VirtualBox version 3.1.51

EDIT: while updating i got a KP!can't boot anymore:(

EDIT: I found another way to install Snow Leo in Virtualbox

I used:
-Retail Snow Leopard DVD .iso
-EmpireEFI.iso
-VirtualBox 3.1.51
-Ubuntu 9.10 Host

The instalation was flawless, network worked out of the box.

Some issues: the OS boots only with EmpireEFI. mouse and keyboard sometimes crash.

I think I need to find some patches or something.

Re: Mac OS X guest

Posted: 28. Feb 2010, 12:06
by notbad
Image

Finally!!!

Re: Mac OS X guest

Posted: 28. Feb 2010, 17:11
by takwing
notbad wrote:Image

Finally!!!
this is a screen capture for the coming release??

Re: Mac OS X guest

Posted: 28. Feb 2010, 17:28
by GruntZ
Hello,

I have tried many of actions listed here, without success. Now, I just have a big doubt :
It is possible to make OSx run virtualised on AMD powered host ?

TIA
GruntZ

Re: Mac OS X guest

Posted: 28. Feb 2010, 17:48
by m@riposa
@takwing: This is obviously a screencapture from a self-compiled svn-version.

@notbad: Are the new guest-type settings already functional? Does a retail version of Mac OS X run using these settings?

Re: Mac OS X guest

Posted: 28. Feb 2010, 18:16
by No_OnE
takwing wrote:
notbad wrote:Image

Finally!!!
this is a screen capture for the coming release??
2nd that, says PUEL on user info, but who knows. 3.1.4r57640 (says it's the latest PUEL version) does not contain OS X as an option for a guest.
If it is indeed a manual compilation from svn, it's OSE right? Meaning no usb support etc? Would very much like to know, since the main reason I want to run Mac as a vm would be for studio & music production, which kind of mandates having a decent audio-interface.

Care to enlighten us mere mortals?

Re: Mac OS X guest

Posted: 28. Feb 2010, 19:12
by notbad
this is the 3.1.51_OSE r26765!
No USB.
It does not boot the retail DVD with EFI enabled.
I was able to boot the retail DVD using EmpireEFI.iso(EFI was disabled in VBox settings). Instalation is without any errors, but after install i can only boot Snow Leo with EmpireEfi.iso. installing a bootloader does not help it needs to be done some more patches, but i havent yet which ones.

@GruntZ: you need to install a custom kernel for AMD cpus.

the installation works both in 32bit and 64bit guests. Network works out of the box, and there is no need to edit the mashines .xml file.

NOTICE: I haven't tryied this on Windows hosts just in UBUNTU!

Re: Mac OS X guest

Posted: 28. Feb 2010, 21:02
by GruntZ
notbad wrote:@GruntZ: you need to install a custom kernel for AMD cpus.
Thank's for reply, but did you mean host modified kernel (I'm on Ubuntu Karmic 64, AMD Athlon X2), or OSX modified ISO ?
I have tried with iATKOS v7; any other suggestion ?
TIA
GruntZ

Re: Mac OS X guest

Posted: 28. Feb 2010, 21:19
by notbad
You can try Snow Leopard by Hazard. it has AMD kernels and patches.

Re: Mac OS X guest

Posted: 28. Feb 2010, 23:54
by vof
NotAnAddict wrote:Hi. I thought I'd share my experience getting MacOS running as a guest OS. My host OS is Ubuntu Karmic with VirtualBox 3.1.4. My system is a 2GHz Core2 Quad laptop.

I initially configured VirtalBox as indicated above: FreeBSD 64-bit, IO APIC, 2 CPUs, 982MB RAM, ICH6 HD controller, PAE, VT-x, nested paging, and the undocumented SupportExtHwProfile flag. I attempted to boot iATKOS 7, which is based on MacOS 10.5.7, from an ISO image. With the given configuration, the installer got a kernel panic during boot: "simple lock deadlock detection." After some experimentation, I found that the installer will boot only if I give it exactly one CPU.

Once I got into the installer, some more experimentation was necessary. After the first install, it wouldn't boot until I manually installed the Chameleon2 bootloader from the Utilities menu. I also got a "commpage no match for last" panic until I selected the Voodoo9.5 kernel instead of the stock kernel. Finally, I loaded the ApplePS2 driver for mouse and keyboard.

And then it booted! I never thought I would see the day. And it's fast, too; much faster than under [competing virtual machine manager]. Some things are still broken, obviously. Video works, but only up 1024x768 and without Quartz Extreme (with means no Time Machine, among other things). No networking. No audio. Occasional crashes (e.g. when selecting About this Mac). Some of this brokenness might be remediable with some driver fiddling, but at this point I'm pleased just to have it running at this level.

MacOS is an operating system that continues to both disgust and fascinate me. While it represents much that I dislike both in design and philosophy, I'm glad that I have the opportunity to fiddle with it in a virtual environment, without letting it touch real hardware.

VirtualBox is a real gem. I only hope that the recent changes will not stand in the way of further progress of this great program.

If any of the VirtualBox developers happen to be in town, I will be happy to buy you a beer.
My experience is pretty much identical in detail to NotAnAddict's, and as a professional systems software guy, I particularly endorse his final four paragraphs.

After a couple of days intensive work, I have got iATKOS v7 (10.5.7) running on 3.1.4 PUEL and have investigated the problems with networking a little further. I am using the Intel PRO/1000 MT Desktop adapter in bridged mode. It seems to be very slow and hit or miss for it to finally get its IP address from my router's DHCP server but I have found that disconnecting/reconnecting the cable (or start the VM with it disconnected and connect once up and running) helps to persuade OS X that the adapter is working OK and give it the green light. Of course, it does not work! I can't ping anything except my own DHCP allocated address. Network Utility stats look interesting with packets sent:received about 10:1. The routing table contains entries like 'link#4' for my local net interface. route add/change does not seem to have much effect on the interface values. I am not at all familiar with BSD systems so can someone explain what this link#n stuff is?

However, overall, I am very pleased with the results so far and recent clues such as the 'Enable EFI' setting in 3.1.4 and notbad's screen capture from his svn-build of the OSE version suggests we will put much of this messyness behind us when 3.2 arrives.

Re: Mac OS X guest

Posted: 1. Mar 2010, 01:09
by No_OnE
notbad wrote:this is the 3.1.51_OSE r26765!
No USB.
It does not boot the retail DVD with EFI enabled.
I was able to boot the retail DVD using EmpireEFI.iso(EFI was disabled in VBox settings). Instalation is without any errors, but after install i can only boot Snow Leo with EmpireEfi.iso. installing a bootloader does not help it needs to be done some more patches, but i havent yet which ones.

@GruntZ: you need to install a custom kernel for AMD cpus.

the installation works both in 32bit and 64bit guests. Network works out of the box, and there is no need to edit the mashines .xml file.

NOTICE: I haven't tryied this on Windows hosts just in UBUNTU!
Thank you for a clarifying things on such short notice. So either run OS X on KVM, Qemu in the meantime. I might try out an EFI dongle in the meantime.

Re: Mac OS X guest

Posted: 1. Mar 2010, 03:08
by notbad
THIS IS FOR THOSE WHO USE UBUNTU 32-BIT ONLY!!! IF YOU WANT TO DO THIS ON WINDOWS HOST, YOU HAVE TO HAVE PATCHED YOUR VB WITH BLACK TR's PATCHES!!!

IMPORTANT!!! It seems that SVN VB has some problems creating HDD's, so before installing create a HDD with your old VB!

This is how I made VB to run Mac OSX 10.6 & Mac OSX 10.6 Server! I will update this post if I find our some fixes.

Things you need:
1. Intel CPU(I have core2duo, I don't know about other cpus)
2. VB 3.1.51-svn(http://ilportalinux.it/repository/pool/ ... irtualbox/) Thanks to juliuscesar from InsanelyMac forum ;)
3. Retail Mac OS X Snow Leopard DVD
4. Empire EFI .iso - http://prasys.co.cc/2009/10/empire-efi/ (it says that supports i3,i5,i7 and AMD) READ EVERYTHING CAREFULLY!!!
5. Ubuntu 9.10 or lower host(or Ubuntu based distro) or Windows with patched VB

1. Create a machine:
General
-Name:Mac OSX 10.6
-OS Type:Mac OS X

System
-Base Memory:1 GB minimum
-Processor(s):2 or 1
-Boot Order:CD/DVD-ROM, Hard Disk
-VT-x/AMD-V:Enabled
-Nested Paging:Enabled
-IO APIC:Enabled
-Hardware clock in UTC time:Enabled
?-PAE/NX:Enabled

Display
-Video Memory:128 MB
-3D Acceleration:Enabled
-2D Video Acceleration:Disabled

Storage
-Storage Controller: ICH6
-IDE Primary Master (CD/DVD):EmpireEFI_1085.iso (34.86 MB)
-SATA Controller: AHCI
-SATA Port 0:Mac OSX 10.6.vdi (10GB minimum, you can use your old one)

?Audio
-Host Driver:ALSA Audio Driver
-Controller:ICH AC97

Network
-Adapter 1:Intel PRO/1000 T Server (Bridged adapter, or you can use other)

Serial Ports
Disabled
Shared Folders
None

2. Start the machine.

3. When Empire EFI asks to insert the SL DVD click Devices ->CD/DVD devices-> And select the SL DVD, wait a little and hit F5. Then it should stop asking to press any key - so don't wait and press any key.

4. Install Snow Leo. At the end of installation mostly you will get an error that the installation failed, nevermind and press restart. while restarting power of the machine to add the Empire EFI.iso again.

5. Start the machine again but now select to boot the HDD where you installed SL. Setup SL and you can update to 10.6.2.

EDIT EDIT EDIT:

6. After you update to the latest version:
- Install Chameleon Bootloader from Empire EFI cd
- Install OSx86 Tools: http://code.google.com/p/osx86tools/downloads/list
- Open the Preboot.dmg file from Empire EFI cd
- Copy the content from Preboot.dmg to /Extra directory
- Launch OSx86tools
- Clear Extensions cache
- Set Extension permisions
- Repair permisions
- Open Terminal: sudo -s -> cd /Extra -> nano com.apple.boot.plist - edit kernel flags if you want to boot in 64bit mode remove arch=i386, "cpus=1" is a must otherwise you will get a KP. Also you can add your preffered rezolution adding lines

Code: Select all

<key>Graphics Mode</key>
<string>1920x1080x32</string>
-Dont forget to save the file.
- Reboot

GOOD NEWS:
The network works great
The sound works but a bit crackles..

NOW THE BAD NEWS
Only 1 CPU for now( it worked for me with 2 cpus but after some time i got KP)
No USB(VB OSE does not support usb)
For your rezolution to work properly add this line to your machines .xml file:

Code: Select all

<ExtraDataItem name="CustomVideoMode1" value="1920x1080x32"/>
And some other little bugs...

YOU CAN USE THE SNOW LEOPARD .vdi FILE ALSO IN WINDOWS 7. I used VB 3.1.2 patched with BlackTr's patches, but the network sucks!

Enjoy your Snow Leo! :)

Image Image

Re: Mac OS X guest

Posted: 1. Mar 2010, 06:30
by takwing
I followed taranfx's instruction to install snow leopard.

I have Phase I done successfullyby using iATKOS_v7.

For Phase II, "Step 8 Fix permissions by using Terminal", it ask me to invoke the following command
su
cd /Volumes/Snow/System/Library
chown -R root:wheel Extensions/
cd /Volumes/Snow/Extra
chown -R root:wheel Extensions/
.
.

For the "su" command, it asks me for "Password", what should I type here? I have tried the password that I used when installing Leopard. But it failed...., su command returns "Sorry".

Re: Mac OS X guest

Posted: 1. Mar 2010, 11:13
by m@riposa
@takwing: Since the superuser is usually disabled and has an invalid password, try "sudo su" and type in the password of the user that is logged in to the shell (the password of your user account).