Boot Loop - Trying to make a Yosemite KVM VM w/Chameleon Bootloader I am trying to boot a Yosemite VM (10.10.5) following these instructions here.

But it gets stuck in a loop at the BIOS boot screen (the OS has not yet been installed)

My hardware is a Mac mini with Ubuntu 14.04 installed (I specifically need to use KVM to boot OS X VMs for my use case), hardware is:
CPU: GenuineIntel, Intel(R) Core(TM) i7-4578U CPU@3.00GHz
Graphics card: Intel Corporation Haswell-ULT integrated graphics controller (rev 09)
Motherboard: Apple Mac-35C5E0812OC7EEAF
I have QEMU 2.6.0, and Chameleon Enoch r2839 (I've also tried Chameleon 2.3 r2838 with the same results)

The command I use to boot is:

bin/qemu-system-x86_64 -enable-kvm -m 2048 \
      -cpu core2duo,vendor=GenuineIntel \
  -machine q35 \
  -usb -device usb-kbd -device usb-mouse \
  -device isa-applesmc,osk="insert-real-64-char-OSK-string-here" \
  -kernel ./chameleon_enoch\
  -smbios type=2 \
  -device ide-drive,bus=ide.2,drive=MacHDD \
  -drive id=MacHDD,if=none,file=./mac_hdd.img \
  -netdev user,id=hub0port0 \
  -device e1000-82545em,netdev=hub0port0,id=mac_vnet0 \
  -monitor stdio \
  -device ide-drive,bus=ide.0,drive=MacDVD \
  -drive id=MacDVD,if=none,snapshot=on,file=./Yosemite.10.10.2.iso
      -vnc 127.0.0.1:2


(real string osk string is inserted here, I just didn't add it for public posting)

When I boot, I get to this screen just fine:


When I boot with -v option, it gets to these screens, goes black, and then returns to the original boot screen shown previously: 



There does not appear to be any obvious errors or kernel panics. I googled the DSDT and SMBios messages and they don't appear to be anything that would cause issues in this case.

If I try booting it in safe mode (-v -x), I get these screens before it once again returns to the original boot screen:


Again, no obvious crashes or panics.

I've tried various combinations of -v, -f, -x, GraphicsEnabler=Yes/No, the behavior is basically always the same. Keep in mind, I am trying to boot and install OS X in a virtual machine, not on the computer itself.

Can anyone see any problems or suggest other troubleshooting I could do?
I eventually solved this: I had to upgrade from Ubuntu 14.04 to 16.04 and use just the GraphicsEnabler=No flag as a boot option. You enter it in the same place after boot: that the -v flag in the first screenshot.

Disclaimer:
As far as the legal issues brought up in the comments, most people I talked to did not think you had to actively be running OS X on the machine, as you are allowed do things like run a different version of OS X in a VM, or use VMWare ESXi. I am not a lawyer and did not talk to one, so any individual concerned would have to consult their own legal team.