You are not logged in.

#1 2022-02-06 01:54:23

萌新-Newbie
Member
Registered: 2022-02-06
Posts: 4

GPU Pass Through KVM

Problem Description:
- The drivers for this device are not installed. (Code 28)
- Could I read partitions inside partitions?

More detailed Description

I tried to make my NVIDIA Geforce MX350 to pass through, and use this in the windows virtual machine directly. I followed the direction on the wiki, and some other tutorial. I shall briefly describe my steps in below:
1. sudo pacman -S qemu virt-manager libvirt libvirt-openrc dnsmasq virt-viewer vde2 bridge-utils ebtables libguestfs openbsd-netcat edk2-ovmf
2. I edited vim /etc/mkinicpio.conf. The file looks like:
cat /etc/mkinitcpio.conf | grep -v '#'

MODULES=(vfio vfio_iommu_type1 vfio_pci vfio_virqfd nouveau nvidia_drm nvidia)

BINARIES=()

FILES=()

HOOKS=(base udev autodetect modconf block lvm2 filesystems keyboard fsck)

3. I edited this, the content is cat /etc/modprobe.d/vfio.conf
options vfio-pci ids=10de:1c94

4. I ensured that NVIDIA card is the only one in the iommu group 14. dmesg | grep 'iommu group 14'
[    0.551201] pci 0000:01:00.0: Adding to iommu group 14

5. create a virtual machine. Take advantage of virt-manager mainly. Here is my xml fiile. https://pastebin.com/AanMi9sX

lspci -nnv results are https://pastebin.com/BePpEZtU
journalctl -b results are https://pastebin.com/VgbZDRYL

When I open windows - device-manager -  it gives following error:

The drivers for this device are not installed. (Code 28)

There are no compatible drivers for this device.


To find a driver for this device, click Update Driver.

I have attempted to install the nvidia driver from their website(https://www.nvidia.com/content/DriverDownload-March2009/confirmation.php?url=/Windows/342.01/342.01-desktop-win10-64bit-international.exe&lang=us&type=GeForce)(I already install virtio drivers). However, it aborts itself halfway and tell me. This NVIDIA graphics driver is not compatible with this version of windows. They could not found compatible graphics hardware.

For my second questions, it is essentially about lvm. I passed lvm directly as one partition into windows. However, the virtio make windows believe that this is a disk and thus partitioned inside it. Therefore, I can't mount this disks any more, as mount will complain this is broken.

https://pastebin.com/UHGwaRy1. The /dev/mapper/storage-windows is one that I think is more important. And the results clearly show that windows partitioned this as EFI, Microsoft reserved. Microsoft Basic Data(NTFS, which is one I want to mount), and Microsoft Recovery.

Offline

Board footer

Powered by FluxBB