6 ms·
Alternative route is to build a VFIO capable computer and run OS X or whatever your heart desires in a VM with real hardware (read GPU) passed through. You can
by xaduha 10y ago
Alternative route is to build a VFIO capable computer and run OS X or whatever your heart desires in a VM with real hardware (read GPU) passed through.
You can even run several VMs with several GPUs at the same time. Essentially you can have 2+ computers at the price of one.
- CPLX 10y agoThis sounds interesting. Know of any unusually good guides/resources for this?
- xaduha 10y agoI can't judge from the beginners standpoint, here are few places to start looking https://nixos.org/wiki/QEMU_guest_with_VGA_passthrough https://nixos.org/wiki/QEMU_guest_with_VGA_passthrough https://www.reddit.com/r/VFIO https://www.reddit.com/r/VFIO https://www.reddit.com/r/unRAID https://www.reddit.com/r/unRAID https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVM... I'd recommend going with NixOS and libvirt, but other communities such as around unRAID or Arch might be bigger.
- mountaineer22 10y agoCan you describe your current setup(HW/OS)?
- xaduha 10y agoi7-3770 (no K), ATI GPU, Gigabyte B75-D3V board. I boot into NixOS without X server and launch a Windows VM with libvirt using this config (redacted a bit). https://gist.github.com/xaduha/226ff1b991bd54db09ff0bbd1df79314 https://gist.github.com/xaduha/226ff1b991bd54db09ff0bbd1df79... snapshot=on option allows me to discard changes to the image with every launch, folders like Desktop, Downloads, etc are not part of the image. When I do need to keep the changes I use a commit command, not mucking with actual snapshots anymore. $ virsh qemu-monitor-command MAIN --hmp commit all As for macOS VM, I haven't used one recently, but it's totally possible.
- jrcii 10y agoYou can run OS X with qemu on Linux.
- rcarmo 10y agoIt crawls, even under KVM.
- xaduha 10y agoIt runs fine, you probably misconfigured something.
- rcarmo 10y ago"fine" for me encompasses fluid rendering of the interface.
- xaduha 10y agoIt's pretty damn fluid with real GPU passed through, literally no difference compared to running on bare metal. If you're not passing a real GPU then you're doing it wrong and shouldn't expect much anyway.
- Hydraulix989 10y agoAre you using VMware for this?
- xaduha 10y agoI'm using kvm, which is basically qemu with hardware acceleration. VT-x is minimum, VT-d is better. Also by default qemu/kvm only uses one processor core I think, what are using to launch it? A script?
- Hydraulix989 10y ago
- dperfect 10y agoI use a configuration like this (with Proxmox) to send content to the various TVs in my house (HDMI over Cat 5e). 4 cheap GPUs in the machine allow for up to 4 VMs running OS X (my preferred OS for media) to simultaneously play HD content, run classic emulated games, web browsing, etc. (haven't bothered with UHD yet, and probably won't for a while). Of course, a lot of HD content can run with very modest specs (as long as the codecs are accelerated on the GPU), but for occasional content that requires CPU decoding or players/sites that aren't yet supported on standalone devices (Apple TV, Roku, etc), it's a really nice solution. Plus, it keeps each TV very clean in terms of cables and hardware. I've done hackintosh on bare metal in the past, but even if I were setting up a single-headed hackintosh now, I'd still go the VFIO route - it makes updates much less stressful since you can quickly roll back to a snapshot if you break something.
- weitzj 10y agoDo you have this configuration by chance as a GIST on GitHub? There are KVM/Qemu configurations, but especially ProxMox would be nice
- dperfect 10y agoKind of a late response, but here are the basics of my setup (maybe I'll publish some specifics in a gist at some point): - Hardware (which is dated now): Asus Z87 Pro with i7 4770, 16 GB Memory, 4x AMD Radeon 6450 cards (< $20/ea used) - Proxmox/host config: vfiobind the PCI device IDs for graphics cards on boot, slightly modified pve-q35.cfg (workaround for some OS X issues on q35), using fairly standard VM args for booting OS X - GPUs work fine after a standard OS X install, but to get audio working over HDMI, I needed a couple of edits to my DSDT (basically just inserting a GFX0 device with "hda-gfx" = "onboard-1", a standard HDAU device, and a DTGP device), and boot with the Enoch bootloader (this can be specified in the VM args to avoid having to install to disk). No extra kexts needed. That's about it. Some of those things may no longer be necessary in the latest version of Proxmox (I haven't updated my base system in a while). Once I got things working, it's been completely stable for more than a year.
- mountaineer22 10y ago
- rcarmo 10y agoThat's nice, but further down the thread you say you haven't tried OSX at all. Anyone else have a useful data point for this scenario?