Virsh Passthrough: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Thomas (Diskussion | Beiträge)
Thomas (Diskussion | Beiträge)
Zeile 11: Zeile 11:
  <address bus='1' device='14'/>
  <address bus='1' device='14'/>


==Edit XML==
==USB XML==
<pre>
<pre>
  <devices>
<hostdev mode='subsystem' type='usb' managed='yes'>
  ...
    <hostdev mode='subsystem' type='usb'>
       <source>
       <source>
      <vendor id='0x058f'/>
        <vendor id='0x058f'/>
      <product id='0x6387'/>
        <product id='0x6387'/>
        <address bus='1' device='14'/>
       </source>
       </source>
    </hostdev>
      <alias name='hostdev0'/>
  </devices>
</hostdev>
</pre>
</pre>



Version vom 10. Oktober 2017, 09:22 Uhr

Usb

Dump XML

  • virsh dumpxml orion > orion.xml

LS USB

  • lsusb | grep Alcor
Bus 001 Device 014: ID 058f:6387 Alcor Micro Corp. Flash Drive

Zuweisen

<vendor id='0x058f'/>
<product id='0x6387'/>
<address bus='1' device='14'/>

USB XML

<hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x058f'/>
        <product id='0x6387'/>
        <address bus='1' device='14'/>
      </source>
      <alias name='hostdev0'/>
</hostdev>

Redine XML

  • virsh define orion.xml

Start VM

  • virsh start orion