Hi everyone,
I installed xen from packages on Ubuntu 12.04, getting the version 4.1.2 .
I wanted to use pvusb which I understand was functional on this version to
pass an USB hard drive to my DomU, but I only manage to get this error
trying to attach the device to a domain.
It may also be worth mentionning that "xm usb-hc-destroy mydomu 0"
doesn''t
have any effect, so it doesn''t give back any error (I get one if I try
on
an unregistered devId) but don''t remove the host controller.
So should pvusb be fonctionnal on this version of xen/xm ? If yes, any help
would be highly appreciated.
Thanks,
Erwan
root@xenprob:/home/xenprob# xm usb-list-assignable
2-1.3 : ID 154b:005b PNY Technologies USB 2.0 FD
2-1.6 : ID 413c:2107 DELL Dell USB Entry Keyboard
2-1.8 : ID 046d:c077 Logitech USB Optical Mous
root@xenprob:/home/xenprob# xm usb-list mydomu
Idx BE state usb-ver BE-path
0 0 1 USB2.0 /local/domain/0/backend/vusb/2/0
port 1:
port 2:
root@xenprob:/home/xenprob# xm usb-attach mydomu 0 1 2-1.3
Unexpected error: <class
''xen.util.vusb_util.UsbDeviceParseError''>
Please report to xen-devel@lists.xensource.com
Traceback (most recent call last):
File "/usr/lib/xen-4.1/bin/xm", line 8, in <module>
main.main(sys.argv)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xm/main.py", line 3983,
in
main
_, rc = _run_cmd(cmd, cmd_name, args)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xm/main.py", line 4007,
in
_run_cmd
return True, cmd(args)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xm/main.py", line 3046,
in
xm_usb_attach
if vusb_util.bus_is_assigned(bus):
File "/usr/lib/xen-4.1/bin/../lib/python/xen/util/vusb_util.py",
line
275, in bus_is_assigned
raise UsbDeviceParseError("Can''t get assignment status:
(%s)." % bus)
xen.util.vusb_util.UsbDeviceParseError: vusb: Error parsing USB device
info: Can''t get assignment status: (2-1.3).
root@xenprob:/home/xenprob# xm info
host : xenprob
release : 3.2.0-44-generic
version : #69-Ubuntu SMP Thu May 16 17:35:01 UTC 2013
machine : x86_64
nr_cpus : 12
nr_nodes : 1
cores_per_socket : 6
threads_per_core : 2
cpu_mhz : 1995
hw_caps :
bfebfbff:2c100800:00000000:00003f40:13bee3ff:00000000:00000001:00000000
virt_caps : hvm
total_memory : 16309
free_memory : 458
free_cpus : 0
xen_major : 4
xen_minor : 1
xen_extra : .2
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32
hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset : unavailable
xen_commandline : placeholder
cc_compiler : gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
cc_compile_by : stefan.bader
cc_compile_domain : canonical.com
cc_compile_date : Mon Apr 29 19:04:55 UTC 2013
xend_config_format : 4
--
Erwan PILLET
Élève ingénieur Telecom Bretagne
+33 6 52 45 44 56
erwan.pillet@telecom-bretagne.eu
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
On Wed, May 29, 2013 at 2:11 PM, Erwan PILLET <erwan.pillet@telecom-bretagne.eu> wrote:> Hi everyone, > > I installed xen from packages on Ubuntu 12.04, getting the version 4.1.2 . > I wanted to use pvusb which I understand was functional on this version to > pass an USB hard drive to my DomU, but I only manage to get this error > trying to attach the device to a domain. > > It may also be worth mentionning that "xm usb-hc-destroy mydomu 0" doesn''t > have any effect, so it doesn''t give back any error (I get one if I try on an > unregistered devId) but don''t remove the host controller. > > So should pvusb be fonctionnal on this version of xen/xm ? If yes, any help > would be highly appreciated.PVUSB requires support both from the toolstack and from the dom0 kernel. I believe PVUSB is only available in "classic Xen" kernels such as those supported by SuSE; I''m pretty sure that Ubuntu does not have one. To see if usbback is present, you can do the following: ls /sys/bus/usb/drivers/usbback If it gives you an error, then the problem is that your Ubuntu dom0 kernel doesn''t have PVUSB support. -George
On 29 May 2013 15:25, George Dunlap <George.Dunlap@eu.citrix.com> wrote:> On Wed, May 29, 2013 at 2:11 PM, Erwan PILLET > <erwan.pillet@telecom-bretagne.eu> wrote: > > Hi everyone, > > > > I installed xen from packages on Ubuntu 12.04, getting the version 4.1.2 > . > > I wanted to use pvusb which I understand was functional on this version > to > > pass an USB hard drive to my DomU, but I only manage to get this error > > trying to attach the device to a domain. > > > > It may also be worth mentionning that "xm usb-hc-destroy mydomu 0" > doesn''t > > have any effect, so it doesn''t give back any error (I get one if I try > on an > > unregistered devId) but don''t remove the host controller. > > > > So should pvusb be fonctionnal on this version of xen/xm ? If yes, any > help > > would be highly appreciated. > > PVUSB requires support both from the toolstack and from the dom0 > kernel. I believe PVUSB is only available in "classic Xen" kernels > such as those supported by SuSE; I''m pretty sure that Ubuntu does not > have one. > > To see if usbback is present, you can do the following: > > ls /sys/bus/usb/drivers/usbback > > If it gives you an error, then the problem is that your Ubuntu dom0 > kernel doesn''t have PVUSB support. > > -George >First, thanks for your help ! Indeed, there is no such file on my hypervisor, so I guess this kernel doesn''t support PVUSB. Do you know if there is a way to patch the kernel to include this feature ? -- Erwan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
On Wed, May 29, 2013 at 4:08 PM, Erwan PILLET <erwan.pillet@telecom-bretagne.eu> wrote:> On 29 May 2013 15:25, George Dunlap <George.Dunlap@eu.citrix.com> wrote: >> >> On Wed, May 29, 2013 at 2:11 PM, Erwan PILLET >> <erwan.pillet@telecom-bretagne.eu> wrote: >> > Hi everyone, >> > >> > I installed xen from packages on Ubuntu 12.04, getting the version 4.1.2 >> > . >> > I wanted to use pvusb which I understand was functional on this version >> > to >> > pass an USB hard drive to my DomU, but I only manage to get this error >> > trying to attach the device to a domain. >> > >> > It may also be worth mentionning that "xm usb-hc-destroy mydomu 0" >> > doesn''t >> > have any effect, so it doesn''t give back any error (I get one if I try >> > on an >> > unregistered devId) but don''t remove the host controller. >> > >> > So should pvusb be fonctionnal on this version of xen/xm ? If yes, any >> > help >> > would be highly appreciated. >> >> PVUSB requires support both from the toolstack and from the dom0 >> kernel. I believe PVUSB is only available in "classic Xen" kernels >> such as those supported by SuSE; I''m pretty sure that Ubuntu does not >> have one. >> >> To see if usbback is present, you can do the following: >> >> ls /sys/bus/usb/drivers/usbback >> >> If it gives you an error, then the problem is that your Ubuntu dom0 >> kernel doesn''t have PVUSB support. >> >> -George > > > > First, thanks for your help ! > Indeed, there is no such file on my hypervisor, so I guess this kernel > doesn''t support PVUSB. > Do you know if there is a way to patch the kernel to include this feature ?I think there are some trees with PVUSB, but I don''t think it''s very reliable. Konrad will know more. -George
On Wed, May 29, 2013 at 05:14:08PM +0100, George Dunlap wrote:> On Wed, May 29, 2013 at 4:08 PM, Erwan PILLET > <erwan.pillet@telecom-bretagne.eu> wrote: > > On 29 May 2013 15:25, George Dunlap <George.Dunlap@eu.citrix.com> wrote: > >> > >> On Wed, May 29, 2013 at 2:11 PM, Erwan PILLET > >> <erwan.pillet@telecom-bretagne.eu> wrote: > >> > Hi everyone, > >> > > >> > I installed xen from packages on Ubuntu 12.04, getting the version 4.1.2 > >> > . > >> > I wanted to use pvusb which I understand was functional on this version > >> > to > >> > pass an USB hard drive to my DomU, but I only manage to get this error > >> > trying to attach the device to a domain. > >> > > >> > It may also be worth mentionning that "xm usb-hc-destroy mydomu 0" > >> > doesn''t > >> > have any effect, so it doesn''t give back any error (I get one if I try > >> > on an > >> > unregistered devId) but don''t remove the host controller. > >> > > >> > So should pvusb be fonctionnal on this version of xen/xm ? If yes, any > >> > help > >> > would be highly appreciated. > >> > >> PVUSB requires support both from the toolstack and from the dom0 > >> kernel. I believe PVUSB is only available in "classic Xen" kernels > >> such as those supported by SuSE; I''m pretty sure that Ubuntu does not > >> have one. > >> > >> To see if usbback is present, you can do the following: > >> > >> ls /sys/bus/usb/drivers/usbback > >> > >> If it gives you an error, then the problem is that your Ubuntu dom0 > >> kernel doesn''t have PVUSB support. > >> > >> -George > > > > > > > > First, thanks for your help ! > > Indeed, there is no such file on my hypervisor, so I guess this kernel > > doesn''t support PVUSB. > > Do you know if there is a way to patch the kernel to include this feature ? > > I think there are some trees with PVUSB, but I don''t think it''s very > reliable. Konrad will know more.There is devel/xen-usb.v1.1 in git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git but it is so old that I fear it has many bugs in it.> > -George