Live data from Hacker News

Osx-kvm: Run macOS on QEMU/KVM

github.com

11–20 of 111 posts

Re: Osx-kvm: Run macOS on QEMU/KVM

#13
post #5
post #2

Previous post from 2016 with 89 comments: https://news.ycombinator.com/item?id=12556609

Yeah, one has been able to do this for some time now. A few years ago I had a setup where (and I admit much of this was for the aesthetic purity of it, not practical reasons), I used a legally purchased copy of macos, copied it unmodified to my VM server, and, with a decent amount of effort, and a patched qemu (for the SMC thingie -- i donno if by now the patch is in mainline), was enjoying a non pirated, non modifie…

I really want this. I'm a hardcore linux guy(23+ years), but I have to run a windows vm for some instruments I have that wont run under wine. I hate windows. It sucks so much. Even just using it not that often with my instruments reminds me why I stopped using it.

Re: Osx-kvm: Run macOS on QEMU/KVM

#14
post #9

Earlier quoted context omitted.

Docker offers a simple way to provision the VM - install software, configure networking, execute apps... Docker itself is not a VM or isolation, it uses other tools for that (linux containers in the past, not sure how it works today), it's value is in the ease of use provided by its tooling.

I'm familiar enough with Docker to know of it as a combination of lxc, cgroups, and probably other things so that I can have 1 machine, 1 kernel, and yet multiple userspaces. These userspaces are not (as i understand it) Securely Isolated from eachother, but enough so that if there existed some monstrosity of a complex piece of software, which required lots of dependencies and customization, it might make sense to pu…

You're able to create files in Dockerfile, that could be used for configuration + the stuff about networking. AFAIK macOS has a textmode as well that should work similarly to other Unixes, but I'm not sure about that, but if so, you should be able to execute commands just like with a Linux VM. Yes, there'd need to be a bridge between the macOS VM and the Linux docker container.

Re: Osx-kvm: Run macOS on QEMU/KVM

#15
I had various success with this repository, unfortunately the various XMLs for libvirt and the "sh" boot scripts all reference different paths and capitalizations of files (e.g. even for the firmware committed to the repository etc).

However I did get it to work successfully with High Sierra at one point.

Re: Osx-kvm: Run macOS on QEMU/KVM

#16
post #15

I had various success with this repository, unfortunately the various XMLs for libvirt and the "sh" boot scripts all reference different paths and capitalizations of files (e.g. even for the firmware committed to the repository etc). However I did get it to work successfully with High Sierra at one point.

Yeah, when I got mine working I decided to just go from scratch.... you might even be able to use upstream qemu by now.

Re: Osx-kvm: Run macOS on QEMU/KVM

#17
post #13
post #5

Earlier quoted context omitted.

Yeah, one has been able to do this for some time now. A few years ago I had a setup where (and I admit much of this was for the aesthetic purity of it, not practical reasons), I used a legally purchased copy of macos, copied it unmodified to my VM server, and, with a decent amount of effort, and a patched qemu (for the SMC thingie -- i donno if by now the patch is in mainline), was enjoying a non pirated, non modifie…

I really want this. I'm a hardcore linux guy(23+ years), but I have to run a windows vm for some instruments I have that wont run under wine. I hate windows. It sucks so much. Even just using it not that often with my instruments reminds me why I stopped using it.

I'm very similar. other than you've got about 5 more years on me :D

If you're referring to musical instruments, then yeah, that's the only reason I even have a windows 7 VM around. Although increasingly I've been able to get the necessary code to run under wine....

But yes: > I hate windows. It sucks so much. Even just using it not that often with my instruments reminds me why I stopped using it.

Is basically my mental state as well. (and, hence, swore off windows around 2000)

I'm curious though, how would having a pure (aka linux) dev environment for macos help you in your situation?

Re: Osx-kvm: Run macOS on QEMU/KVM

#18
post #5
post #2

Previous post from 2016 with 89 comments: https://news.ycombinator.com/item?id=12556609

Yeah, one has been able to do this for some time now. A few years ago I had a setup where (and I admit much of this was for the aesthetic purity of it, not practical reasons), I used a legally purchased copy of macos, copied it unmodified to my VM server, and, with a decent amount of effort, and a patched qemu (for the SMC thingie -- i donno if by now the patch is in mainline), was enjoying a non pirated, non modifie…

Great! These are really two accomplishments that deserve to be shared.

Re: Osx-kvm: Run macOS on QEMU/KVM

#19
post #4

Soooo any way this can help run OS X in docker?

You can't, unless you run qemu there. Which you can do, but it kinda defeats the purpose. And in the best case scenario you still gonna need some changes to host, like extra kernel boot parameters most likely.

Re: Osx-kvm: Run macOS on QEMU/KVM

#20
post #13
post #5

Earlier quoted context omitted.

Yeah, one has been able to do this for some time now. A few years ago I had a setup where (and I admit much of this was for the aesthetic purity of it, not practical reasons), I used a legally purchased copy of macos, copied it unmodified to my VM server, and, with a decent amount of effort, and a patched qemu (for the SMC thingie -- i donno if by now the patch is in mainline), was enjoying a non pirated, non modifie…

I really want this. I'm a hardcore linux guy(23+ years), but I have to run a windows vm for some instruments I have that wont run under wine. I hate windows. It sucks so much. Even just using it not that often with my instruments reminds me why I stopped using it.

Or maybe you were saying you want the Windows equivalent of this? The ability to make native windows apps from linux with ordinary tools?

I don't know what it is, but I thought we've had that for some time now....

Post reply on HN