[libvirt-users] changing pci addr of SCSI storage controller: Red Hat, Inc Virtio block device (rev 01)

daggs daggs at gmx.com
Sat May 5 16:29:39 UTC 2018


Greetings Jano,

> Sent: Thursday, May 03, 2018 at 1:44 PM
> From: "Ján Tomko" <jtomko at redhat.com>
> To: daggs <daggs at gmx.com>
> Cc: libvirt-users at redhat.com
> Subject: Re: [libvirt-users] changing pci addr of SCSI storage controller: Red Hat, Inc Virtio block device (rev 01)
>
> On Wed, May 02, 2018 at 07:29:23PM +0200, daggs wrote:
> >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?
> >
> 
> 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
> 
> >Thanks,
> >
> >Dagg.
> >
> >_______________________________________________
> >libvirt-users mailing list
> >libvirt-users at redhat.com
> >https://www.redhat.com/mailman/listinfo/libvirt-users
> 

router at utils_server:~$ virsh -c qemu:///system dumpxml router | grep -A4 scsi
router at utils_server:~$ virsh -c qemu:///system dumpxml router | grep -A4 -i scsi
router at 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




More information about the libvirt-users mailing list