Live data from Hacker News

OS X-KVM: Running Mac OS X El Capitan on KVM and QEMU

github.com

51–60 of 96 posts

Re: OS X-KVM: Running Mac OS X El Capitan on KVM and QEMU

#51
post #6

Is it possible to run several OS' on a single machine with fast switching between them, access to all hardware, and at full or almost full speed?

Of course. I run ESXi (bare metal hypervisor) with various Windows and Linux VMs running on it. One of the Windows VMs even has my GPU passed through to it and gets near-native gaming performance.

Re: OS X-KVM: Running Mac OS X El Capitan on KVM and QEMU

#52
post #39

I tried doing this the other day, hoping that I would finally be able to get a working OSX setup on my desktop (have made several attempts with no success at getting it working bare-metal on my Z600). Sadly it just ended with more kernel panics, something I was hoping would be avoided as I got the impression from some sources that QEMU was a more straightforward solution than trying to run it on bare-metal. Having sa…

I clean installed macOS Sierra on my 2013 Macbook Air this week it seems just fine to me. So far, I only have a couple of issues with it: 1) more bloat (but almost every OS has this problem). 2) cuts off support for some older Macs for no good reason. One thing I really like the new default terminal font: San Francisco Mono. I don't know if that font is new to the OS entirely but I really like it. I also really like…

A clean install of Sierra is actually smaller than El Capitan, so it depends how you define bloat.

SF Mono is indeed new. Thank you for pointing that out. I missed it. Very nice.

Re: OS X-KVM: Running Mac OS X El Capitan on KVM and QEMU

#53
post #10

Earlier quoted context omitted.

Up to a point. There's Hardware Partitioning in which the hardware allows you to specify which processors or memory are dedicated to which OS but there's little dynamic sharing. The only real way to do dynamic resource sharing is with software virtualization (which does still require hardware features, but many platforms support this nowadays) where either the OSes run under a Hypervisor layer, or one OS runs in a vi…

So, what would be the best solution to run three (Fedora, Windows 8 or 10 and OSX or more) OS' under a common hypervisor and achieve (almost) full speed? Or alternatively, Fedora as main and the other ones as VMs, but also with (almost) full speed and graphics acceleration.

You're not going to get full speed, but it depends on what you want to be fast. Graphics intensive activities are going to be constrained by the specifics of the design you go for. Apart from that the biggest constraint is memory since every GB allocated to one OS will by definition not be available to the others. However CPU support for virtualization is pretty good these days. Most of the i7 and i5 CPUs have built in instructions to make it pretty efficient for processor tasks.

Personally I have a 2014 5K iMac i7 with a fusion drive. I have a Fedora VM on it I run occasionally. I run it using Virtualbox which is a free virtualization system. I've allocated 4 GB of memory and it's very performant. It's a great way to try out virtualization at home and you can run Virtualbox on Linux, OSX or Windows as the host OS.

Re: OS X-KVM: Running Mac OS X El Capitan on KVM and QEMU

#54
post #51
post #6

Is it possible to run several OS' on a single machine with fast switching between them, access to all hardware, and at full or almost full speed?

Of course. I run ESXi (bare metal hypervisor) with various Windows and Linux VMs running on it. One of the Windows VMs even has my GPU passed through to it and gets near-native gaming performance.

I'm assuming you are using an AMD GPU?

The last time I looked, there were significant challenges with getting a Nvidia or iGPU to work.

Re: OS X-KVM: Running Mac OS X El Capitan on KVM and QEMU

#55
post #51

Earlier quoted context omitted.

Of course. I run ESXi (bare metal hypervisor) with various Windows and Linux VMs running on it. One of the Windows VMs even has my GPU passed through to it and gets near-native gaming performance.

I'm assuming you are using an AMD GPU? The last time I looked, there were significant challenges with getting a Nvidia or iGPU to work.

Yes, AMD. I would prefer Nvidia, but it is what it is.

Re: OS X-KVM: Running Mac OS X El Capitan on KVM and QEMU

#56
This little line, copyrighted by Apple, is what I understand to be the legal protection they have against people running OS X on non-Apple hardware:

https://github.com/kholia/OSX-KVM/blob/476ae8b082088049f2f8c...

I would not be surprised if a DMCA takedown will be filed against this repository soon.

More information here: http://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/#sec_3_2_1

Re: OS X-KVM: Running Mac OS X El Capitan on KVM and QEMU

#57
post #41

Earlier quoted context omitted.

Z600 That's a bit old. Modern Hackentoshes are actually pretty solid on consumer hardware. Z79/Z79, Z170 are pretty much fully supported. Some forum posters claim they've gotten dual 4th Xeon boards to work. I set one up on my Z79+i7-4790k. It was a breeze. Took about 90minutes following tutorials. My biggest problems were: -I set up the wrong sound driver -Nvidia won't detect/modify hot plugging displays you have to…

> Apple's Nvidia driver didn't support GSync or 144Hz. So I had to dealing with image tearing :\ The Mac drivers Nvidia released yesterday finally support G-Sync. > Non Apple keyboards had weird character mismatching. Had to purchase an Apple USB keyboard. You can fix this by not skipping the keyboard setup wizard that pops up when you plug in an unknown keyboard.

I actually never got the popup. IBM Model M is PS/2 not USB so it has to be plugged in on boot as the UEFI/Bios won't let you hot plug.

Re: OS X-KVM: Running Mac OS X El Capitan on KVM and QEMU

#58

This little line, copyrighted by Apple, is what I understand to be the legal protection they have against people running OS X on non-Apple hardware: https://github.com/kholia/OSX-KVM/blob/476ae8b082088049f2f8c... I would not be surprised if a DMCA takedown will be filed against this repository soon. More information here: http://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/#sec_3_2_1

I doubt that line ("ourhardworkbythesewordsguardedpleasedontsteal") is creative enough to meet the threshold of originality required for something to be protected by copyright.

Even if it actually were copyrightable/trademarked it wouldn't be a valid legal strategy to prevent fair-use:

https://en.wikipedia.org/wiki/Sega_v._Accolade

Re: OS X-KVM: Running Mac OS X El Capitan on KVM and QEMU

#59

The OSX license agreement severely limits the practicality of this: http://images.apple.com/legal/sla/docs/macOS1012.pdf It only allows you: Section 2B(iii): "to install, use and run up to two (2) additional copies or instances of the Apple Software within virtual operating system environments on each Mac Computer you own or control that is already running the Apple Software, for purposes of: (a) software development…

The part of that EULA section that really gives me trouble is "...that is already running the Apple Software...".

I want to run OSX in a VM on my MacBook Pro with Windows as the host OS. I used to do it the other way around, boot into OSX and run Windows in a Parallels VM. These days most of my work is in Windows, especially VR work, so it's more practical to boot into Windows. (And I like Windows better than OSX anyway.)

But I still do need to test on OSX occasionally. In an ideal world, since I have VMware installed on Windows, I could just boot up an OSX VM.

But because of that one EULA phrase, OSX will never be supported by a commercial vendor like VMware or a large open source product like VirtualBox - even on Mac hardware!

This leaves booting back to OSX as the only way to run it, and rebooting back and forth is a real pain.

All I want to do is run my legally licensed Windows and legally licensed OSX, and have it be my own choice which one to run as the host OS.

Re: OS X-KVM: Running Mac OS X El Capitan on KVM and QEMU

#60
post #19

Earlier quoted context omitted.

So...? Don't do this at work. Who actually takes software licenses seriously in their own home?

I write software for free and as a living, so I surely take it seriously. How can a software developer justify stealing software, unless they're trapped in a poor or technologically restricted situation (Cuba)? EDIT: There's some confusion as to what I replied to: My reply is to this Who actually takes software licenses seriously in their own home? If this doesn't imply one's okay with stealing, then I take my commen…

Agreed.

I am surprised at how many people on HN show negative attitude toward compliancy with the EULA. I thought HNers had a respect for software license.

Post reply on HN