Jump to content

Help to debug Yosemite install inside QEMU


5 posts in this topic

Recommended Posts

Hi, I'm trying to complete a clean first time install of Yosemite into a QEMU vm and am having issues.

 

Firstly, I've successful accomplished this with Mavericks and am fully aware of the kernel/boot changes between Mavericks and Yosemite.

 

I'm running Ubuntu 14.10 with QEMU v2.1.x, have Chameleon 2.3svn r2510.

 

So my Yosemite VM loads chameleon and successfully finds the Yosemite boot kernel @ /System/Library/Kernels/kernel

 

I've used several boot flags to try and obtain some feedback but TBH this is an area I'm not very familiar with...what I've tried so far is..."-v -f -x UseKernelCache=No" and combinations therein.

 

The problem is that I get a lot of kernel output for loading files, no obvious error message but then a reboot.  Just before the reboot the screen looks to go blank and some text flashes up but its all too quick to be readable.

 

My qemu args are...

usr/bin/qemu-system-x86_64 \
-name blackmac-osx \
-enable-kvm -m 4096 -cpu core2duo -machine q35 -smp 4,cores=2 -smbios type=2 \
-kernel /path to chameleon-2.3svn-r2510_boot \
-usb -device usb-kbd -device usb-mouse \
-device isa-applesmc,osk="My OSK" \
-chardev socket,id=charmonitor,path=/mnt/vms/blackmac-osx/blackmac_osx_yosemite.monitor,server,nowait \
-mon chardev=charmonitor,id=monitor,mode=control \
-monitor stdio \
-nodefconfig \
-nodefaults \
-device ide-drive,bus=ide.2,drive=MacHDD \
-drive id=MacHDD,if=none,file=/mnt/vms/blackmac-osx/mac_hdd_yosemite.qcow2,aio=native \
-device ich9-intel-hda,bus=pcie.0,id=sound \
-device hda-duplex,id=sound0-codec0,bus=sound.0,cad=0 \
-vga std \
-sdl \
-device ide-drive,bus=ide.0,drive=MacDVD \
-drive id=MacDVD,if=none,snapshot=on,file="/path to .iso"

For completeness the Yosemite.iso I created on my Macbook Pro 2014, original Mavericks then upgrade to Yosemite.  I've tried several methods with varying results, the current ISO was built by Parallels from the Yosemite install app I downloaded from the App Store.  I then manually unpacked the "Kernels/kernel" files from the Essentials.pkg and added it into the /System/Library/ location on the .dmg file before using Disk Utility to convert the .dmg to .iso.

 

I'd appreciate any pointers, I guess I'm looking for advice on the best way to debug the kernel boot to understand what the panic is (if it is a kernel panic).  Are the flags I can pass which will stop the auto reboot or other know flags I should be passing that I'm not?

 

Thanks in advance guys.

Link to comment
Share on other sites

So I've tried altering a few things see if anything gave clues...if I alter the graphics adapted to cirrus then the reboot occurs immediately after the sdl windows resizes which I presume is just when the gui is about to render.  I've also given more RAM...any other ideas I can try?

Link to comment
Share on other sites

  • 4 weeks later...
 Share

×
×
  • Create New...