Re: [CentOS-virt] Red Hat VirtIO SCSI pass-through controller

2017-03-15 Thread Gena Makhomed

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:

   
  



  
  
  
  
  



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:


  function='0x0'/>




  discard='unmap'/>

  
  
  
  



  discard='unmap'/>

  
  
  


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

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Red Hat VirtIO SCSI pass-through controller

2017-03-15 Thread Gena Makhomed

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.iso


Ok, 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.exe


I 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
___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Red Hat VirtIO SCSI pass-through controller

2017-03-15 Thread Jean-Marc LIGER

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_1004_00081AF4_00
PCI\VEN_1AF4_1048_11001AF4_01

\viostor\2k12R2\amd64\viostor.inf
"Red Hat VirtIO SCSI controller"
PCI\VEN_1AF4_1001_00021AF4_00
PCI\VEN_1AF4_1042_11001AF4_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:

   
  function='0x0'/>




  discard='unmap'/>

  
  
  
  function='0x0'/>



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.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_64


Why 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_1001_00021AF4_00\3&13C0B0C5&0&40
Name: Red Hat VirtIO SCSI controller
Hardware IDs:
PCI\VEN_1AF4_1001_00021AF4_00
PCI\VEN_1AF4_1001_00021AF4
PCI\VEN_1AF4_1001_01
PCI\VEN_1AF4_1001_0100
Compatible IDs:
PCI\VEN_1AF4_1001_00
PCI\VEN_1AF4_1001
PCI\VEN_1AF4_01
PCI\VEN_1AF4_0100
PCI\VEN_1AF4
PCI\CC_01
PCI\CC_0100
PCI\VEN_1AF4_1001_00021AF4_00\3&13C0B0C5&0&50
Name: Red Hat VirtIO SCSI controller
Hardware IDs:
PCI\VEN_1AF4_1001_00021AF4_00
PCI\VEN_1AF4_1001_00021AF4
PCI\VEN_1AF4_1001_01
PCI\VEN_1AF4_1001_0100
Compatible IDs:
PCI\VEN_1AF4_1001_00
PCI\VEN_1AF4_1001
PCI\VEN_1AF4_01
PCI\VEN_1AF4_0100
PCI\VEN_1AF4
PCI\CC_01
PCI\CC_0100
PCI\VEN_1AF4_1004_00081AF4_00\3&13C0B0C5&0&38
Name: Red Hat VirtIO SCSI controller
Hardware IDs:
PCI\VEN_1AF4_1004_00081AF4_00
PCI\VEN_1AF4_1004_00081AF4
PCI\VEN_1AF4_1004_01
PCI\VEN_1AF4_1004_0100
Compatible IDs:
PCI\VEN_1AF4_1004_00
PCI\VEN_1AF4_1004
PCI\VEN_1AF4_01
PCI\VEN_1AF4_0100
PCI\VEN_1AF4
PCI\CC_01
PCI\CC_0100



___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt