Jump to content

Is it posible to have 2 gpus passthrough to a windows and macOS. Leaving linux without one so it runs like a server? like killing the gdm or visual interface. Do you have updated guides?

This is my setup:

- Ryzen 5 2600(No internal graphics)

- Motherboard Gigabyte B450m Aorus Elite (2 pci and 1 pci-e)

- One AMD 470 powercolor reference
- One old AMD gpu 4350

The objetive is to have 2 working environment of Windows and MacOS. Linux could be accesable by ssh for a notebook.

Link to comment
https://linustechtips.com/topic/1396257-gpu-passthrough-leaving-linux-without-one/
Share on other sites

Link to post
Share on other sites

I think so. Look up single GPU passtrough... the process should be the same or very similar with multiple cards. 

 

Or you can passtrough the 2nd card the typical way then passtrough the "Linux" card with the single GPU passtrough method. 

 

Note that I haven't actually done this, only read about it and wanting to do so myself. 

Link to post
Share on other sites

On 12/15/2021 at 4:41 PM, WereCat said:

I think so. Look up single GPU passtrough... the process should be the same or very similar with multiple cards. 

 

Or you can passtrough the 2nd card the typical way then passtrough the "Linux" card with the single GPU passtrough method. 

 

Note that I haven't actually done this, only read about it and wanting to do so myself. 

you're right the guides i see so far are single GPU passtrough. But when a follow them i end up with a black screen after starting the VM.
This are the guides i followed:
https://gitlab.com/risingprismtv/single-gpu-passthrough/-/wikis/1)-Preparations


On the logs i only get one error "verStoragePoolObjUsDuplicate: operation failded 'default' already exist with uuid"

 

Link to post
Share on other sites

7 minutes ago, Bad5ector said:

I think I could do this on unRAID. But couldn't tell you the first thing about how to actually do it outside of the unRAID GUI. But I know it can be done.

thanks! But i can't afford to pay unRAID right now

Link to post
Share on other sites

31 minutes ago, fdealesandro said:

thanks! But i can't afford to pay unRAID right now

What I was getting at is that it is possible afaik to do on Linux. I just have no idea how to do it outside of the unRAID GUI, cause I'm a Linux noob.

Link to post
Share on other sites

2 hours ago, Bad5ector said:

What I was getting at is that it is possible afaik to do on Linux. I just have no idea how to do it outside of the unRAID GUI, cause I'm a Linux noob.

yeah i get it, i'm learning too. I see that has a month of free try. I will try as a plan B.

Link to post
Share on other sites

Black screen may have several causes. What graphic card / cards do you use? For newer Nvidia cards you need to prepare a ROM BIOS file to pass on to the VM. See for example here: https://www.heiko-sieger.info/passing-through-a-nvidia-rtx-2070-super-gpu/

 

There are other reasons why it could fail. I ran into problems 2 days ago when I wanted to quickly set up a new passthrough VM. All my existing VMs work fine though.

 

The good thing is that not long ago I set up single GPU passthrough on a really crappy i3 2-core PC and it was easy to do. I have to look into my notes - perhaps I'll add another tutorial for that too. I used Linux Mint for that single GPU passthrough setup, if I remember correctly.

 

Also have a look here as it may help explain the process, and I've added links to other resources: https://www.heiko-sieger.info/creating-a-windows-10-vm-on-the-amd-ryzen-9-3900x-using-qemu-4-0-and-vga-passthrough/.

 

The important thing is: don't give up!

 

 

Link to post
Share on other sites

On 12/15/2021 at 1:39 PM, fdealesandro said:

Is it posible to have 2 gpus passthrough to a windows and macOS. Leaving linux without one so it runs like a server? like killing the gdm or visual interface. Do you have updated guides?

This is my setup:

- Ryzen 5 2600(No internal graphics)

- Motherboard Gigabyte B450m Aorus Elite (2 pci and 1 pci-e)

- One AMD 470 powercolor reference
- One old AMD gpu 4350

The objetive is to have 2 working environment of Windows and MacOS. Linux could be accesable by ssh for a notebook.

yes it's possible. Just setup the passthrough reboot the system ssh in make sure VMs are running properly and yours good to go. Servers are ran basically like this all the time.

Link to post
Share on other sites

On 12/21/2021 at 11:14 PM, powerhouse said:

Black screen may have several causes. What graphic card / cards do you use? For newer Nvidia cards you need to prepare a ROM BIOS file to pass on to the VM. See for example here: https://www.heiko-sieger.info/passing-through-a-nvidia-rtx-2070-super-gpu/

 

There are other reasons why it could fail. I ran into problems 2 days ago when I wanted to quickly set up a new passthrough VM. All my existing VMs work fine though.

 

The good thing is that not long ago I set up single GPU passthrough on a really crappy i3 2-core PC and it was easy to do. I have to look into my notes - perhaps I'll add another tutorial for that too. I used Linux Mint for that single GPU passthrough setup, if I remember correctly.

 

Also have a look here as it may help explain the process, and I've added links to other resources: https://www.heiko-sieger.info/creating-a-windows-10-vm-on-the-amd-ryzen-9-3900x-using-qemu-4-0-and-vga-passthrough/.

 

The important thing is: don't give up!

 

 

thanks so much! I will look into the guides. On my last attempts, i has one vm working but the second one never works. I think that am not disabling correctly the gpu on the host.

Link to post
Share on other sites

On 12/26/2021 at 4:04 AM, 10leej said:

yes it's possible. Just setup the passthrough reboot the system ssh in make sure VMs are running properly and yours good to go. Servers are ran basically like this all the time.

Yes! This might be it. All the guides i see use visual interface and i might try use ubuntu server has host. Now i bought a unraid license from my home pc and i'm working with this but for the real setup i hope that works.

Link to post
Share on other sites

  • 2 weeks later...

Just an update on the black screen issue: A recent update of the edk2-ovmf UEFI package in Linux could be responsible for the black screen. The problem was fixed in edk2-ovmf version 202111-5. So either make sure to run the latest package >=202111-5 or downgrade if it isn't available in your distribution. See also https://www.heiko-sieger.info/creating-a-windows-10-vm-on-the-amd-ryzen-9-3900x-using-qemu-4-0-and-vga-passthrough/#Windows_VM_Installation for more info and workarounds.

 

VFIO things have been working too well the last year so it was high time to introduce a bug for our excitement. Just kidding.

Link to post
Share on other sites

Sure not a big deal at all to accomplish this.

Off the top of my head..
Setup SSH so you can administrate the system.
You have to tell the kernel to ignore the video devices on boot by adjusting grub's kernel load line.

Then it's just a matter of setting up KVM to associate the PCI passthrough devices to the VM.

Gentoo probably has the most detailed guide here on every aspect of this but keep in mind it's specific to Gentoo.
https://wiki.gentoo.org/wiki/GPU_passthrough_with_libvirt_qemu_kvm

"Only proprietary software vendors want proprietary software." - Dexter's Law

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×