Virtualizing Mac OS X on Ubuntu Linux



Alright, it doesn't work great and crashes quite a bit, but at least its up and working.

If you want to get it running I'm assuming you have a licensed version of Mac OS X "Tiger" that you have copied to an .iso file.

Here's how to do it:

1. Through Synaptic or apt-get, install: pearpc
2. Next you need to create a virtual partition to install it onto. To create a 3 gig virtual drive, use the following command:

dd if=/dev/zero of=3gigharddisk.img bs=516096 seek=6241 count=0

To creating a 6 gig virtual drive:

dd if=/dev/zero of=6gigharddisk.img bs=516096 seek=12482 count=0

3. Now navigate to /etc/ppc and open ppc.conf in an editor (in root). Here is a stripped down version of my config file:


## PearPC Configuration File

## Start Resolution

ppc_start_resolution = "800x600x15"

## Redraw interval (in ms)

redraw_interval_msec = 20

## Key codes

key_toggle_mouse_grab = "F12"
key_toggle_full_screen = "Alt+Return"

## Loader

prom_bootmethod = "auto"

#prom_bootmethod = "force"
#prom_loadfile = "test/yaboot"
#prom_env_bootpath = "disk"
#prom_env_bootargs = ""
prom_env_machargs = "-v"
#prom_driver_graphic = "video.x"
#page_table_pa = 104857600

## CPU Config

#cpu_pvr = 0x00088302

## Main memory (default 128 MiB)

#memory_size=0x8000000

## IO Devices

## PCI IDE Config

pci_ide0_master_installed = 1
pci_ide0_master_image = "/media/storage2/tmp/3gigharddisk.img"
#pci_ide0_master_type = "hd"
pci_ide0_slave_installed = 1
pci_ide0_slave_image = "/media/storage2/Computer Software and Hardware/OSes/Mac OS X Install DVD/MacOSXInstallDVD.iso"
pci_ide0_slave_type = "cdrom"

## Network

pci_3c90x_installed = 0
pci_3c90x_mac = "de:ad:ca:fe:12:34"
pci_rtl8139_installed = 0
pci_rtl8139_mac = "de:ad:ca:fe:12:35"

## USB

pci_usb_installed = 1

## NVRAM

nvram_file = "nvram"

Type: sudo ppc to begin the installation process. When you get to the select a destination drive part of the installation, you need to create a partition and format it using the drive utility in the menu.

Once it finishes installing, reboot and make the following changes to the config file:

ppc_start_resolution = "1024x768x32" # or whatever you prefer

memory_size=0x20000000 #512 MiB, before I changed this it kept freezing and I would have to reboot

pci_ide0_master_installed = 1
pci_ide0_master_image = "/media/storage2/tmp/3gigharddisk.img"
#pci_ide0_master_type = "hd"
#pci_ide0_slave_installed = 1 # there is probably a better way to do this, but this is so it doesn't try to install each time
#pci_ide0_slave_image = "/media/storage2/Computer Software and Hardware/OSes/Mac OS X Install DVD/MacOSXInstallDVD.iso"
#pci_ide0_slave_type = "cdrom"

I still haven't yet gotten it connected to the internet, but as soon as I do I'll post the directions below....

Comments

Popular posts from this blog

Base64 decode to file

Swiftboating from the Left - Paul Harris's "The Real McCain"

Installing Virtualbox's Guest Additions on Debian and getting shared folders to work