Re: [ovirt-users] USB Modem in a VM

2015-01-19 Thread VONDRA Alain
Yes I made this :
engine-config -s "UserDefinedVMProperties=hostusb=0x0572:0x1321"
and nothing appear on the Edit VM, only :
- sndbuf
- vhost
- sap_agent
- viodiskattach

Is there any possibility to verify ?
The first command I put engine-config -s 
"UserDefinedVMProperties=hostusb=true;another_property=regexp" following the 
doc, maybe this option is blocking the hook ?
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:ih...@redhat.com]
Envoyé : lundi 19 janvier 2015 11:29
À : VONDRA Alain; users@ovirt.org
Objet : Re: [ovirt-users] USB Modem in a VM

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:ih...@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 [ih...@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 :
>>>
>>> 
>>>  
>>>
>>>        
>>>  
>>>
>>>
>>> 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:alo...@redhat.com] Envoyé : mardi 13
>>> janvier 2015 17:47 À : VONDRA Alain Cc : users@ovirt.org Objet : Re:

Re: [ovirt-users] USB Modem in a VM

2015-01-19 Thread Itamar Heim

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:ih...@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 [ih...@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 :


 
   
   
 
   

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:alo...@redhat.com] Envoyé : mardi 13
janvier 2015 17:47 À : VONDRA Alain Cc : users@ovirt.org Objet : Re:
[ovirt-users] USB Modem in a VM



----- Original Message -

From: "VONDRA Alain" 
To: users@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:


 ...
 …
 
   …
   
 
   
   
 
   
 


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@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users



have you used http://www.ovirt.org/VDSM-Hooks/hostusb to inject it?





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


Re: [ovirt-users] USB Modem in a VM

2015-01-18 Thread Itamar Heim

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 :

  
   
 
 
   
 

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:alo...@redhat.com]
Envoyé : mardi 13 janvier 2015 17:47
À : VONDRA Alain
Cc : users@ovirt.org
Objet : Re: [ovirt-users] USB Modem in a VM



- Original Message -

From: "VONDRA Alain" 
To: users@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:


   ...
   …
   
 …
 
   
 
 
   
 
   


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@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users



please look at http://www.ovirt.org/VDSM-Hooks/hostusb
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] USB Modem in a VM

2015-01-16 Thread VONDRA Alain
I've got libvirt-0.10.2-46 version.





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 : Martin Polednik [mailto:mpoled...@redhat.com]
Envoyé : vendredi 16 janvier 2015 17:11
À : VONDRA Alain
Cc : users@ovirt.org; Michal Skrivanek
Objet : Re: [ovirt-users] USB Modem in a VM



- Original Message -
> From: "VONDRA Alain" 
> To: "Martin Polednik" 
> Cc: users@ovirt.org, "Michal Skrivanek" 
> Sent: Friday, January 16, 2015 4:00:28 PM
> Subject: RE: [ovirt-users] USB Modem in a VM
>
> I've replaced with openReadOnly(0), but had a "argument 1 must be
> string or None, not int" issue, so I changed to None, but I had :
>
> [root@unc-srv-hyp2  ~]$ python2.6 usb_dev.py Traceback (most recent
> call last):
>   File "usb_dev.py", line 5, in 
> devices = conn.listAllDevices()
> TypeError: listAllDevices() takes exactly 2 arguments (1 given)
>
> I put the VM name in openReadOnly("unc-srv-prnt3") and I had this issue :
>
> libvirt:  error : no connection driver available for unc-srv-prnt3
> Traceback (most recent call last):
>   File "usb_dev.py", line 4, in 
> conn = libvirt.openReadOnly("unc-srv-prnt3")
>   File "/usr/lib64/python2.6/site-packages/libvirt.py", line 247, in
>   openReadOnly
> if ret is None:raise libvirtError('virConnectOpenReadOnly()
> failed')
> libvirt.libvirtError: no connection driver available for unc-srv-prnt3
>
> What's wrong ?
>
Missing flags parameter again, which version of libvirt are you running?
openReadOnly(0) and listAllDevices(0) should be correct for your version,
sorry for that again.
>
> 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 : Martin Polednik [mailto:mpoled...@redhat.com] Envoyé : vendredi
> 16 janvier 2015 15:47 À : VONDRA Alain Cc : users@ovirt.org; Michal
> Skrivanek Objet : Re: [ovirt-users] USB Modem in a VM
>
>
>
> - Original Message -
> > From: "VONDRA Alain" 
> > To: "Martin Polednik" 
> > Cc: users@ovirt.org, "Michal Skrivanek" 
> > Sent: Friday, January 16, 2015 2:45:09 PM
> > Subject: Re: [ovirt-users] USB Modem in a VM
> >
> > Hi Martin,
> > That's what I've done, but the result is a missing argument.
> >
> > [root@unc-srv-hyp2  ~]$ python2.6 usb_dev.py Traceback (most recent
> > call last):
> >   File "usb_dev.py", line 4, in 
> > conn = libvirt.openReadOnly()
> > TypeError: openReadOnly() takes exactly 1 argument (0 given
>
> My mistake, you can use openReadOnly(0) (can be omitted for some
> libvirt versions).
>
> > 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 : Martin Polednik [mailto:mpoled...@redhat.com] Envoyé : vendredi
> > 16 janvier 2015 13:18 À : VONDRA Alain Cc : users@ovirt.org; Michal
> > Skrivanek Objet : Re: [ovirt-users] USB Modem in a VM
> >
> >
> >
> > - Original Message -
> > > From: "VONDRA Alain" 
> > > To: "Martin Polednik" 
> > > Cc: users@ovirt.org, "Michal Skrivanek" 
> > > Sent: Friday, January 16, 2015 12:30:10 PM
> > > Subject: Re: [ovirt-users] USB Modem in a VM
> > >
> > > Ok Martin,
> > > I'll try the python script, but I'm a newbie in python, which
> > > argumenet I need to put to execute it ?
> > > Thank you
> > > Alain
> >
> > Simply save it into something like listdevices.py and run $ python
> > listdevices.py.
> > It will list libvirt XML for all of the devices, you just need to
> > find correct vendor id/product id for your usb device and then use
> > the name for detach e.g. nodedev-detach usb_usb0.
> >
> > > Alain VONDRA
> > > Chargé d'exploitation des Systèmes d'Information Direction
> > > Administrative et Financière
> > > +33 1 44 39 77 76
> > > UNICEF France
> > > 3 r

Re: [ovirt-users] USB Modem in a VM

2015-01-16 Thread Martin Polednik


- Original Message -
> From: "VONDRA Alain" 
> To: "Martin Polednik" 
> Cc: users@ovirt.org, "Michal Skrivanek" 
> Sent: Friday, January 16, 2015 4:00:28 PM
> Subject: RE: [ovirt-users] USB Modem in a VM
> 
> I've replaced with openReadOnly(0), but had a "argument 1 must be string or
> None, not int" issue, so I changed to None, but I had :
> 
> [root@unc-srv-hyp2  ~]$ python2.6 usb_dev.py
> Traceback (most recent call last):
>   File "usb_dev.py", line 5, in 
> devices = conn.listAllDevices()
> TypeError: listAllDevices() takes exactly 2 arguments (1 given)
> 
> I put the VM name in openReadOnly("unc-srv-prnt3") and I had this issue :
> 
> libvirt:  error : no connection driver available for unc-srv-prnt3
> Traceback (most recent call last):
>   File "usb_dev.py", line 4, in 
> conn = libvirt.openReadOnly("unc-srv-prnt3")
>   File "/usr/lib64/python2.6/site-packages/libvirt.py", line 247, in
>   openReadOnly
> if ret is None:raise libvirtError('virConnectOpenReadOnly() failed')
> libvirt.libvirtError: no connection driver available for unc-srv-prnt3
> 
> What's wrong ?
> 
Missing flags parameter again, which version of libvirt are you running?
openReadOnly(0) and listAllDevices(0) should be correct for your version,
sorry for that again.   
> 
> 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 : Martin Polednik [mailto:mpoled...@redhat.com]
> Envoyé : vendredi 16 janvier 2015 15:47
> À : VONDRA Alain
> Cc : users@ovirt.org; Michal Skrivanek
> Objet : Re: [ovirt-users] USB Modem in a VM
> 
> 
> 
> - Original Message -
> > From: "VONDRA Alain" 
> > To: "Martin Polednik" 
> > Cc: users@ovirt.org, "Michal Skrivanek" 
> > Sent: Friday, January 16, 2015 2:45:09 PM
> > Subject: Re: [ovirt-users] USB Modem in a VM
> >
> > Hi Martin,
> > That's what I've done, but the result is a missing argument.
> >
> > [root@unc-srv-hyp2  ~]$ python2.6 usb_dev.py Traceback (most recent
> > call last):
> >   File "usb_dev.py", line 4, in 
> > conn = libvirt.openReadOnly()
> > TypeError: openReadOnly() takes exactly 1 argument (0 given
> 
> My mistake, you can use openReadOnly(0) (can be omitted for some libvirt
> versions).
> 
> > 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 : Martin Polednik [mailto:mpoled...@redhat.com] Envoyé : vendredi
> > 16 janvier 2015 13:18 À : VONDRA Alain Cc : users@ovirt.org; Michal
> > Skrivanek Objet : Re: [ovirt-users] USB Modem in a VM
> >
> >
> >
> > - Original Message -
> > > From: "VONDRA Alain" 
> > > To: "Martin Polednik" 
> > > Cc: users@ovirt.org, "Michal Skrivanek" 
> > > Sent: Friday, January 16, 2015 12:30:10 PM
> > > Subject: Re: [ovirt-users] USB Modem in a VM
> > >
> > > Ok Martin,
> > > I'll try the python script, but I'm a newbie in python, which
> > > argumenet I need to put to execute it ?
> > > Thank you
> > > Alain
> >
> > Simply save it into something like listdevices.py and run $ python
> > listdevices.py.
> > It will list libvirt XML for all of the devices, you just need to find
> > correct vendor id/product id for your usb device and then use the name
> > for detach e.g. nodedev-detach usb_usb0.
> >
> > > 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 : Martin Polednik [mailto:mpoled...@redhat.com] Envoyé : vendredi
> > > 16 janvier 2015 12:18 À : VONDRA Alain Cc : Alon Bar-Lev; Michal
> > > Skrivanek; users@ovirt.org Objet : Re: [ovirt-users] USB Modem in a
> > > VM

Re: [ovirt-users] USB Modem in a VM

2015-01-16 Thread VONDRA Alain
I've replaced with openReadOnly(0), but had a "argument 1 must be string or 
None, not int" issue, so I changed to None, but I had :

[root@unc-srv-hyp2  ~]$ python2.6 usb_dev.py
Traceback (most recent call last):
  File "usb_dev.py", line 5, in 
devices = conn.listAllDevices()
TypeError: listAllDevices() takes exactly 2 arguments (1 given)

I put the VM name in openReadOnly("unc-srv-prnt3") and I had this issue :

libvirt:  error : no connection driver available for unc-srv-prnt3
Traceback (most recent call last):
  File "usb_dev.py", line 4, in 
conn = libvirt.openReadOnly("unc-srv-prnt3")
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 247, in 
openReadOnly
if ret is None:raise libvirtError('virConnectOpenReadOnly() failed')
libvirt.libvirtError: no connection driver available for unc-srv-prnt3

What's wrong ?








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 : Martin Polednik [mailto:mpoled...@redhat.com]
Envoyé : vendredi 16 janvier 2015 15:47
À : VONDRA Alain
Cc : users@ovirt.org; Michal Skrivanek
Objet : Re: [ovirt-users] USB Modem in a VM



- Original Message -
> From: "VONDRA Alain" 
> To: "Martin Polednik" 
> Cc: users@ovirt.org, "Michal Skrivanek" 
> Sent: Friday, January 16, 2015 2:45:09 PM
> Subject: Re: [ovirt-users] USB Modem in a VM
>
> Hi Martin,
> That's what I've done, but the result is a missing argument.
>
> [root@unc-srv-hyp2  ~]$ python2.6 usb_dev.py Traceback (most recent
> call last):
>   File "usb_dev.py", line 4, in 
> conn = libvirt.openReadOnly()
> TypeError: openReadOnly() takes exactly 1 argument (0 given

My mistake, you can use openReadOnly(0) (can be omitted for some libvirt 
versions).

> 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 : Martin Polednik [mailto:mpoled...@redhat.com] Envoyé : vendredi
> 16 janvier 2015 13:18 À : VONDRA Alain Cc : users@ovirt.org; Michal
> Skrivanek Objet : Re: [ovirt-users] USB Modem in a VM
>
>
>
> - Original Message -
> > From: "VONDRA Alain" 
> > To: "Martin Polednik" 
> > Cc: users@ovirt.org, "Michal Skrivanek" 
> > Sent: Friday, January 16, 2015 12:30:10 PM
> > Subject: Re: [ovirt-users] USB Modem in a VM
> >
> > Ok Martin,
> > I'll try the python script, but I'm a newbie in python, which
> > argumenet I need to put to execute it ?
> > Thank you
> > Alain
>
> Simply save it into something like listdevices.py and run $ python
> listdevices.py.
> It will list libvirt XML for all of the devices, you just need to find
> correct vendor id/product id for your usb device and then use the name
> for detach e.g. nodedev-detach usb_usb0.
>
> > 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 : Martin Polednik [mailto:mpoled...@redhat.com] Envoyé : vendredi
> > 16 janvier 2015 12:18 À : VONDRA Alain Cc : Alon Bar-Lev; Michal
> > Skrivanek; users@ovirt.org Objet : Re: [ovirt-users] USB Modem in a
> > VM
> >
> >
> >
> > - Original Message -
> > > From: "VONDRA Alain" 
> > > To: "Martin Polednik" 
> > > Cc: "Alon Bar-Lev" , "Michal Skrivanek"
> > > , users@ovirt.org
> > > Sent: Friday, January 16, 2015 12:10:35 PM
> > > Subject: RE: [ovirt-users] USB Modem in a VM
> > >
> > > Hi,
> > > I'm sure of the device, it's clearer with lsusb, you see all the
> > > infos about the device :
> > >
> > > Bus 001 Device 006: ID 0572:1321 Conexant Systems (Rockwell), Inc.
> > > Device Descriptor:
> > >   bLength18
> > >   bDescriptorType 1
> > >   bcdUSB   1.10
> > >   bDeviceClass2 Communications
> > >   bDeviceSubClass 0
> > >   bDeviceProtocol 0
> > >   bMaxPacketSize064
> > >   idVendor  

Re: [ovirt-users] USB Modem in a VM

2015-01-16 Thread Martin Polednik


- Original Message -
> From: "VONDRA Alain" 
> To: "Martin Polednik" 
> Cc: users@ovirt.org, "Michal Skrivanek" 
> Sent: Friday, January 16, 2015 2:45:09 PM
> Subject: Re: [ovirt-users] USB Modem in a VM
> 
> Hi Martin,
> That's what I've done, but the result is a missing argument.
> 
> [root@unc-srv-hyp2  ~]$ python2.6 usb_dev.py
> Traceback (most recent call last):
>   File "usb_dev.py", line 4, in 
> conn = libvirt.openReadOnly()
> TypeError: openReadOnly() takes exactly 1 argument (0 given

My mistake, you can use openReadOnly(0) (can be omitted for some libvirt 
versions).

> 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 : Martin Polednik [mailto:mpoled...@redhat.com]
> Envoyé : vendredi 16 janvier 2015 13:18
> À : VONDRA Alain
> Cc : users@ovirt.org; Michal Skrivanek
> Objet : Re: [ovirt-users] USB Modem in a VM
> 
> 
> 
> - Original Message -
> > From: "VONDRA Alain" 
> > To: "Martin Polednik" 
> > Cc: users@ovirt.org, "Michal Skrivanek" 
> > Sent: Friday, January 16, 2015 12:30:10 PM
> > Subject: Re: [ovirt-users] USB Modem in a VM
> >
> > Ok Martin,
> > I'll try the python script, but I'm a newbie in python, which
> > argumenet I need to put to execute it ?
> > Thank you
> > Alain
> 
> Simply save it into something like listdevices.py and run $ python
> listdevices.py.
> It will list libvirt XML for all of the devices, you just need to find
> correct vendor id/product id for your usb device and then use the name for
> detach e.g. nodedev-detach usb_usb0.
> 
> > 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 : Martin Polednik [mailto:mpoled...@redhat.com] Envoyé : vendredi
> > 16 janvier 2015 12:18 À : VONDRA Alain Cc : Alon Bar-Lev; Michal
> > Skrivanek; users@ovirt.org Objet : Re: [ovirt-users] USB Modem in a VM
> >
> >
> >
> > - Original Message -
> > > From: "VONDRA Alain" 
> > > To: "Martin Polednik" 
> > > Cc: "Alon Bar-Lev" , "Michal Skrivanek"
> > > , users@ovirt.org
> > > Sent: Friday, January 16, 2015 12:10:35 PM
> > > Subject: RE: [ovirt-users] USB Modem in a VM
> > >
> > > Hi,
> > > I'm sure of the device, it's clearer with lsusb, you see all the
> > > infos about the device :
> > >
> > > Bus 001 Device 006: ID 0572:1321 Conexant Systems (Rockwell), Inc.
> > > Device Descriptor:
> > >   bLength18
> > >   bDescriptorType 1
> > >   bcdUSB   1.10
> > >   bDeviceClass2 Communications
> > >   bDeviceSubClass 0
> > >   bDeviceProtocol 0
> > >   bMaxPacketSize064
> > >   idVendor   0x0572 Conexant Systems (Rockwell), Inc.
> > >   idProduct  0x1321
> > >   bcdDevice1.00
> > >   iManufacturer   1 Conexant
> > >   iProduct2 USB Modem
> > >   iSerial 3 24680246
> > >   bNumConfigurations  2
> > >   Configuration Descriptor:
> > > bLength 9
> > > bDescriptorType 2
> > > wTotalLength   73
> > > bNumInterfaces  2
> > > bConfigurationValue 1
> > > iConfiguration  0
> > > bmAttributes 0x80
> > >   (Bus Powered)
> > > MaxPower  100mA
> > > Interface Descriptor:
> > >   bLength 9
> > >   bDescriptorType 4
> > >
> > > With nodedev we just see device nodes, pretty difficult to identify,
> > > even with --tree opt :
> > >
> > > usb_1_0_1_0
> > > usb_1_1
> > > usb_1_1_1_0
> > > usb_1_1_4
> > > usb_1_1_4_1_0
> > > usb_1_1_4_1_1
> > > usb_1_1_6
> > > usb_1_1_6_1
> > > usb_1_1_6_1_0
> > > usb_1_1_6_1_1_0
> > > u

Re: [ovirt-users] USB Modem in a VM

2015-01-16 Thread VONDRA Alain
Hi Martin,
That's what I've done, but the result is a missing argument.

[root@unc-srv-hyp2  ~]$ python2.6 usb_dev.py
Traceback (most recent call last):
  File "usb_dev.py", line 4, in 
conn = libvirt.openReadOnly()
TypeError: openReadOnly() takes exactly 1 argument (0 given

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 : Martin Polednik [mailto:mpoled...@redhat.com]
Envoyé : vendredi 16 janvier 2015 13:18
À : VONDRA Alain
Cc : users@ovirt.org; Michal Skrivanek
Objet : Re: [ovirt-users] USB Modem in a VM



- Original Message -
> From: "VONDRA Alain" 
> To: "Martin Polednik" 
> Cc: users@ovirt.org, "Michal Skrivanek" 
> Sent: Friday, January 16, 2015 12:30:10 PM
> Subject: Re: [ovirt-users] USB Modem in a VM
>
> Ok Martin,
> I'll try the python script, but I'm a newbie in python, which
> argumenet I need to put to execute it ?
> Thank you
> Alain

Simply save it into something like listdevices.py and run $ python 
listdevices.py.
It will list libvirt XML for all of the devices, you just need to find correct 
vendor id/product id for your usb device and then use the name for detach e.g. 
nodedev-detach usb_usb0.

> 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 : Martin Polednik [mailto:mpoled...@redhat.com] Envoyé : vendredi
> 16 janvier 2015 12:18 À : VONDRA Alain Cc : Alon Bar-Lev; Michal
> Skrivanek; users@ovirt.org Objet : Re: [ovirt-users] USB Modem in a VM
>
>
>
> - Original Message -
> > From: "VONDRA Alain" 
> > To: "Martin Polednik" 
> > Cc: "Alon Bar-Lev" , "Michal Skrivanek"
> > , users@ovirt.org
> > Sent: Friday, January 16, 2015 12:10:35 PM
> > Subject: RE: [ovirt-users] USB Modem in a VM
> >
> > Hi,
> > I'm sure of the device, it's clearer with lsusb, you see all the
> > infos about the device :
> >
> > Bus 001 Device 006: ID 0572:1321 Conexant Systems (Rockwell), Inc.
> > Device Descriptor:
> >   bLength18
> >   bDescriptorType 1
> >   bcdUSB   1.10
> >   bDeviceClass2 Communications
> >   bDeviceSubClass 0
> >   bDeviceProtocol 0
> >   bMaxPacketSize064
> >   idVendor   0x0572 Conexant Systems (Rockwell), Inc.
> >   idProduct  0x1321
> >   bcdDevice1.00
> >   iManufacturer   1 Conexant
> >   iProduct2 USB Modem
> >   iSerial 3 24680246
> >   bNumConfigurations  2
> >   Configuration Descriptor:
> > bLength 9
> > bDescriptorType 2
> > wTotalLength   73
> > bNumInterfaces  2
> > bConfigurationValue 1
> > iConfiguration  0
> > bmAttributes 0x80
> >   (Bus Powered)
> > MaxPower  100mA
> > Interface Descriptor:
> >   bLength 9
> >   bDescriptorType 4
> >
> > With nodedev we just see device nodes, pretty difficult to identify,
> > even with --tree opt :
> >
> > usb_1_0_1_0
> > usb_1_1
> > usb_1_1_1_0
> > usb_1_1_4
> > usb_1_1_4_1_0
> > usb_1_1_4_1_1
> > usb_1_1_6
> > usb_1_1_6_1
> > usb_1_1_6_1_0
> > usb_1_1_6_1_1_0
> > usb_1_1_6_1_1_1
> > usb_1_1_6_1_1_2
> > usb_2_0_1_0
> > usb_2_1
> > usb_2_1_1_0
> > usb_usb1
> > usb_usb2
>
> The issue is, you need to get libvirt name of the device and run the
> nodedev-detach
> - have you done that with no success?
>
> If not, use some simple script such as (python)
>
> import libvirt
>
> conn = libvirt.openReadOnly()
> devices = conn.listAllDevices()
> for dev in devices:
> print dev.XMLDesc()
>
> to easily find the device and use the  element for nodedev-detach call.
> That should handle unbinding it from the driver and possibly binding
> it to some usb stub if that exists.
> If that doesn't fix it, I admit that I'm not sure what could be the
> cause apart from OS/hw.
>
> > The xml injected is, I think right :
> >
> > 
> > 
> > 
> > 
> > 
> > 
> &

Re: [ovirt-users] USB Modem in a VM

2015-01-16 Thread Martin Polednik


- Original Message -
> From: "VONDRA Alain" 
> To: "Martin Polednik" 
> Cc: users@ovirt.org, "Michal Skrivanek" 
> Sent: Friday, January 16, 2015 12:30:10 PM
> Subject: Re: [ovirt-users] USB Modem in a VM
> 
> Ok Martin,
> I'll try the python script, but I'm a newbie in python, which argumenet I
> need to put to execute it ?
> Thank you
> Alain
 
Simply save it into something like listdevices.py and run $ python 
listdevices.py.
It will list libvirt XML for all of the devices, you just need to find correct
vendor id/product id for your usb device and then use the name for detach
e.g. nodedev-detach usb_usb0.
  
> 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 : Martin Polednik [mailto:mpoled...@redhat.com]
> Envoyé : vendredi 16 janvier 2015 12:18
> À : VONDRA Alain
> Cc : Alon Bar-Lev; Michal Skrivanek; users@ovirt.org
> Objet : Re: [ovirt-users] USB Modem in a VM
> 
> 
> 
> - Original Message -
> > From: "VONDRA Alain" 
> > To: "Martin Polednik" 
> > Cc: "Alon Bar-Lev" , "Michal Skrivanek"
> > , users@ovirt.org
> > Sent: Friday, January 16, 2015 12:10:35 PM
> > Subject: RE: [ovirt-users] USB Modem in a VM
> >
> > Hi,
> > I'm sure of the device, it's clearer with lsusb, you see all the infos
> > about the device :
> >
> > Bus 001 Device 006: ID 0572:1321 Conexant Systems (Rockwell), Inc.
> > Device Descriptor:
> >   bLength18
> >   bDescriptorType 1
> >   bcdUSB   1.10
> >   bDeviceClass2 Communications
> >   bDeviceSubClass 0
> >   bDeviceProtocol 0
> >   bMaxPacketSize064
> >   idVendor   0x0572 Conexant Systems (Rockwell), Inc.
> >   idProduct  0x1321
> >   bcdDevice1.00
> >   iManufacturer   1 Conexant
> >   iProduct2 USB Modem
> >   iSerial 3 24680246
> >   bNumConfigurations  2
> >   Configuration Descriptor:
> > bLength 9
> > bDescriptorType 2
> > wTotalLength   73
> > bNumInterfaces  2
> > bConfigurationValue 1
> > iConfiguration  0
> > bmAttributes 0x80
> >   (Bus Powered)
> > MaxPower  100mA
> > Interface Descriptor:
> >   bLength 9
> >   bDescriptorType 4
> >
> > With nodedev we just see device nodes, pretty difficult to identify,
> > even with --tree opt :
> >
> > usb_1_0_1_0
> > usb_1_1
> > usb_1_1_1_0
> > usb_1_1_4
> > usb_1_1_4_1_0
> > usb_1_1_4_1_1
> > usb_1_1_6
> > usb_1_1_6_1
> > usb_1_1_6_1_0
> > usb_1_1_6_1_1_0
> > usb_1_1_6_1_1_1
> > usb_1_1_6_1_1_2
> > usb_2_0_1_0
> > usb_2_1
> > usb_2_1_1_0
> > usb_usb1
> > usb_usb2
> 
> The issue is, you need to get libvirt name of the device and run the
> nodedev-detach
> - have you done that with no success?
> 
> If not, use some simple script such as (python)
> 
> import libvirt
> 
> conn = libvirt.openReadOnly()
> devices = conn.listAllDevices()
> for dev in devices:
> print dev.XMLDesc()
> 
> to easily find the device and use the  element for nodedev-detach call.
> That should handle unbinding it from the driver and possibly binding it to
> some usb stub if that exists.
> If that doesn't fix it, I admit that I'm not sure what could be the cause
> apart from OS/hw.
> 
> > The xml injected is, I think right :
> >
> > 
> >         
> > 
> > 
> > 
> > 
> >
> > Even with The device on the VM xml, the device does'nt appears in the
> > Windows VM.
> > Regards
> > 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 : Martin Polednik [mailto:mpoled...@redhat.com] Envoyé : vendredi
> > 16 janvier 2015 11:37 À : VONDRA Alain Cc : Alon Bar-Lev; Mic

Re: [ovirt-users] USB Modem in a VM

2015-01-16 Thread VONDRA Alain
Ok Martin,
I'll try the python script, but I'm a newbie in python, which argumenet I need 
to put to execute it ?
Thank you
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 : Martin Polednik [mailto:mpoled...@redhat.com]
Envoyé : vendredi 16 janvier 2015 12:18
À : VONDRA Alain
Cc : Alon Bar-Lev; Michal Skrivanek; users@ovirt.org
Objet : Re: [ovirt-users] USB Modem in a VM



- Original Message -
> From: "VONDRA Alain" 
> To: "Martin Polednik" 
> Cc: "Alon Bar-Lev" , "Michal Skrivanek"
> , users@ovirt.org
> Sent: Friday, January 16, 2015 12:10:35 PM
> Subject: RE: [ovirt-users] USB Modem in a VM
>
> Hi,
> I'm sure of the device, it's clearer with lsusb, you see all the infos
> about the device :
>
> Bus 001 Device 006: ID 0572:1321 Conexant Systems (Rockwell), Inc.
> Device Descriptor:
>   bLength18
>   bDescriptorType 1
>   bcdUSB   1.10
>   bDeviceClass2 Communications
>   bDeviceSubClass 0
>   bDeviceProtocol 0
>   bMaxPacketSize064
>   idVendor   0x0572 Conexant Systems (Rockwell), Inc.
>   idProduct  0x1321
>   bcdDevice1.00
>   iManufacturer   1 Conexant
>   iProduct2 USB Modem
>   iSerial 3 24680246
>   bNumConfigurations  2
>   Configuration Descriptor:
> bLength 9
> bDescriptorType 2
> wTotalLength   73
> bNumInterfaces  2
> bConfigurationValue 1
> iConfiguration  0
> bmAttributes 0x80
>   (Bus Powered)
> MaxPower  100mA
> Interface Descriptor:
>   bLength 9
>   bDescriptorType 4
>
> With nodedev we just see device nodes, pretty difficult to identify,
> even with --tree opt :
>
> usb_1_0_1_0
> usb_1_1
> usb_1_1_1_0
> usb_1_1_4
> usb_1_1_4_1_0
> usb_1_1_4_1_1
> usb_1_1_6
> usb_1_1_6_1
> usb_1_1_6_1_0
> usb_1_1_6_1_1_0
> usb_1_1_6_1_1_1
> usb_1_1_6_1_1_2
> usb_2_0_1_0
> usb_2_1
> usb_2_1_1_0
> usb_usb1
> usb_usb2

The issue is, you need to get libvirt name of the device and run the 
nodedev-detach
- have you done that with no success?

If not, use some simple script such as (python)

import libvirt

conn = libvirt.openReadOnly()
devices = conn.listAllDevices()
for dev in devices:
print dev.XMLDesc()

to easily find the device and use the  element for nodedev-detach call. 
That should handle unbinding it from the driver and possibly binding it to some 
usb stub if that exists.
If that doesn't fix it, I admit that I'm not sure what could be the cause apart 
from OS/hw.

> The xml injected is, I think right :
>
> 
> 
> 
> 
> 
> 
>
> Even with The device on the VM xml, the device does'nt appears in the
> Windows VM.
> Regards
> 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 : Martin Polednik [mailto:mpoled...@redhat.com] Envoyé : vendredi
> 16 janvier 2015 11:37 À : VONDRA Alain Cc : Alon Bar-Lev; Michal
> Skrivanek; users@ovirt.org Objet : Re: [ovirt-users] USB Modem in a VM
>
> - Original Message -
> > From: "VONDRA Alain" 
> > To: "Alon Bar-Lev" , "Michal Skrivanek"
> > 
> > Cc: users@ovirt.org
> > Sent: Thursday, January 15, 2015 10:33:19 PM
> > Subject: Re: [ovirt-users] USB Modem in a VM
> >
> > Hi,
> > I've tried also to inject the device with virsh attach-device, all
> > seems to work but nothing happen in the VM :
> >
> > [root@unc-srv-hyp2  ~]$ virsh attach-device unc-srv-prnt3
> > usb-modem.xml Please enter your authentication name: root Please
> > enter your password:
> > Device attached successfully
> >
> > What did I do wrong, any ideas ?
>
> Hello,
> One possibility might be the fact that libvirt itself doesn't have
> managed mode for USB devices and I'm not sure virt-manager has the
> appropriate routine handled.
>
> Could you try running
> $ virsh nodedev-list
> to find the correct usb device and then # virsh nodedev-detach
> the_usb_device or posibly nodedev-dettach if you run older libvirt?
>
> 

Re: [ovirt-users] USB Modem in a VM

2015-01-16 Thread Michal Skrivanek

On 16 Jan 2015, at 12:10, VONDRA Alain wrote:

> Hi,
> I'm sure of the device, it's clearer with lsusb, you see all the infos about 
> the device :
> 
> Bus 001 Device 006: ID 0572:1321 Conexant Systems (Rockwell), Inc.
> Device Descriptor:
>  bLength18
>  bDescriptorType 1
>  bcdUSB   1.10
>  bDeviceClass2 Communications
>  bDeviceSubClass 0
>  bDeviceProtocol 0
>  bMaxPacketSize064
>  idVendor   0x0572 Conexant Systems (Rockwell), Inc.
>  idProduct  0x1321
>  bcdDevice1.00
>  iManufacturer   1 Conexant
>  iProduct2 USB Modem
>  iSerial 3 24680246
>  bNumConfigurations  2
>  Configuration Descriptor:
>bLength 9
>bDescriptorType 2
>wTotalLength   73
>bNumInterfaces  2
>bConfigurationValue 1
>iConfiguration  0
>bmAttributes 0x80
>  (Bus Powered)
>MaxPower  100mA
>Interface Descriptor:
>  bLength 9
>  bDescriptorType 4
> 
> With nodedev we just see device nodes, pretty difficult to identify, even 
> with --tree opt :
> 
> usb_1_0_1_0
> usb_1_1
> usb_1_1_1_0
> usb_1_1_4
> usb_1_1_4_1_0
> usb_1_1_4_1_1
> usb_1_1_6
> usb_1_1_6_1
> usb_1_1_6_1_0
> usb_1_1_6_1_1_0
> usb_1_1_6_1_1_1
> usb_1_1_6_1_1_2
> usb_2_0_1_0
> usb_2_1
> usb_2_1_1_0
> usb_usb1
> usb_usb2
> 
> The xml injected is, I think right :
> 
> 
>
>
>
>
> 
> 
> Even with The device on the VM xml, the device does'nt appears in the Windows 
> VM.

How do you check it in the guest?
can you try that with Linux guest to see if any device whatsoever shows up?

Thanks,
michal

> Regards
> 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 : Martin Polednik [mailto:mpoled...@redhat.com]
> Envoyé : vendredi 16 janvier 2015 11:37
> À : VONDRA Alain
> Cc : Alon Bar-Lev; Michal Skrivanek; users@ovirt.org
> Objet : Re: [ovirt-users] USB Modem in a VM
> 
> - Original Message -
>> From: "VONDRA Alain" 
>> To: "Alon Bar-Lev" , "Michal Skrivanek"
>> 
>> Cc: users@ovirt.org
>> Sent: Thursday, January 15, 2015 10:33:19 PM
>> Subject: Re: [ovirt-users] USB Modem in a VM
>> 
>> Hi,
>> I've tried also to inject the device with virsh attach-device, all
>> seems to work but nothing happen in the VM :
>> 
>> [root@unc-srv-hyp2  ~]$ virsh attach-device unc-srv-prnt3
>> usb-modem.xml Please enter your authentication name: root Please enter
>> your password:
>> Device attached successfully
>> 
>> What did I do wrong, any ideas ?
> 
> Hello,
> One possibility might be the fact that libvirt itself doesn't have managed 
> mode for USB devices and I'm not sure virt-manager has the appropriate 
> routine handled.
> 
> Could you try running
> $ virsh nodedev-list
> to find the correct usb device and then
> # virsh nodedev-detach the_usb_device
> or posibly nodedev-dettach if you run older libvirt?
> 
> After that, try starting VM with hostdev element added to XML.
> 
>> Regards
>> 
>> 
>> 
>> 
>> 
>> 
>> 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 : Alon Bar-Lev [alo...@redhat.com]
>> Envoyé : jeudi 15 janvier 2015 21:23
>> À : VONDRA Alain; Michal Skrivanek
>> Cc : users@ovirt.org
>> Objet : Re: [ovirt-users]  USB Modem in a VM
>> 
>> Michal, any clue?
>> 
>> - Original Message -
>>> From: "VONDRA Alain" 
>>> To: "Alon Bar-Lev" 
>>> Cc: users@ovirt.org
>>> Sent: Thursday, January 15, 2015 5:56:47 PM
>>> Subject: RE: [ovirt-users]  USB Modem in a VM
>>> 
>>> Hi,
>>> Thank you for your answer, I've tried to insert my USB modem, but it
>>> doesn't up in the Windows VM.
>>> I&#x

Re: [ovirt-users] USB Modem in a VM

2015-01-16 Thread Martin Polednik


- Original Message -
> From: "VONDRA Alain" 
> To: "Martin Polednik" 
> Cc: "Alon Bar-Lev" , "Michal Skrivanek" 
> , users@ovirt.org
> Sent: Friday, January 16, 2015 12:10:35 PM
> Subject: RE: [ovirt-users] USB Modem in a VM
> 
> Hi,
> I'm sure of the device, it's clearer with lsusb, you see all the infos about
> the device :
> 
> Bus 001 Device 006: ID 0572:1321 Conexant Systems (Rockwell), Inc.
> Device Descriptor:
>   bLength18
>   bDescriptorType 1
>   bcdUSB   1.10
>   bDeviceClass2 Communications
>   bDeviceSubClass 0
>   bDeviceProtocol 0
>   bMaxPacketSize064
>   idVendor   0x0572 Conexant Systems (Rockwell), Inc.
>   idProduct  0x1321
>   bcdDevice1.00
>   iManufacturer   1 Conexant
>   iProduct2 USB Modem
>   iSerial 3 24680246
>   bNumConfigurations  2
>   Configuration Descriptor:
> bLength 9
> bDescriptorType 2
> wTotalLength   73
> bNumInterfaces  2
> bConfigurationValue 1
> iConfiguration  0
> bmAttributes 0x80
>   (Bus Powered)
> MaxPower  100mA
> Interface Descriptor:
>   bLength 9
>   bDescriptorType 4
> 
> With nodedev we just see device nodes, pretty difficult to identify, even
> with --tree opt :
> 
> usb_1_0_1_0
> usb_1_1
> usb_1_1_1_0
> usb_1_1_4
> usb_1_1_4_1_0
> usb_1_1_4_1_1
> usb_1_1_6
> usb_1_1_6_1
> usb_1_1_6_1_0
> usb_1_1_6_1_1_0
> usb_1_1_6_1_1_1
> usb_1_1_6_1_1_2
> usb_2_0_1_0
> usb_2_1
> usb_2_1_1_0
> usb_usb1
> usb_usb2

The issue is, you need to get libvirt name of the device and run the 
nodedev-detach
- have you done that with no success?

If not, use some simple script such as (python)

import libvirt

conn = libvirt.openReadOnly()
devices = conn.listAllDevices()
for dev in devices:
print dev.XMLDesc()

to easily find the device and use the  element for nodedev-detach call. 
That should
handle unbinding it from the driver and possibly binding it to some usb stub if 
that exists.
If that doesn't fix it, I admit that I'm not sure what could be the cause apart 
from OS/hw.
 
> The xml injected is, I think right :
> 
> 
> 
> 
> 
> 
> 
> 
> Even with The device on the VM xml, the device does'nt appears in the Windows
> VM.
> Regards
> 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 : Martin Polednik [mailto:mpoled...@redhat.com]
> Envoyé : vendredi 16 janvier 2015 11:37
> À : VONDRA Alain
> Cc : Alon Bar-Lev; Michal Skrivanek; users@ovirt.org
> Objet : Re: [ovirt-users] USB Modem in a VM
> 
> - Original Message -
> > From: "VONDRA Alain" 
> > To: "Alon Bar-Lev" , "Michal Skrivanek"
> > 
> > Cc: users@ovirt.org
> > Sent: Thursday, January 15, 2015 10:33:19 PM
> > Subject: Re: [ovirt-users] USB Modem in a VM
> >
> > Hi,
> > I've tried also to inject the device with virsh attach-device, all
> > seems to work but nothing happen in the VM :
> >
> > [root@unc-srv-hyp2  ~]$ virsh attach-device unc-srv-prnt3
> > usb-modem.xml Please enter your authentication name: root Please enter
> > your password:
> > Device attached successfully
> >
> > What did I do wrong, any ideas ?
> 
> Hello,
> One possibility might be the fact that libvirt itself doesn't have managed
> mode for USB devices and I'm not sure virt-manager has the appropriate
> routine handled.
> 
> Could you try running
> $ virsh nodedev-list
> to find the correct usb device and then
> # virsh nodedev-detach the_usb_device
> or posibly nodedev-dettach if you run older libvirt?
> 
> After that, try starting VM with hostdev element added to XML.
> 
> > Regards
> >
> >
> >
> >
> >
> >
> > 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 : Alon Bar-Lev [alo...@redhat.

Re: [ovirt-users] USB Modem in a VM

2015-01-16 Thread VONDRA Alain
Hi,
I'm sure of the device, it's clearer with lsusb, you see all the infos about 
the device :

Bus 001 Device 006: ID 0572:1321 Conexant Systems (Rockwell), Inc.
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   1.10
  bDeviceClass2 Communications
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize064
  idVendor   0x0572 Conexant Systems (Rockwell), Inc.
  idProduct  0x1321
  bcdDevice1.00
  iManufacturer   1 Conexant
  iProduct2 USB Modem
  iSerial 3 24680246
  bNumConfigurations  2
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   73
bNumInterfaces  2
bConfigurationValue 1
iConfiguration  0
bmAttributes 0x80
  (Bus Powered)
MaxPower  100mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4

With nodedev we just see device nodes, pretty difficult to identify, even with 
--tree opt :

usb_1_0_1_0
usb_1_1
usb_1_1_1_0
usb_1_1_4
usb_1_1_4_1_0
usb_1_1_4_1_1
usb_1_1_6
usb_1_1_6_1
usb_1_1_6_1_0
usb_1_1_6_1_1_0
usb_1_1_6_1_1_1
usb_1_1_6_1_1_2
usb_2_0_1_0
usb_2_1
usb_2_1_1_0
usb_usb1
usb_usb2

The xml injected is, I think right :








Even with The device on the VM xml, the device does'nt appears in the Windows 
VM.
Regards
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 : Martin Polednik [mailto:mpoled...@redhat.com]
Envoyé : vendredi 16 janvier 2015 11:37
À : VONDRA Alain
Cc : Alon Bar-Lev; Michal Skrivanek; users@ovirt.org
Objet : Re: [ovirt-users] USB Modem in a VM

- Original Message -
> From: "VONDRA Alain" 
> To: "Alon Bar-Lev" , "Michal Skrivanek"
> 
> Cc: users@ovirt.org
> Sent: Thursday, January 15, 2015 10:33:19 PM
> Subject: Re: [ovirt-users] USB Modem in a VM
>
> Hi,
> I've tried also to inject the device with virsh attach-device, all
> seems to work but nothing happen in the VM :
>
> [root@unc-srv-hyp2  ~]$ virsh attach-device unc-srv-prnt3
> usb-modem.xml Please enter your authentication name: root Please enter
> your password:
> Device attached successfully
>
> What did I do wrong, any ideas ?

Hello,
One possibility might be the fact that libvirt itself doesn't have managed mode 
for USB devices and I'm not sure virt-manager has the appropriate routine 
handled.

Could you try running
$ virsh nodedev-list
to find the correct usb device and then
# virsh nodedev-detach the_usb_device
or posibly nodedev-dettach if you run older libvirt?

After that, try starting VM with hostdev element added to XML.

> Regards
>
>
>
>
>
>
> 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 : Alon Bar-Lev [alo...@redhat.com]
> Envoyé : jeudi 15 janvier 2015 21:23
> À : VONDRA Alain; Michal Skrivanek
> Cc : users@ovirt.org
> Objet : Re: [ovirt-users]  USB Modem in a VM
>
> Michal, any clue?
>
> - Original Message -
> > From: "VONDRA Alain" 
> > To: "Alon Bar-Lev" 
> > Cc: users@ovirt.org
> > Sent: Thursday, January 15, 2015 5:56:47 PM
> > Subject: RE: [ovirt-users]  USB Modem in a VM
> >
> > 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 :
> >
> >  
> >   
> &

Re: [ovirt-users] USB Modem in a VM

2015-01-16 Thread Martin Polednik
- Original Message -
> From: "VONDRA Alain" 
> To: "Alon Bar-Lev" , "Michal Skrivanek" 
> 
> Cc: users@ovirt.org
> Sent: Thursday, January 15, 2015 10:33:19 PM
> Subject: Re: [ovirt-users] USB Modem in a VM
> 
> Hi,
> I've tried also to inject the device with virsh attach-device, all seems to
> work but nothing happen in the VM :
> 
> [root@unc-srv-hyp2  ~]$ virsh attach-device unc-srv-prnt3 usb-modem.xml
> Please enter your authentication name: root
> Please enter your password:
> Device attached successfully
> 
> What did I do wrong, any ideas ?

Hello,
One possibility might be the fact that libvirt itself doesn't have managed mode
for USB devices and I'm not sure virt-manager has the appropriate routine 
handled.

Could you try running
$ virsh nodedev-list
to find the correct usb device and then
# virsh nodedev-detach the_usb_device 
or posibly nodedev-dettach if you run older libvirt?

After that, try starting VM with hostdev element added to XML.

> Regards
> 
> 
> 
> 
> 
> 
> 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 : Alon Bar-Lev [alo...@redhat.com]
> Envoyé : jeudi 15 janvier 2015 21:23
> À : VONDRA Alain; Michal Skrivanek
> Cc : users@ovirt.org
> Objet : Re: [ovirt-users]  USB Modem in a VM
> 
> Michal, any clue?
> 
> ----- Original Message -
> > From: "VONDRA Alain" 
> > To: "Alon Bar-Lev" 
> > Cc: users@ovirt.org
> > Sent: Thursday, January 15, 2015 5:56:47 PM
> > Subject: RE: [ovirt-users]  USB Modem in a VM
> >
> > 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 :
> >
> >  
> >   
> > 
> > 
> >   
> > 
> >
> > 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:alo...@redhat.com]
> > Envoyé : mardi 13 janvier 2015 17:47
> > À : VONDRA Alain
> > Cc : users@ovirt.org
> > Objet : Re: [ovirt-users] USB Modem in a VM
> >
> >
> >
> > - Original Message -
> > > From: "VONDRA Alain" 
> > > To: users@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:
> >
> > 
> >   ...
> >   …
> >   
> > …
> > 
> >   
> > 
> > 
> >   
> > 
> >   
> > 
> >
> > 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@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] USB Modem in a VM

2015-01-15 Thread VONDRA Alain
Hi,
I've tried also to inject the device with virsh attach-device, all seems to 
work but nothing happen in the VM :

[root@unc-srv-hyp2  ~]$ virsh attach-device unc-srv-prnt3 usb-modem.xml
Please enter your authentication name: root
Please enter your password:
Device attached successfully

What did I do wrong, any ideas ?
Regards






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 : Alon Bar-Lev [alo...@redhat.com]
Envoyé : jeudi 15 janvier 2015 21:23
À : VONDRA Alain; Michal Skrivanek
Cc : users@ovirt.org
Objet : Re: [ovirt-users]  USB Modem in a VM

Michal, any clue?

- Original Message -
> From: "VONDRA Alain" 
> To: "Alon Bar-Lev" 
> Cc: users@ovirt.org
> Sent: Thursday, January 15, 2015 5:56:47 PM
> Subject: RE: [ovirt-users]  USB Modem in a VM
>
> 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 :
>
>  
>   
> 
> 
>   
> 
>
> 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:alo...@redhat.com]
> Envoyé : mardi 13 janvier 2015 17:47
> À : VONDRA Alain
> Cc : users@ovirt.org
> Objet : Re: [ovirt-users] USB Modem in a VM
>
>
>
> - Original Message -
> > From: "VONDRA Alain" 
> > To: users@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:
>
> 
>   ...
>   …
>   
> …
> 
>   
> 
> 
>   
> 
>   
> 
>
> 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@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] USB Modem in a VM

2015-01-15 Thread Alon Bar-Lev

Michal, any clue?

- Original Message -
> From: "VONDRA Alain" 
> To: "Alon Bar-Lev" 
> Cc: users@ovirt.org
> Sent: Thursday, January 15, 2015 5:56:47 PM
> Subject: RE: [ovirt-users]  USB Modem in a VM
> 
> 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 :
> 
>  
>   
> 
> 
>   
> 
> 
> 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:alo...@redhat.com]
> Envoyé : mardi 13 janvier 2015 17:47
> À : VONDRA Alain
> Cc : users@ovirt.org
> Objet : Re: [ovirt-users] USB Modem in a VM
> 
> 
> 
> - Original Message -
> > From: "VONDRA Alain" 
> > To: users@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:
> 
> 
>   ...
>   …
>   
> …
> 
>   
> 
> 
>   
> 
>   
> 
> 
> 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@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] USB Modem in a VM

2015-01-15 Thread VONDRA Alain
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 :

 
  


  


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:alo...@redhat.com]
Envoyé : mardi 13 janvier 2015 17:47
À : VONDRA Alain
Cc : users@ovirt.org
Objet : Re: [ovirt-users] USB Modem in a VM



- Original Message -
> From: "VONDRA Alain" 
> To: users@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:


  ...
  …
  
…

  


  

  


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@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] USB Modem in a VM

2015-01-13 Thread Alon Bar-Lev


- Original Message -
> From: "VONDRA Alain" 
> To: users@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:


  ...
  …
  
…

  


  

  


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@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] USB Modem in a VM

2015-01-13 Thread VONDRA Alain
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.






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













[cid:siganture_bonne-annee_taille1702da61b]

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