Это видео недоступно.
Сожалеем об этом.
Don't Dual Boot, Do this instead | MacOS Big Sur and Windows 10 KVM SINGLE GPU OVMF Passthrough
HTML-код
- Опубликовано: 14 авг 2024
- Hate windows and Mac but still want to able to run them, look no further than kernel virtual machines, they are extremely powerful and deliver almost bare metal performance.
Single GPU Mac and windows passthrough
NOTE: if you want to just want to install only one of the OSs then still please follow the guide till 16:48 , you can step all the windows related steps if you want.
OSX-KVM: github.com/kho...
RisingPrism Guide: gitlab.com/ris...
VBIOS Download: www.techpoweru...
TimeStamps
00:00 Preview
01:47 What will we do
02:20 Bootloader Setup
04:26 Libvirt Configuration
07:56 Obtaining windows 10
09:04 Downloading and placing the GPU ROM
12:06 Starting the network for libvvirt
12:46 Configuring the windows 10 VM
15:46 Setting up the scripts
16:48 Finalizing the windows 10 VM setup
21:03 Configuring the Windows VM for GPU passthrough
24:07 Attempting GPU Passthrough for Windows
24:50 Passing USB interface
25:22 finished windows VM
25:43 Start Mac Big Sur Setup
33:12 Finalising Mac VM Setup
37:55 Defining the VM
41:50 Preparing Mac VM for passthrough
43:43 editing the hooks for Mac
44:54 Trying the Mac VM out
If you need any help join my discord server
discord.gg/5zNa5SQt8m
I dont have discord, but I have a question for example with KVM Windows 10 - all applications work like adobe premiere etc ? and what about cubase music editors will they find the midi devices etc.. ? i tried this before with virtual machines but had problems with software not working.. and of course native windows is better performance, what is your thoughts?
so for adobe apps and midi devices I can confirm that they work. All of them should theoretically work since it is a VM that is meant to be like native. The performance in my experience takes a 2 to 3% hit.
@@obertscloud 1
Hi, excellent video. Can this be done on laptops as well? I am wondering about macOS in particular. I've got a need for Linux and macOS and current apple hardware makes running Linux challenging but flipping it around could be the way to go here. I am guessing, that compatibility would be harder on a laptop to achieve this? Are you aware of somebody who's done it and maybe written about it?
@@21Guitars_ In general it should be fine, a laptop is just a more compact pc right? Just check if there are drivers for all your devices. For example mac os does not work well with Nvidia gpus
Many talk about GPU passthrough, but very few actually demonstrate how to do that. Congratulations, brother!
Many congratulate, few try the guide to see if it works...
This one is INCOMPLETE. If you're on a system with APPARMOR/SELINUX, it DOES NOT WORK without extras and good luck finding those extras...
@@j_t_eklund You think I'm an idiot...?
MEh...
Try harder.
I agree and on arch nowadays this guide just doesn't work for me. The hooks fail to install and when I shutdown I get a black screen assuming I get lucky enough to even get in Windows with alleged broken GPU drivers that always fail@@FreedomAirguns
For those who get a black screen when attempting gpu passthrough, double check that you have the right gpu bios or dump and use your own gpu bios. Ran Into this issue when I was setting this up.
in the preparation part of the wiki it only say amd and intel but i use nvidia what should i do?
I used my own GPU bios and I still got a black screen. Any ideas?
@@yosobo try to pass through as little devices as possible at first, even without a mouse and keyboard. Some PCI devices being passed through caused issues for me (I could pass through my usb ports, but not the ones that run through my motherboards chipset).
Been using this for almost a month now and it likes to black screen if any device is missing that is being passed through.
Hope you can get it working, I'm sure there are people on the discord that will also help.
@@yosobo Edit the Rom with Hex editor how it's described I rising-prism's guide
@@skeetplayz Excuse me, but how you do that? Do you replace the values in the lines of the Hex editor with "0" or "."? How do you actually "remove" the lines from the .rom file?
This is amazing. This is the singular most useful thing I've learned in the past few months, and it has improved my productivity by a lot!
Love that you spent the time to index the sections, good work.
thank you!!
@@Coodos Yeah, the timed brakedown of videos sure helps to make them more useful in a long-term fashion. I hate digging through videos to find stuff when I try to do it.
I have a relatively powerful server working as my PC. This is exactly what I wanted. Excellent tutorial
This is the setup I'm looking for! I can finally play my spyware games again
I also use Arch btw
🗿
I use arch btw
Nowadays everyone uses arch ;)
I should say I use dwm btw :)
@@SansDev arch is easy, dwm is easy as long you know C. I also use dwm btw :)
@@jd-raymaker nice :) but still hard
Way more understandable and less "this is crazy hard heckermen stuff"-mentality than Mutahar
I guess its pretty complex but the dude in the video makes it so easy to understand, thats a sign of a good teatcher right there
it’s all generally very easy.
Problem is, his audience isn’t that educated on tech, so he’s trying to appeal to all of them
@@YISTECH I'm not a complete noob on PCs but it was easy enoguh to follow the video along side with the guide, I had some black screens and took a while to get file sharing working, honestly pretty good experience :)
Thanks for this, I’ve been needing macOS and Windows lately and while I have a second RX 580, my current PC only has one gpu slot (small form factor) 😎🙌🏼💯
thanks for watching :D
If it has an intel CPU you can route the GPU output through the motherboard HDMI simultaneously while using its own ports, not sure if this is what you need, hope it helps.
@@Coodos So I finally got a chance to sit down and try this, I have created the VM but, OVMF refuses to boot from my Windows 10 ISO. I select it in the Boot Device Manager as you show in the video, hit enter, and it flashes black for a second then goes back to the menu as if nothing happened. It doesn't show me an error message. I've installed Windows 10 using this ISO before so I'm confused on that front.
A fresh W10 iso from Microsoft works, but I'm still confused as to why my other one doesn't at all? I am also totally unable to boot from my existing Windows UEFI install.
@@IgnoreSolutions hey! please join my discord server to get help, link shall be in the description and the pinned comment
The content is very good. Kudos for that. The editing could be better to remove unneeded recording glitches. But the condescending tone towards Windows and Mac users, when the whole point is to convince them to use Linux as the host and the other OS as guests is a disservice for the Linux community and why many people rather not participate in bullying.
So much this. I like linux, it's nice for many things. I like Windows too because that is also nice for many other things. What makes me stay away from using Linux as my main operating system is the toxic community around it that seems to have a crazy superiority complex
This. I think their dislike for windows and Mac came out a bit too much
Tried out multiple tutorials, this one is the only one that worked for me. Big thank you to you and RisingPrism!
Dam this guides gonna help me a lot I can tell.
I use arch too btw.
Debian btw
Yeah! I'll also use this guide pretty soon
Ohh the meme
The best video EVER about GPU-Passthrough!!! It worked just fine on my PC with Kubuntu 20.04 LTS!!! Cheers from Honduras!!
Wow this is amazing, thank you for making this video! I was having some problems with a black screen when starting the VM, but then solved it by extracting the bios from the GPU (using GPU-Z in native windows, but it can be done from Linux as well), and then I had to edit it with a hex editor to "patch" it. After doing that, everything is working just fine. Also, I'd recommend to use virtio instead of SATA, as the Arch wiki suggests!
Hi Mateo same problem here, black screen after starting the VM with NVIDIA GPU, I've already extracted the rom, but would be awesome if you could share how did you do the "path" thing, thanks in advance and to @Coodos too!
@@cfmoreu9921 take a look at the gitlab link in the description and go to section 6. There it says to open the ROM with a hex editor, search for "Video" text and remove everything before that line.
@@El_Batipapa Thanks! That's it!!! only it was "VIDEO" in my case ;)
Thank you, I was with the same problem.
@@alexandrealmeida431 happy to help!
This is my dream setup! Thanks for making this video, bookmarked!
I wish I could do the opposite. Run a pass through Linux VM on my Windows host machine.
@@carecavoador you could clone your windows drive to an external ssd, install linux, follow the guide and have your windows setup be secondary. that should be the best way
@@carecavoador I just found it easier to dual boot with Linux and Windows, and just use Linux when I need to use Mac Virtual Machines.
Thanks for this tutorial! Was looking for this for so long!
You uploaded this on my birthday; a shame that I didn't see it then. Great tutorial!
happy belated birthday friend :)
I wish there was a form of GPU-P for KVM so you could have them all run at the exact same time.
that will be sooo cool
ruclips.net/video/oCUJVwNuaXA/видео.html
I haven't seen this video yet, but by the intro I can tell that this is amazing!
thank you :)
Damn, it's almost my bedtime and I watched the whole video. Currently testing out the Fedora 37 Beta on which I finished testing windows with gpu passthrough. Thanks for the detailed guide, much of the stuff in this video applies to Fedora as well.
❤from India
Choked on my food laughing with that neofetch "btw" alias hahaha Great video mate!
i havent looked at this in detail yet, but i assume the scripts close xserver before binding the GPU to the VM, would it be possible to also relaunch X without the GPU, for access over VNC from the VM?
If you have a laptop with a GPU you can just passthrough the GPU and use the host with the integrated chip. However, unless your laptop has display outputs directly linked to the GPU you won't be able to display directly to a monitor like typical passthrough setups. In these situations I'd recommend looking glass and ivshmem-scream (slightly complicated to setup, but I use it when traveling and for vr since my VR headset requires using my usb-c output.)
What do you mean by just passthrought ? Just executing the script and ignore the drivers ?
One big important thing about GPU passthrough !!! If while booting macos the screen freezes at different parts of the loading proccess like it happened with my RX 580 than you need to disable in the host system bios the resize bar (4G decoding) or SAM option because macos doesn't support that yet. On my Asrock x670e motherboard bios the option is in Advanced>PCI Configuration. This option is enabled by default on modern motherbords and needs to be disable.
Let's give apple and microsoft a run for their money.
NOTE: if you want to just want to install only one of the OSs then still please follow the guide till 16:48 , you can step all the windows related steps if you want.
OSX-KVM: github.com/kholia/OSX-KVM
RisingPrism Guide: gitlab.com/risingprismtv/sing...
VBIOS Download: www.techpowerup.com/vgabios/
Imagine self hearting comments
one question: will the virtual PC's USB act like native? i mean is it plug and play (USB or thunderbolt)? thanks! really nice tutorial btw
Overall, they will be as close to native as you can realistically get them. Because you pass your USB controller, USB devices should work just like normal, however, I'm not sure about thunderbolt (They should, but I don't know for certain).
I would've never thought I would laugh watching a tutorial lmao
Will this still work with Nvidia graphics cards? For example a GTX 1080 Ti
thank you for this awesome tutorial how to install spyware on my PC I've enjoyed it very much
Glad you liked it
install windows 7, there is less spyware in there i think
At least it will only be running every time you choose to run the VM, and not every time you turn on your PC.
wow, dude, it's like 6am, I was going to go to sleep, but now I can't stop myself from doing this... Great video btw 😊
Hi, just wanna ask, if it's single gpu, how much impact on performance using this will give? My GPU is pretty weak, RX560, and I specifically only bought that for my hackintosh, as I couldn't get any cheap RX570 or 5600XT. Thank you!
well in my experience I lose out on 1 to 2% performance, mainly the loss would come in the form of CPU and Disk performance, there is near 0 performance loss on the GPU side as you pass it through in my experience, I dont have a really good GPU either, I am on Rx570
Wow it will me make save a lot of money! I was thinking about buying another GPU to use it for the VMs (in passthrough) but now I don't need it anymore!
Thanks for this amazing tutorial. Will test this out on saturday Greetings from Switzerland :)
Hope you enjoy it! shall you have any questions or get stuck feel free to drop a question in my discord server, the link for which shall be in the pinned comment or the description
Am I understanding this correctly. You can install Windows and game without loosing "too much" perfomance with this option? Because that's the only reason I am still using windows.
yup there is like 1 or 2% fps difference really
you can also set up hooks to disable background services that you don't need like steam or discord
Would this work with the host machine being a thinkpad z16 (rx 6500M) as its natively supported under macOS? Not sure if a mux switch is necessary
What's the advantage here compared to dualbooting? Can I suspend/resume the VMs? Can I use snapshots? I obviously cannot run two at a time, or switch back to the linux system behind the VM, right? How's IO performance to that virtual disk compared to native with NVMe or maybe even passed through NVMe?
That's what I was thinking
this worked really well, except for audio. I have the same issue with other vms and audio, is the best way forward to buy a USB soundcard ?
Hi Coodos, love your video with a really good background music ... good taste. Could you tell me what did you use to setup your working environment (background wallpaper, computer stats in the control panel and the terminal setup ). It's pretty minimalistic with only the basic informations. Couls you give me (us) some advice? Thanxalot ... retox
Thank you for this Im planning on ditching dual boot and going with a gpu pass through for win10
Amazing, simply AMAZING!!!! Thanks a lot for sharing your efforts!!!
This video tutorial is basically a dream come true, thanks. Quick question tough: is it possible to configure double monitors for windows and mac?
like seperately where one runs windows and other mac? no
@@Coodos Like when i open mac os or windows is it possible to expand to other monitors? i understand that since i have only one gpu only guest OS will be available.
oh yeah I use it with 3 monitors
@@Coodos That's just great, hopefully i will be able to replicate everything you teach on the tutorial, starting right now, thanks again for being so helpful.
Hey really love the tutorial I was just wondering what desktop environment are you using? I will be installing arch soon and i wanted to try out your desktop as it has the kind of vibe I'm thinking of
hi
i love your arch setup
can you make a video about this setup?
terminal and boot and all tweaks?
man this is the best thing youtube has recommended me in a while, single handedly the best guide ive seen
Windows user for a long time that holds back the switch to Linux due to Only-Win programs…
I will definitely use this, and I hope I could make my switch once for all.
I love the vitriol, it was splendid
9:12 I have integrated intel UHD graphics (Iris plus graphics G1 + i5-1035G1 Ice Lake) what do I do now?
Great vid! Now I don't have to reboot every time I wanna play a game that doesn't work on my PC which uses Arch BTW!
Linus def needs to see this after his switch to Linux
that would be cheating tho
@@yzapre Needs to be a separate video anyway because of complexity. But I actually thought about emailing them about this video :D
hello, when I try to start up this vm, it just takes me back to the linux lock screen without doing anything else. Anyone else had this problem? What do I do? Thanks!
I'm having the same problem on a 1060 :/
Excellent video... very thorough.. Definitely worth a Sub ;-)
Thank you!!!
From 26:00 on absolute non sense for me, but otherwise great post, thanx :-)
i saw what you did there at 1:00 ;-) And i loved it.
if you have access to an intel cpu with igpu a video guide on passing through a virtual gvt-g gpu would be great.
that would allow the ultimate setup for a lot of people:
Linux and osx sharing the igpu via gvt-g
windows on the dgpu output via looking glass
this setup would work on some high end laptops too.
is that really possible? that's my dream. any idea where i can find more information?
@@smhsophie y have such setup on my phone yeah in Linux you are able to pas thru the gpu what he didn't tell is that you need a multi core graphic card and the video bios needs to allow such functionality cause not all cards supports grid configuration
Me who's planning to try this on my pentium 4, 4gigs ram:🗿 am I Joke?
note to people who only has vga out on igpu, you cannot run macos with a vga connection, at least not new versions. apple removed support for VGA several years ago.
I did this with my core m3 laptop just to try it and it worked pretty well. About as good as you can expect a vm running on a core m3 system with 8gb ram.
Changing the group is a redundant step when using systemd ;)
"This setting is not required or honoured if using systemd socket activation."
Thanks for the Tutorial it work great..for ho have nvidia GFX replace this in the xml of your vm to bypass nvidia driver error.
So it can work with an nvidia card ?
@@gnacktrack96 yeh perferctly
@@imedox_dz ok thanks, I have a i7 2600k and a nvidia 1050 ti, you think it can run OS X Big Sur ?
@@gnacktrack96 no big sur not work with nvidia you need serria
@@imedox_dz A GTX 1660 super will work on siera?
thanks a lot for this video!! GPU prices are insane right now so it's either this or a gt 730 whatever lol. Hopefully it works fine with a full AMD Tumbleweed build (haven't seen the video yet)
This was an awesome experience going through this. I will be a regular on your channel from now on.
Question: Would this reboot my whole system to Windows on running from terminal? Or I can switch between Windows and Linux like an App?
Looking forward to the day where I can also do all my Gaming in Linux (Nix btw)
Awesome!!! I loved NixOS when I tried it, it's absolutely brilliant
would this work with a recent nvidia gpu such as the rtx 2060? really wondering if it would cause any issue with the passthrough cause i know its not supported in native
And while the bloatware-ing process begins; also know as the Windows installation. Excellent :)
This is great. Congrats. I'll do my best only on W10 or maybe W11 using a RTX 3080, let's see how it goes.
I have the RTX2060, do you know if it's compatible with Mac?
@@PedroFernandezRuiz Newer NVIDIA GPU's are not compatible with MacOS. You would need an AMD card in order to run MacOS with GPU acceleration. I would check the OpenCore Documentation for information regarding supported NVIDIA GPUs :)
Thanks Shane!
@@ShaneAJM So there was support for Nvidia video cards before, they removed support for it since version 10.14 of Mojave, due to conflicts associated with the API.
I was looking for a good guide thank you 😊
What is your desktop environment? and how much customizing have you done to it?
xmonad
A bit question, if i messed up at 09:04 does it affect my hardware permanently? It has a word bios in it tho
no it does not, the virtual device mounts the vbios not your actual hardware
@@Coodos thanks dude
My primary concern, and why I'm still dual-booting into Windows, is hardware compatibility with my soundcards and music equipment. Is that something you think will work driver-wise? Because if so, I'd love to give this a shot myself.
if it is a physical PCI soundcard you can pass it to windows or mac directly and it would work as if it does on bare metal
I managed to passthrough a USB interface (behringer HD204) by passing through the entire pci device for the usb controller it was attached too and I have full, low latency, ASIO supported sound in the windows VM, works great if you can pass through the controller properly (didn't work until I got the ACS patched kernel)
Finally make it work. Very tricky. Only one problem, when shut down guest, the host machine get rebooted. Any idea how to fix it?
You are legend. Thank you legend
Thank you so much. Will try this out.
Hope you enjoy
i built a hackintosh but usb passthrough is killing me. USB is a pain to fix (lower power issue when multiple device is connected) however i use windows too for gaming and when i saw this i was curious. I am
pretty new so is manjaro kde a good choice for this? using plasma desktop env
get a pcie card with multiple usb controllers and pass through a whole controler to the VM
This was a really cool in-depth tutorial. Are there any limitations on single GPU pass-through? Such as integrated graphics won't work or only specific GPU families?
limitation is mostly the os you are trying to run. modern versions of MacOs for example cant handle nvidia cards
doesn't work on valorant etc unfortunately. thats the only thing keeping me from always using a kvm. I dual boot but use the same disk in a kvm if I dont need bare metal windows.
Might be the default configuration or your machine is being detected as virtual. Look into it you might get it working
@@ckkiockkio1148 they use a kernel level anticheat and they always patch all the methods to get it to work
Best guide ever. Thanks a lot
Definitely gonna try this out but i have one question tho, can i clone the vm as a backup using virt-manager(gui) or i have to repeat the steps all over again?
Quick question, my main reason I'm sticking to windows is because my drawing tablet (hunion) doesn't have linux drivers available, would it be possible to just 'passthrough' the device and then install the drivers on the windows VM? I'd like to test it myself but I have nowhere to backup until the next month at least.
yup totally! my wacom although it has drivers for linux they suck so I use it on my mac vm mostly
is there a performance difference between regular windows 10 and windows 10 KVM?
yes there is, KVM performs 2-3% worse than native in my testing
Quintillion of likes to you my friend :D
Thank you so much for this guide
Thanks!!! :D
"I use arch btw" I died lmao
Thanks for the usefult tutorials. Do you think it is possible to pass through the Thunderbolt 3 controller of the motherboard (Gigabyte Z390 Desiganre) to a VM? I'm asking because I'd like to use my TB audio interface (UAD Apollo Twin x), but I did not find any information regarding this. I've been using a baremetal hackintosh setup for music production, but running it in KVM would be more appealing to me for specific reasons.
yup you shall be able to pass the PCIe device associated to it
@@Coodos Sounds great, I'll give it a try!
@Alexander Skula Yes, it did, but I still have issues. You can read it in details if you want, I posted it on reddit: www.reddit.com/r/VFIO/comments/ppi993/kvm_thunderbolt_audio_device_uad_apollo_twin_x/
I like your style! You got a new sub.
Thanks :)
Very clean step by step.
What Linux distro are you doing this on? Could you do this on proxmox? And what gpu did you passthrough?
Was following this guide until I learned that it is next to impossible to extract VBIOS from a laptop GPU. I fiddled around with the BIOS from Lenovo with no results. Any idea how I can achieve this on a laptop?
Lol because the video bios on laptops is bundled with the firmware so you need to backup your entire uefi then edit what you want in binary well a wrong byte will break you mobo for ever you will be able to restore in offline mode 😉
are u using ZFS file system here ? im beginner to linux btw but managed to build my hackintosh but so tired of the cpu load of my 3930k so i thought to try this method to get rid of os x problems that one faces with tweaking of clover :(
Is it possible to let the VM-manager to dynamically adjust the number of cores/threads and amount of ram in real time depending on the OS/VM you're using? Like if you drag the mouse pointer over to macOS it will give it more cores and ram and when you drag it to windows it atomaticallt adjust it so that windows get more resources?
That would be great if you're using an i3/i5 or actuallt any cpu for that matter.
no those are not hotswappable
Does this require a dedicated GPU, or will it work with an onboard one, too?
Can you do this without gpu? Like ryzen 2200g apu? It says it hyperv enabled but is it performance wise?
Hi! and I thank you soooo much for this working! guide. I have one question I think could be interesting for many other users too. What if I would like to go with the cpu pinning? I have 6 cores on my system so let's say I would like to reserve 3 cores for the virtual machine. What extra steps do I need to do? Can I just add something or need to go back and start over the whole procedure?
Brilliant tutorial! Can't wait to try it... Just wondering if it will work as well as this with Windows 11?
question, the gpu passthrought logic on macos is the same for hackintoshes? I mean, It must to be an AMD GPU for newest macOS versions
Yep it's the same
@Coodos are you able to use your Linux host at the same time that the windows guest is on, and are you able to do so on the same monitor?
Thanks. HDMI cable helped to get picture :D
this, now i'dont need run wsl on windows. gonna try later, thanks a lot man !
Waiting for your tutorial about ricing xmonad
Question, do you use xmonad and if you are then what is your config because it looks really good
Thanks for the tutorial!
Nothing happened when I tried to start the vm. I restarted the PC wich I think was a mistake, because when I was back I linux it just blackscreened
same exact thing here. I also cannot remove Display Spice and Video XQL. been looking at multiple tutorials but all are the same.
I do the whole process, but when I start the virtual machine the monitor screen turns off and does not generate any image. Can you help me identify the problem?
I have a GTX 1650 super, ryzen 5 3600. Thanks