qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] how to start instance event usb device is not currently


From: wk
Subject: [Qemu-discuss] how to start instance event usb device is not currently present in the host??
Date: Fri, 11 Nov 2016 17:08:32 +0800

hi??
     OS is  CentOS Linux release 7.1.1503 (Core), Linux server7 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

     1. similar to https://bugzilla.redhat.com/show_bug.cgi?id=974580?? ??I think everything works exactly as requested. If you want to be able to start a domain with attached USB device even if the USB device is not currently present in the host, you need to specify startupPolicy as either optional or requisite when attaching the device to the domain. ??
     2. I also find a method in https://libvirt.org/formatdomain.html??
           ??<devices>
                 <hostdev mode='subsystem' type='usb'>
                     <source startupPolicy='optional'>
                       <vendor id='0x1234'/>
                      <product id='0xbeef'/>
                    </source>
                   <boot order='2'/>
                </hostdev>
            </devices>

     The USB device can either be addressed by vendor / product id using the vendor and product elements or by the device's address on the host using the address element.
     Since 1.0.0, the source element of USB devices may contain startupPolicy attribute which can be used to define policy what to do if the specified host USB device is not found. The attribute accepts the following values??

    3. My xml file is??
     47     <controller type='usb' index='0' model='ich9-ehci1'>
     48       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
     49     </controller>
     50     <controller type='usb' index='0' model='ich9-uhci1'>
     51       <master startport='0'/>
     52       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
     53     </controller>
     54     <controller type='usb' index='0' model='ich9-uhci2'>
     55       <master startport='2'/>
     56       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
     57     </controller>
     58     <controller type='usb' index='0' model='ich9-uhci3'>
     59       <master startport='4'/>
     60       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
     61     </controller>

     Where shoud I add   <source startupPolicy='optional'> ?

Thanks.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]