Troubles with GPU drivers

Questions about virtualization software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Gebonimo

Troubles with GPU drivers

Post by Gebonimo »

Hi Minters,

I have trouble setting up my GPU drivers.

After setting up my VM, I've installed the virtio drivers. But in the VM device manager i see that my GPU is not recognised yet.

I went on amd official website to dl the drivers, but whenever i try to install it, it fails.

Do you have any ideas ?

I'm keep doing research on it but any help could be great :)

Thanks
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
ajgringo619

Re: Troubles with GPU drivers

Post by ajgringo619 »

A VM virtualizes all hardware, so you'll never see your GPU.
Gebonimo

Re: Troubles with GPU drivers

Post by Gebonimo »

Sorry my english is not very good.

I meant that my device is seen by the Windows device manager but seen as "Unknown Device". (see picture)
https://imgur.com/a/DLHWrcW

I know this is my GPU because when i right click and ask to install the driver automatically it says that this is the AMD Radeon R7 but it can't install the driver due to an unknown error.

I've tried many times to install it manually but it keep failing, I don't know why.

I hope I made myself clearer
ajgringo619

Re: Troubles with GPU drivers

Post by ajgringo619 »

OK, so the VM is Windows, correct? What VM software are you using?
Gebonimo

Re: Troubles with GPU drivers

Post by Gebonimo »

Right.

I use qemu-kvm and virt-manager.

Just asking, it might come from this but I can't test for few days, is it possible that the problem is that my Radeon GPU is connected via DVI to an other screen ?
ajgringo619

Re: Troubles with GPU drivers

Post by ajgringo619 »

Sorry, I have no experience with QEMU.
powerhouse
Level 6
Level 6
Posts: 1144
Joined: Thu May 03, 2012 3:54 am
Location: Israel
Contact:

Re: Troubles with GPU drivers

Post by powerhouse »

Well, I don't use virt-manager as it causes more problems than it solves. In order to debug your WIndows VM, convert the xml config file as follows:

Converting from domain XML to QEMU args:

Code: Select all

virsh domxml-to-native qemu-argv win10.xml
or:

Code: Select all

virsh domxml-to-native qemu-argv --domain win10
Can you post the resulting qemu-argv file here?

Make sure iommu is enabled on your machine:

Code: Select all

printf "IOMMU Status: ";   if cat /proc/cmdline|grep -i iommu; then printf "enabled\n";else printf "disabled\n";fi
I assume you attempt to do GPU passthrough.

I've written a tutorial on that where you may find more information and troubleshooting. See: Running Windows 10 on Linux using KVM with VGA Passthrough.
Subjects of interest: Linux, vfio passthrough virtualization, photography
See my blog on virtualization, including tutorials: https://www.heiko-sieger.info/category/ ... alization/
powerhouse
Level 6
Level 6
Posts: 1144
Joined: Thu May 03, 2012 3:54 am
Location: Israel
Contact:

Re: Troubles with GPU drivers

Post by powerhouse »

Gebonimo wrote: Thu Dec 20, 2018 5:17 am Right.

I use qemu-kvm and virt-manager.

Just asking, it might come from this but I can't test for few days, is it possible that the problem is that my Radeon GPU is connected via DVI to an other screen ?
That doesn't matter. See my last post and do the steps in Part 9 - Check Configuration.
Subjects of interest: Linux, vfio passthrough virtualization, photography
See my blog on virtualization, including tutorials: https://www.heiko-sieger.info/category/ ... alization/
Gebonimo

Re: Troubles with GPU drivers

Post by Gebonimo »

I've tried with the W7 VM.

I'll install a Windows 10 VM instead, following your advices and guide (again :) )
powerhouse
Level 6
Level 6
Posts: 1144
Joined: Thu May 03, 2012 3:54 am
Location: Israel
Contact:

Re: Troubles with GPU drivers

Post by powerhouse »

W7 doesn't support UEFI out of the box, so my tutorial doesn't work with W7.

Windows 10 supports UEFI which is generally the better option.

You can follow my tutorial also for W7, but need to make some modifications to load Seabios. Haven't done it for a while, but it's easy and there is plenty of documentation on that too.
Subjects of interest: Linux, vfio passthrough virtualization, photography
See my blog on virtualization, including tutorials: https://www.heiko-sieger.info/category/ ... alization/
Locked

Return to “Virtual Machines”