virtio-win / kvm-guest-drivers-windows

Windows paravirtualized drivers for QEMU\KVM
https://www.linux-kvm.org/page/WindowsGuestDrivers
BSD 3-Clause "New" or "Revised" License
2.03k stars 386 forks source link

Error when i try to install viostor.sys by devcon tool #629

Closed Donoy closed 2 years ago

Donoy commented 3 years ago

Hello everyone: When I use the tool(DEVCON.exe) with this command "install viostor.inf "PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4&REV_00" to install the viostor driver on my vm which the OS version is windows 7, I encountered a problem. Snipaste_2021-08-13_15-18-33 I find an error in the device management, the Red Hat Virtio SCSI controller has an exclamation point. And the status of the device is 'the device can't be run! the error code is 10'. Snipaste_2021-08-13_15-21-10 The hardware ids of the viostor device: Snipaste_2021-08-13_15-20-53 The device instance path is 'ROOT\SCSIADAPTER\0000': Snipaste_2021-08-13_15-20-38

So i did the same in windows 10 20H1. And there appeared a similar error. Snipaste_2021-08-13_16-29-52 The error code is 31. Snipaste_2021-08-13_16-30-31 The hardware ids of the viostor device: Snipaste_2021-08-13_16-30-53 The device instance path is 'ROOT\SCSIADAPTER\0000': Snipaste_2021-08-13_16-30-44

In my environment, there is no mounted hard drive that uses this type (VirtIO,viostor) device. Maybe this can be the reason for the problem.

My problem is if i installed the viostor.sys in where no mounted hard drive that uses this type device, does the error in device Manager have any impact on the system and why the device instance path is 'ROOT\SCSIADAPTER\0000'? What does it mean to display instances(ROOT\SCSIADAPTER\0000) in device Manager ? Can I manually delete the device in the device management?

I look forward to hearing from you. Thank you very much.

vrozenfe commented 3 years ago

@Donoy Do I understand correctly that you are trying to preinstall the drivers on your system? (So called software-first installation scenario https://docs.microsoft.com/en-us/windows-hardware/drivers/install/software-first-installation) If yes, than on Windows 10 I would suggest using msi from https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.204-1/virtio-win-gt-x64.msi On Windows 7 you can try using devcon dp_add to install the package devcon install creates a root devnode. This is probably not what you want.

Donoy commented 3 years ago

Thank you very much for your reply @vrozenfe.

The background of this question is this: I want to use the viostor driver feature in Virtio, i use the pre-installation (devcon dp_add infFilePath) method to have some problems in my scene. Then i tried to use the direct installation (devcon install infFilePath HID) method and found that the problem was solved, but a device with an exclamation mark appeared in the device manager. In fact, i am not very familiar with this type of driver, and i don't know much about the device manager, so i can only come to the community for help.

I just want to know about the cause, impact of this exclamation point device and how i can solve this problem, if i have to use direct installation (devcon install infFilePath HID) method.

Supplementary part: I installed the viostor driver by referring to the commands in the comments in the viostor.inf file. image

vrozenfe commented 3 years ago

@Donoy

If you want to install drivers on a system with virtio devices already attached and Windows cannot find a suitable device driver, then you should use "devcon install". However, if you want to preinstall a driver then you should try using "devcon dp_add " .

Best regards, Vadim.