Gena Makhomed
2017-Mar-14 18:05 UTC
[CentOS-virt] Red Hat VirtIO SCSI pass-through controller
Hello, All! virtio-win.iso contains two different Windows drivers. these Windows Server 2012 R2 drivers have different hardware IDs: \vioscsi\2k12R2\amd64\vioscsi.inf "Red Hat VirtIO SCSI pass-through controller" PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00 PCI\VEN_1AF4&DEV_1048&SUBSYS_11001AF4&REV_01 \viostor\2k12R2\amd64\viostor.inf "Red Hat VirtIO SCSI controller" PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4&REV_00 PCI\VEN_1AF4&DEV_1042&SUBSYS_11001AF4&REV_01 When I use "VirtIO SCSI controller" in virt-manager, and when I install Windows Server 2012 R2 - I can use only viostor driver and can't use vioscsi driver, Windows Server 2012 R2 can't load vioscsi driver (?) from virtio-win.iso and did not see virtual hard disks with vioscsi driver. Only viostor driver work normally. How I can use "Red Hat VirtIO SCSI pass-through controller" for Windows Server 2012 R2 virtual machine, what I need to configure in xml-config? current /etc/libvirt/qemu/windows.xml config: <controller type='scsi' index='0' model='virtio-scsi'> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </controller> <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='none' io='native' discard='unmap'/> <source file='/volume/kvm-windows-system'/> <target dev='vda' bus='virtio'/> <boot order='1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> </disk> Additional info: =============== virtio-win.iso version: virtio-win-0.1.126.iso from https://fedoraproject.org/wiki/Windows_Virtio_Drivers OS: CentOS Linux release 7.3.1611 (Core) QEMU: qemu-kvm-1.5.3-126.el7_3.5.x86_64 Windows Server 2012 R2 MSDN installation ISO image: en_windows_server_2012_r2_with_update_x64_dvd_6052708.iso sha1sum: 865494e969704be1c4496d8614314361d025775e size: 5397889024 bytes devcon.exe output inside Windows Server 2012 R2 Virtual Machine: PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4&REV_00\3&13C0B0C5&0&40 Name: Red Hat VirtIO SCSI controller Hardware IDs: PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4&REV_00 PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4 PCI\VEN_1AF4&DEV_1001&CC_010000 PCI\VEN_1AF4&DEV_1001&CC_0100 Compatible IDs: PCI\VEN_1AF4&DEV_1001&REV_00 PCI\VEN_1AF4&DEV_1001 PCI\VEN_1AF4&CC_010000 PCI\VEN_1AF4&CC_0100 PCI\VEN_1AF4 PCI\CC_010000 PCI\CC_0100 PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4&REV_00\3&13C0B0C5&0&50 Name: Red Hat VirtIO SCSI controller Hardware IDs: PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4&REV_00 PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4 PCI\VEN_1AF4&DEV_1001&CC_010000 PCI\VEN_1AF4&DEV_1001&CC_0100 Compatible IDs: PCI\VEN_1AF4&DEV_1001&REV_00 PCI\VEN_1AF4&DEV_1001 PCI\VEN_1AF4&CC_010000 PCI\VEN_1AF4&CC_0100 PCI\VEN_1AF4 PCI\CC_010000 PCI\CC_0100 PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00\3&13C0B0C5&0&38 Name: Red Hat VirtIO SCSI controller Hardware IDs: PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00 PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4 PCI\VEN_1AF4&DEV_1004&CC_010000 PCI\VEN_1AF4&DEV_1004&CC_0100 Compatible IDs: PCI\VEN_1AF4&DEV_1004&REV_00 PCI\VEN_1AF4&DEV_1004 PCI\VEN_1AF4&CC_010000 PCI\VEN_1AF4&CC_0100 PCI\VEN_1AF4 PCI\CC_010000 PCI\CC_0100 -- Best regards, Gena
Jean-Marc LIGER
2017-Mar-15 15:42 UTC
[CentOS-virt] Red Hat VirtIO SCSI pass-through controller
Le 14/03/2017 ? 19:05, Gena Makhomed a ?crit :> Hello, All! > > virtio-win.iso contains two different Windows drivers. > these Windows Server 2012 R2 drivers have different hardware IDs: > > \vioscsi\2k12R2\amd64\vioscsi.inf > "Red Hat VirtIO SCSI pass-through controller" > PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00 > PCI\VEN_1AF4&DEV_1048&SUBSYS_11001AF4&REV_01 > > \viostor\2k12R2\amd64\viostor.inf > "Red Hat VirtIO SCSI controller" > PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4&REV_00 > PCI\VEN_1AF4&DEV_1042&SUBSYS_11001AF4&REV_01 > > When I use "VirtIO SCSI controller" in virt-manager, > and when I install Windows Server 2012 R2 - > I can use only viostor driver and can't use vioscsi driver, > Windows Server 2012 R2 can't load vioscsi driver (?) > from virtio-win.iso and did not see virtual hard disks > with vioscsi driver. Only viostor driver work normally. > > How I can use "Red Hat VirtIO SCSI pass-through controller" > for Windows Server 2012 R2 virtual machine, what I need > to configure in xml-config? > > current /etc/libvirt/qemu/windows.xml config: > > <controller type='scsi' index='0' model='virtio-scsi'> > <address type='pci' domain='0x0000' bus='0x00' slot='0x07' > function='0x0'/> > </controller> > > <disk type='file' device='disk'> > <driver name='qemu' type='raw' cache='none' io='native' > discard='unmap'/> > <source file='/volume/kvm-windows-system'/> > <target dev='vda' bus='virtio'/> > <boot order='1'/> > <address type='pci' domain='0x0000' bus='0x00' slot='0x08' > function='0x0'/> > </disk> > > Additional info: > ===============> > virtio-win.iso version: virtio-win-0.1.126.iso > from https://fedoraproject.org/wiki/Windows_Virtio_DriversMaybe you can try the lastest virtio-win-0.1.133.iso : <https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.iso>https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.iso Or try to reinstall the latest spice guest tools 0.132 : https://www.spice-space.org/download/binaries/spice-guest-tools/spice-guest-tools-latest.exe> > OS: CentOS Linux release 7.3.1611 (Core) > > QEMU: qemu-kvm-1.5.3-126.el7_3.5.x86_64Why don't you upgrade qemu-kvm to qemu-kvm-ev ?> Windows Server 2012 R2 MSDN installation ISO image: > en_windows_server_2012_r2_with_update_x64_dvd_6052708.iso > sha1sum: 865494e969704be1c4496d8614314361d025775e > size: 5397889024 bytes > > devcon.exe output inside Windows Server 2012 R2 Virtual Machine: > > PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4&REV_00\3&13C0B0C5&0&40 > Name: Red Hat VirtIO SCSI controller > Hardware IDs: > PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4&REV_00 > PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4 > PCI\VEN_1AF4&DEV_1001&CC_010000 > PCI\VEN_1AF4&DEV_1001&CC_0100 > Compatible IDs: > PCI\VEN_1AF4&DEV_1001&REV_00 > PCI\VEN_1AF4&DEV_1001 > PCI\VEN_1AF4&CC_010000 > PCI\VEN_1AF4&CC_0100 > PCI\VEN_1AF4 > PCI\CC_010000 > PCI\CC_0100 > PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4&REV_00\3&13C0B0C5&0&50 > Name: Red Hat VirtIO SCSI controller > Hardware IDs: > PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4&REV_00 > PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4 > PCI\VEN_1AF4&DEV_1001&CC_010000 > PCI\VEN_1AF4&DEV_1001&CC_0100 > Compatible IDs: > PCI\VEN_1AF4&DEV_1001&REV_00 > PCI\VEN_1AF4&DEV_1001 > PCI\VEN_1AF4&CC_010000 > PCI\VEN_1AF4&CC_0100 > PCI\VEN_1AF4 > PCI\CC_010000 > PCI\CC_0100 > PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00\3&13C0B0C5&0&38 > Name: Red Hat VirtIO SCSI controller > Hardware IDs: > PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00 > PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4 > PCI\VEN_1AF4&DEV_1004&CC_010000 > PCI\VEN_1AF4&DEV_1004&CC_0100 > Compatible IDs: > PCI\VEN_1AF4&DEV_1004&REV_00 > PCI\VEN_1AF4&DEV_1004 > PCI\VEN_1AF4&CC_010000 > PCI\VEN_1AF4&CC_0100 > PCI\VEN_1AF4 > PCI\CC_010000 > PCI\CC_0100 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20170315/93667078/attachment-0002.html>
Gena Makhomed
2017-Mar-15 16:46 UTC
[CentOS-virt] Red Hat VirtIO SCSI pass-through controller
On 15.03.2017 17:42, Jean-Marc LIGER wrote:>> When I use "VirtIO SCSI controller" in virt-manager, >> and when I install Windows Server 2012 R2 - >> I can use only viostor driver and can't use vioscsi driver, >> Windows Server 2012 R2 can't load vioscsi driver (?) >> from virtio-win.iso and did not see virtual hard disks >> with vioscsi driver. Only viostor driver work normally.[...]>> Additional info: >> ===============>> >> virtio-win.iso version: virtio-win-0.1.126.iso >> from https://fedoraproject.org/wiki/Windows_Virtio_Drivers > > Maybe you can try the lastest virtio-win-0.1.133.iso : > https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.isoOk, I tested with virtio-win.iso versions 0.1.96-1 0.1.102-1 0.1.110-1 0.1.126-2 0.1.133-2 - nothing help, I can't load vioscsi driver in Windows Server 2012 R2. Also I tested Windows Server 2008 R2 - also can't load vioscsi driver. Also I tested with qemu-kvm-ev-2.6.0-28.el7_3.3.1.x86_64 - also can't load vioscsi driver. Also I tested two different CentOS 7.3 servers, with different CPUs: Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz Intel(R) Atom(TM) CPU C2750 @ 2.40GHz - also can't load vioscsi driver in Windows Server 2012 R2 setup. Why I can't load vioscsi driver in Windows Virtual Machine? I am doing something wrong?> Or try to reinstall the latest spice guest tools 0.132 : > https://www.spice-space.org/download/binaries/spice-guest-tools/spice-guest-tools-latest.exeI can't install Windows Server 2012 R2 with vioscsi driver, how spice guest tools can help with it?>> OS: CentOS Linux release 7.3.1611 (Core) >> >> QEMU: qemu-kvm-1.5.3-126.el7_3.5.x86_64 > > Why don't you upgrade qemu-kvm to qemu-kvm-ev ? >Already upgrade, it does not help. -- Best regards, Gena
Gena Makhomed
2017-Mar-15 20:16 UTC
[CentOS-virt] Red Hat VirtIO SCSI pass-through controller
On 14.03.2017 20:05, Gena Makhomed wrote:> When I use "VirtIO SCSI controller" in virt-manager, > and when I install Windows Server 2012 R2 - > I can use only viostor driver and can't use vioscsi driver, > Windows Server 2012 R2 can't load vioscsi driver (?) > from virtio-win.iso and did not see virtual hard disks > with vioscsi driver. Only viostor driver work normally. > > How I can use "Red Hat VirtIO SCSI pass-through controller" > for Windows Server 2012 R2 virtual machine, what I need > to configure in xml-config? > > current /etc/libvirt/qemu/windows.xml config: > > <controller type='scsi' index='0' model='virtio-scsi'> > <address type='pci' domain='0x0000' bus='0x00' slot='0x07' > function='0x0'/> > </controller> > > <disk type='file' device='disk'> > <driver name='qemu' type='raw' cache='none' io='native' > discard='unmap'/> > <source file='/volume/kvm-windows-system'/> > <target dev='vda' bus='virtio'/> > <boot order='1'/> > <address type='pci' domain='0x0000' bus='0x00' slot='0x08' > function='0x0'/> > </disk>I found solution. bus='virtio' - this is The paravirtualized block device (virtio-blk) fou using "Red Hat VirtIO SCSI pass-through controller" vioscsi driver I need to use only SCSI virtual disks (bus='scsi'), not VirtIO ones. Correct config fragment: <controller type='scsi' index='0' model='virtio-scsi'> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> </controller> <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='none' io='native' discard='unmap'/> <source file='/volume/kvm-windows-server-system'/> <target dev='sda' bus='scsi'/> <boot order='1'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='none' io='native' discard='unmap'/> <source file='/volume/kvm-windows-server-data'/> <target dev='sdb' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> Now all works fine, I install Windows Server 2012 R2 with vioscsi driver And now Windows Server 2012 R2 see disks as "thin provisioned drives". (SCSI UNMAP feature works only with vioscsi driver, not with viostor). No more need to use sdelete.exe -z to reclaim unused VM disk space. :-) More details: https://technet.microsoft.com/en-us/library/hh831391(v=ws.11).aspx Thin Provisioning and Trim Storage Overview https://kallesplayground.wordpress.com/2014/04/26/storage-reclamation-part-2-windows/comment-page-1/ Storage reclamation ? part 2 ? Windows -- Best regards, Gena
Apparently Analagous Threads
- Red Hat VirtIO SCSI pass-through controller
- [PATCH 0/4] v2v: simplify Windows registry patching
- [PATCH 4/7] v2v: extract reusable parts of viostor regedits
- [PATCH 0/7] Add support for SUSE virtio windows drivers
- [PATCH virt-v2v] v2v: windows: Install both legacy and modern virtio