tcp-dw commented on issue #7490:
URL: https://github.com/apache/cloudstack/issues/7490#issuecomment-2401954711

   In my case having OS type to  "Other PV Virtio-SCSI" on the Windows VM, 
after adding 8 data disks (9 with root disk) I end up to the following domain 
xml:
   `      <disk type='block' device='disk'>
           <driver name='qemu' type='raw' cache='none' io='io_uring' 
discard='unmap'/>
           <source dev='/dev/storpool-byid/zkr.b.t4yc' index='10'>
             <privateData>
               <nodenames>
                 <nodename type='storage' name='libvirt-10-storage'/>
                 <nodename type='format' name='libvirt-10-format'/>
               </nodenames>
             </privateData>
           </source>
           <backingStore/>
           <target dev='sda' bus='scsi'/>
           <serial>3a07b614d1704f50be96</serial>
           <alias name='scsi0-0-0-0'/>
           <address type='drive' controller='0' bus='0' target='0' unit='0'/>
           <privateData>
             <qom name='scsi0-0-0-0'/>
           </privateData>
         </disk>
         <disk type='block' device='disk'>
           <driver name='qemu' type='raw' cache='none' io='io_uring' 
discard='unmap'/>
           <source dev='/dev/storpool-byid/zkr.b.t4yp' index='9'>
             <privateData>
               <nodenames>
                 <nodename type='storage' name='libvirt-9-storage'/>
                 <nodename type='format' name='libvirt-9-format'/>
               </nodenames>
             </privateData>
           </source>
           <backingStore/>
           <target dev='sdb' bus='scsi'/>
           <serial>9fe7994d35f044b5a37a</serial>
           <alias name='scsi0-0-0-1'/>
           <address type='drive' controller='0' bus='0' target='0' unit='1'/>
           <privateData>
             <qom name='scsi0-0-0-1'/>
           </privateData>
         </disk>
         <disk type='block' device='disk'>
           <driver name='qemu' type='raw' cache='none' io='io_uring' 
discard='unmap'/>
           <source dev='/dev/storpool-byid/zkr.b.t4yq' index='8'>
             <privateData>
               <nodenames>
                 <nodename type='storage' name='libvirt-8-storage'/>
                 <nodename type='format' name='libvirt-8-format'/>
               </nodenames>
             </privateData>
           </source>
           <backingStore/>
           <target dev='sdc' bus='scsi'/>
           <serial>5f9c8bba843046338646</serial>
           <alias name='scsi0-0-0-2'/>
           <address type='drive' controller='0' bus='0' target='0' unit='2'/>
           <privateData>
             <qom name='scsi0-0-0-2'/>
           </privateData>
         </disk>
         <disk type='block' device='disk'>
           <driver name='qemu' type='raw' cache='none' io='io_uring' 
discard='unmap'/>
           <source dev='/dev/storpool-byid/zkr.b.t4yx' index='7'>
             <privateData>
               <nodenames>
                 <nodename type='storage' name='libvirt-7-storage'/>
                 <nodename type='format' name='libvirt-7-format'/>
               </nodenames>
             </privateData>
           </source>
           <backingStore/>
           <target dev='sde' bus='scsi'/>
           <serial>0f7dee19248e41f69782</serial>
           <alias name='scsi0-0-0-4'/>
           <address type='drive' controller='0' bus='0' target='0' unit='4'/>
           <privateData>
             <qom name='scsi0-0-0-4'/>
           </privateData>
         </disk>
         <disk type='block' device='disk'>
           <driver name='qemu' type='raw' cache='none' io='io_uring' 
discard='unmap'/>
           <source dev='/dev/storpool-byid/zkr.b.t4yo' index='6'>
             <privateData>
               <nodenames>
                 <nodename type='storage' name='libvirt-6-storage'/>
                 <nodename type='format' name='libvirt-6-format'/>
               </nodenames>
             </privateData>
           </source>
           <backingStore/>
           <target dev='sdf' bus='scsi'/>
           <serial>6c0820647f4b4daca6b8</serial>
           <alias name='scsi0-0-0-5'/>
           <address type='drive' controller='0' bus='0' target='0' unit='5'/>
           <privateData>
             <qom name='scsi0-0-0-5'/>
           </privateData>
         </disk>
         <disk type='block' device='disk'>
           <driver name='qemu' type='raw' cache='none' io='io_uring' 
discard='unmap'/>
           <source dev='/dev/storpool-byid/zkr.b.t4yt' index='5'>
             <privateData>
               <nodenames>
                 <nodename type='storage' name='libvirt-5-storage'/>
                 <nodename type='format' name='libvirt-5-format'/>
               </nodenames>
             </privateData>
           </source>
           <backingStore/>
           <target dev='sdg' bus='scsi'/>
           <serial>0c03146a946f4f989e16</serial>
           <alias name='scsi0-0-0-6'/>
           <address type='drive' controller='0' bus='0' target='0' unit='6'/>
           <privateData>
             <qom name='scsi0-0-0-6'/>
           </privateData>
         </disk>
         <disk type='block' device='disk'>
           <driver name='qemu' type='raw' cache='none' io='io_uring' 
discard='unmap'/>
           <source dev='/dev/storpool-byid/zkr.b.t4y1' index='4'>
             <privateData>
               <nodenames>
                 <nodename type='storage' name='libvirt-4-storage'/>
                 <nodename type='format' name='libvirt-4-format'/>
               </nodenames>
             </privateData>
           </source>
           <backingStore/>
           <target dev='sdh' bus='scsi'/>
           <serial>709bd8ed34a743dd81d5</serial>
           <alias name='scsi1-0-0'/>
           <address type='drive' controller='1' bus='0' target='0' unit='0'/>
           <privateData>
             <qom name='scsi1-0-0'/>
           </privateData>
         </disk>
         <disk type='block' device='disk'>
           <driver name='qemu' type='raw' cache='none' io='io_uring' 
discard='unmap'/>
           <source dev='/dev/storpool-byid/zkr.b.t4yu' index='3'>
             <privateData>
               <nodenames>
                 <nodename type='storage' name='libvirt-3-storage'/>
                 <nodename type='format' name='libvirt-3-format'/>
               </nodenames>
             </privateData>
           </source>
           <backingStore/>
           <target dev='sdi' bus='scsi'/>
           <serial>287f17c5425841f0a127</serial>
           <alias name='scsi1-0-1'/>
           <address type='drive' controller='1' bus='0' target='0' unit='1'/>
           <privateData>
             <qom name='scsi1-0-1'/>
           </privateData>
         </disk>
         <disk type='block' device='disk'>
           <driver name='qemu' type='raw' cache='none' io='io_uring' 
discard='unmap'/>
           <source dev='/dev/storpool-byid/zkr.b.t4yw' index='2'>
             <privateData>
               <nodenames>
                 <nodename type='storage' name='libvirt-2-storage'/>
                 <nodename type='format' name='libvirt-2-format'/>
               </nodenames>
             </privateData>
           </source>
           <backingStore/>
           <target dev='sdj' bus='scsi'/>
           <serial>cdd42a01e7454e89b788</serial>
           <alias name='scsi1-0-2'/>
           <address type='drive' controller='1' bus='0' target='0' unit='2'/>
           <privateData>
             <qom name='scsi1-0-2'/>
           </privateData>
         </disk>
         <disk type='file' device='cdrom'>
           <driver name='qemu'/>
           <target dev='sdd' bus='sata'/>
           <readonly/>
           <alias name='sata0-0-3'/>
           <address type='drive' controller='0' bus='0' target='0' unit='3'/>
           <privateData>
             <qom name='sata0-0-3'/>
           </privateData>
         </disk>
         <controller type='scsi' index='0' model='virtio-scsi'>
           <driver queues='2'/>
           <alias name='scsi0'/>
           <address type='pci' domain='0x0000' bus='0x00' slot='0x09' 
function='0x0'/>
         </controller>
         <controller type='sata' index='0'>
           <alias name='ide'/>
           <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' 
function='0x2'/>
         </controller>
         <controller type='pci' index='0' model='pcie-root'>
           <alias name='pcie.0'/>
         </controller>
         <controller type='scsi' index='1' model='lsilogic'>
           <alias name='scsi1'/>
           <address type='pci' domain='0x0000' bus='0x04' slot='0x01' 
function='0x0'/>
         </controller>`
   
   Windows detects the 6 first disks attached to virtio-scsi controller #0 but 
not the rest, because they are attached on lsilogic controller #1.
   A possible workaround might be to use agent transformation hook to change 
that behavior but it may be more proper to fix it in the code.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to