Discussion:
[libvirt-users] changing pci addr of SCSI storage controller: Red Hat, Inc Virtio block device (rev 01)
daggs
2018-05-02 17:29:23 UTC
Permalink
Greetings,

when execute lspci inside my vm linux guest, I see this:
:/# lspci | grep -i scsi
03:00.0 SCSI storage controller: Red Hat, Inc Virtio block device (rev 01)

I don't see any such address in my xml file, is it possible to move that controller to another pci addr?

Thanks,

Dagg.
Ján Tomko
2018-05-03 10:44:44 UTC
Permalink
Post by daggs
Greetings,
:/# lspci | grep -i scsi
03:00.0 SCSI storage controller: Red Hat, Inc Virtio block device (rev 01)
I don't see any such address in my xml file, is it possible to move that controller to another pci addr?
Can you look again?
Libvirt should not be adding virtio-scsi devices to the VM without
putting them in the XML as well. If you did not have it in the XML when
you defined the domain and it got auto-added because there was a SCSI
disk with no controller, the controller should still show up in the
output of virsh dumpxml / virsh edit:
<controller type='scsi' index='0' model='virtio-scsi'>
<address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
</controller>

Jano
Post by daggs
Thanks,
Dagg.
_______________________________________________
libvirt-users mailing list
https://www.redhat.com/mailman/listinfo/libvirt-users
daggs
2018-05-05 16:29:39 UTC
Permalink
Greetings Jano,
Sent: Thursday, May 03, 2018 at 1:44 PM
Subject: Re: [libvirt-users] changing pci addr of SCSI storage controller: Red Hat, Inc Virtio block device (rev 01)
Post by daggs
Greetings,
:/# lspci | grep -i scsi
03:00.0 SCSI storage controller: Red Hat, Inc Virtio block device (rev 01)
I don't see any such address in my xml file, is it possible to move that controller to another pci addr?
Can you look again?
Libvirt should not be adding virtio-scsi devices to the VM without
putting them in the XML as well. If you did not have it in the XML when
you defined the domain and it got auto-added because there was a SCSI
disk with no controller, the controller should still show up in the
<controller type='scsi' index='0' model='virtio-scsi'>
<address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
</controller>
Jano
Post by daggs
Thanks,
Dagg.
_______________________________________________
libvirt-users mailing list
https://www.redhat.com/mailman/listinfo/libvirt-users
***@utils_server:~$ virsh -c qemu:///system dumpxml router | grep -A4 scsi
***@utils_server:~$ virsh -c qemu:///system dumpxml router | grep -A4 -i scsi
***@utils_server:~$ virsh -c qemu:///system dumpxml router | grep -A4 -i virtio
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
<address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
</disk>
<controller type='usb' index='0' model='ich9-ehci1'>
<alias name='usb'/>
--
<model type='virtio'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
</interface>
<serial type='pty'>
--
<memballoon model='virtio'>
<alias name='balloon0'/>
<address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
</memballoon>
</devices>

there is no scsi in the xml, if I define one, will it show up as an additional or will change the existing one?

Dagg
daggs
2018-05-12 17:14:57 UTC
Permalink
Greetings Ján,
Sent: Saturday, May 05, 2018 at 7:29 PM
Subject: Re: [libvirt-users] changing pci addr of SCSI storage controller: Red Hat, Inc Virtio block device (rev 01)
Greetings Jano,
Sent: Thursday, May 03, 2018 at 1:44 PM
Subject: Re: [libvirt-users] changing pci addr of SCSI storage controller: Red Hat, Inc Virtio block device (rev 01)
Post by daggs
Greetings,
:/# lspci | grep -i scsi
03:00.0 SCSI storage controller: Red Hat, Inc Virtio block device (rev 01)
I don't see any such address in my xml file, is it possible to move that controller to another pci addr?
Can you look again?
Libvirt should not be adding virtio-scsi devices to the VM without
putting them in the XML as well. If you did not have it in the XML when
you defined the domain and it got auto-added because there was a SCSI
disk with no controller, the controller should still show up in the
<controller type='scsi' index='0' model='virtio-scsi'>
<address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
</controller>
Jano
Post by daggs
Thanks,
Dagg.
_______________________________________________
libvirt-users mailing list
https://www.redhat.com/mailman/listinfo/libvirt-users
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
<address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
</disk>
<controller type='usb' index='0' model='ich9-ehci1'>
<alias name='usb'/>
--
<model type='virtio'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
</interface>
<serial type='pty'>
--
<memballoon model='virtio'>
<alias name='balloon0'/>
<address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
</memballoon>
</devices>
there is no scsi in the xml, if I define one, will it show up as an additional or will change the existing one?
Dagg
any update on this issue?

Loading...