On Thu, May 3, 2018 at 11:45 AM, gsswzt@pku.edu.cn <gsswzt@pku.edu.cn> wrote:
Hi,

I found my VM libvirt create xml as:

<hostdev managed="no" mode="subsystem" rawio="yes" type="scsi">
      <source>
        <adapter name="scsi_host0"/>
        <address bus="2" target="4" unit="0"/>
      </source>
</hostdev>

...
<devices>
  <hostdev mode='subsystem' type='scsi' sgio='filtered' rawio='yes'>
    <source>
      <adapter name='scsi_host0'/>
      <address bus='0' target='0' unit='0'/>
    </source>
    <readonly/>
    <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  </hostdev>
</devices>
...
Is <address> mandatory?
No, it is not mandatory.
If not set, it would be determined by libvirt. See [1].

[1] https://ovirt.org/develop/release-management/features/virt/stabledeviceaddresses/


_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users