Essaye avec cela
--------------------------------------------
PreBuild Instructions
Build Package Requirements (Debian/Ubuntu) :
sudo apt-get install rpm zlib1g-dev libasound2-dev libpulse-dev libsdl1.2-dev dev86 iasl quilt
Download the latest version of KVM Sources pacthed for OSX at the url:
http://download.opensuse.org/repositories/Virtualization:/KVM/openSUSE_Factory/src/
Go to the directory where you downloaded the .rpm file.
mkdir kvm-src
cd kvm-src
Unpack rpm files.
rpm2cpio ../kvm-*.src.rpm | cpio -id
tar xvvjf qemu-kvm-*.tar.bz2
PrePatch Instructions
For Suse distribution:
quilt -v setup kvm.spec
cd kvm-*/
cp -a bios bios-mac
For NOT Suse distribution:
Modify kvm.spec if you have a distribution different from Suse:
You can edit this manually,
Copy it:
cp kvm.spec kvm_nosuse.spec
and add this line somewhere at the beginning of the kvm_nosuse.spec file:
%define suse_version 1120
and comment out the %suse_kernel_module_package line (if exists):
#%suse_kernel_module_package
ore you can do the same by this command:
cat kvm.spec | sed '/Name:/ i\
%define suse_version 1120
'| sed 's/%suse_kernel_module_package/#%suse_kernel_module_package/' > kvm_nosuse.spec
Prepare patches:
quilt -v setup kvm_nosuse.spec
Change directory:
cd qemu-kvm-*/
Copy bios directory:
cp -a kvm/bios kvm/bios-mac
Patch Instructions
Apply The pacthes
quilt push -a -v
Build Instructions
Compile it:
./configure
make
Compile bios-mac:
cd kvm/bios-mac
make
cd ../..
Install Instructions
Install Official KVM package (optional):
sudo apt-get install kvm
Install new KVM module:
sudo make install
Load new KVM module:
sudo modprobe kvm_intel (or kvm_amd)
Copy MAC BIOS in the correct location:
sudo cp kvm/bios-mac/BIOS-bochs-latest /usr/local/share/qemu-kvm/bios-mac.bin
Download the bootloader:
Start Up Instructions
If you don't have a OSX partition, you can create a disk image file to use as HD device. Mac OSX Leopard Installation requires at least 11,4 GB free space to setup, more spaces (5,5 GB) are needed for current updates, so the image file for MAC OSX setup should be at least 20 GB.
qemu-img create -f qcow2 $MY_DISK_IMAGE_FILE 20G
Mac OSX contains a binary protection, this means that OSX checks for an hardware key (contained in a dongle on apple machines) to correctly execute itself and the other application. KVM has to emulate that dongle so you have to supply your hardware key. To find your hardware key you can use the getkey script (
http://alex.csgraf.de/qemu/getkey) from Alexander Graf site or look for OSK0 and OSK1 on google. KVM needs this key as a human-readable ASCII string of 64 chars in -osk parameter.
For OpenSuse:
QEMU_BIN=qemu-kvm
On Other systems:
QEMU_BIN=qemu-system-x86_64
Start Mac OSX:
$QEMU_BIN -M mac -kernel ~/kvm-osx-bootloader/boot \
-usb -usbdevice mouse -usbdevice keyboard -hda $MY_DISK_IMAGE_FILE \
-cdrom /dev/cdrom -m 512 -osk $HARDWARE_KEY -serial stdio