[ovirt-users] USB Modem in a VM

Itamar Heim iheim at redhat.com
Mon Jan 19 10:29:09 UTC 2015


On 01/19/2015 12:23 PM, VONDRA Alain wrote:
> Hi,
> I've tried to use hook hostusb, I've installed vdsm-hook-hostusb.noarch 0:4.16.10-0.el6, and followed the documentation on http://www.ovirt.org/Vdsm_Hooks, but the new hook doesn't appear on the UI using "Edit VM" and "custom properties".
> Is there any other way to install hooks, the documentation is not so clear, and I'm not very fine with python.
> Thanks

you don't need to know python.
did you run the engine side commands (engine-config -s 
UserDefinedVMProperties... and restarted the engine)?

check http://blog.conoracallahan.com/blog/2014/07/19/ovirt-usb-passthrough/


> Alain
>
>
>
>
> Alain VONDRA
> Chargé d'exploitation des Systèmes d'Information
> Direction Administrative et Financière
> +33 1 44 39 77 76
> UNICEF France
> 3 rue Duguay Trouin  75006 PARIS
> www.unicef.fr
>
>
>
>
> -----Message d'origine-----
> De : Itamar Heim [mailto:iheim at redhat.com]
> Envoyé : dimanche 18 janvier 2015 11:42
> À : VONDRA Alain
> Objet : Re: [ovirt-users] USB Modem in a VM
>
> On 01/18/2015 12:36 PM, VONDRA Alain wrote:
>> Hi,
>> I didn't try yet this option http://www.ovirt.org/VDSM-Hooks/hostusb
>> to inject it Do you think it will be a better solution ?
>
> that's the "right solution".
> I'll reply again on list so folks can help you with it as needed.
>
>> Thanks
>> Alain
>>
>>
>>
>> Alain VONDRA
>> Chargé d'exploitation des Systèmes d'Information Direction
>> Administrative et Financière
>> +33 1 44 39 77 76
>> UNICEF France
>> 3 rue Duguay Trouin  75006 PARIS
>> www.unicef.fr
>>
>>
>>
>>
>> ________________________________________
>> De : Itamar Heim [iheim at redhat.com]
>> Envoyé : vendredi 16 janvier 2015 19:21 À : VONDRA Alain Objet : Re:
>> [ovirt-users] USB Modem in a VM
>>
>> On 01/15/2015 05:56 PM, VONDRA Alain wrote:
>>> Hi,
>>> Thank you for your answer, I've tried to insert my USB modem, but it doesn't up in the Windows VM.
>>> I've tried to insert via virt-manager without success, I can't apply the modification, however I see the modem using lsusb :
>>>
>>> lsusb
>>> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 003: ID 0624:0248 Avocent Corp. Virtual Hub Bus 001 Device 004: ID 0624:0249 Avocent Corp. Virtual Keyboard/Mouse Bus 002 Device 010: ID 0572:1321 Conexant Systems (Rockwell), Inc.
>>>
>>> I've unload the "cdc_acm" kernel module via rmmod without success.
>>> I've also tried to edit the xml appending the ID and VENDDOR tags :
>>>
>>>     <hostdev mode='subsystem' type='usb'>
>>>          <source>
>>>            <vendor id='0x0572'/>
>>>            <product id='0x1321'/>
>>>          </source>
>>>        </hostdev>
>>>
>>> Ut at the first load the config disappears...
>>> Do I need to restart the host or restart libvirtd services ?
>>>
>>> Thanks for your help
>>> Alain
>>>
>>>
>>>
>>> Alain VONDRA
>>> Chargé d'exploitation des Systèmes d'Information Direction
>>> Administrative et Financière
>>> +33 1 44 39 77 76
>>> UNICEF France
>>> 3 rue Duguay Trouin  75006 PARIS
>>> www.unicef.fr
>>>
>>>
>>>
>>>
>>> -----Message d'origine-----
>>> De : Alon Bar-Lev [mailto:alonbl at redhat.com] Envoyé : mardi 13
>>> janvier 2015 17:47 À : VONDRA Alain Cc : users at ovirt.org Objet : Re:
>>> [ovirt-users] USB Modem in a VM
>>>
>>>
>>>
>>> ----- Original Message -----
>>>> From: "VONDRA Alain" <AVONDRA at unicef.fr>
>>>> To: users at ovirt.org
>>>> Sent: Tuesday, January 13, 2015 5:55:01 PM
>>>> Subject: [ovirt-users]  USB Modem in a VM
>>>>
>>>>
>>>>
>>>> Hi,
>>>>
>>>> Can you tell me if I can use an USB modem through one of the
>>>> hypervisor hosts to a Windows VM ?
>>>>
>>>> I’d like to install a Windows Fax Server.
>>>>
>>>> Thank you for your answers.
>>>
>>>
>>> should be possible using qemu args: -usbdevice
>>> host:vendor_id:product_id
>>>
>>> in libvirt replace @VENDOR@ and @DEVICE@ to device specific properties:
>>>
>>> <domain type='kvm'>
>>>      <name>...</name>
>>>>>>      <devices>
>>>>>>        <hostdev mode='subsystem' type='usb'>
>>>          <source>
>>>            <vendor id='0x at VENDOR@'/>
>>>            <product id='0x at DEVICE@'/>
>>>          </source>
>>>        </hostdev>
>>>      </devices>
>>> </domain>
>>>
>>> if this option is not exposed in ui you can use vdsm-hooks[1] to modify the libvirt configuration and inject such device.
>>>
>>> Regards,
>>> Alon
>>>
>>> [1] http://www.ovirt.org/VDSM-Hooks
>>> _______________________________________________
>>> Users mailing list
>>> Users at ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>>>
>>
>> have you used http://www.ovirt.org/VDSM-Hooks/hostusb to inject it?
>>
>




More information about the Users mailing list