New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect external USB audio interface to Windows HVM: vchan timeout #2335

Open
nic4123 opened this Issue Sep 25, 2016 · 7 comments

Comments

Projects
None yet
5 participants
@nic4123

nic4123 commented Sep 25, 2016

Qubes OS version (e.g., R3.1):

R3.2rc3

Actual behavior:

[ndm@dom0 ~]$ qvm-usb
sys-net :2-1.6    04f2:b217 Chicony_Electronics_Co.__Ltd._Integrated_Camera
sys-net:3-1.1     0582:0074 Roland_EDIROL_UA-25
[ndm@dom0 ~]$ qvm-usb -a w7 sys-net:3-1.1
ERROR: Device attach failed: vchan connection timeout (or error)
[ndm@dom0 ~]$
@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Sep 26, 2016

Member

This isn't error I'd expect. But anyway qvm-usb does not support Windows
VMs, yet.

Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Member

marmarek commented Sep 26, 2016

This isn't error I'd expect. But anyway qvm-usb does not support Windows
VMs, yet.

Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Sep 26, 2016

Member

@omeg it looks like handling non-existing services is broken. In such a case, qrexec-agent should connect back data vchan and just send non-zero exit code (Linux use 127 for non-existing commands).

Member

marmarek commented Sep 26, 2016

@omeg it looks like handling non-existing services is broken. In such a case, qrexec-agent should connect back data vchan and just send non-zero exit code (Linux use 127 for non-existing commands).

@nic4123

This comment has been minimized.

Show comment
Hide comment
@nic4123

nic4123 Sep 26, 2016

Can i have audio on working on Windows HVM if i run USB external audio interface through PCI e.g.: "qvm-pci -w7 00:1a.0"?

nic4123 commented Sep 26, 2016

Can i have audio on working on Windows HVM if i run USB external audio interface through PCI e.g.: "qvm-pci -w7 00:1a.0"?

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Sep 26, 2016

Member

In theory yes, in practice, it is broken currently: #1659

Member

marmarek commented Sep 26, 2016

In theory yes, in practice, it is broken currently: #1659

@omeg

This comment has been minimized.

Show comment
Hide comment

@omeg omeg closed this Sep 27, 2016

@omeg omeg reopened this Sep 27, 2016

@omeg

This comment has been minimized.

Show comment
Hide comment
@omeg

omeg Sep 27, 2016

Member

Well, the original problem isn't fixed...

Member

omeg commented Sep 27, 2016

Well, the original problem isn't fixed...

@tonsimple

This comment has been minimized.

Show comment
Hide comment
@tonsimple

tonsimple Jan 22, 2017

Just decided to leave a little comment here https://sourceforge.net/p/usbip/discussion/418507/thread/86c5e473/ in case someone specifically needs to pass a printer to a windows VM and is in the process of pulling their hairs out :)

It's doable using USBIP windows client from here and Fedora-24's usbip module

It does not work for webcams and flash drives however (something mysteriously broken in USBIP, either kernel module in fedora or windows client)
Fedora's printer sharing must work, but printer must be bound to usbip driver before printer sharing (cusp) starts up (so it must be called from rc.local early on)
Also, bind first then start usbipd -D

(of course, you'd need to allow networking between your usb-vm and windows vm...)

EDITED TO ADD:
using Debian 8 allowed to share a usb webcam via usbip too (also, Debian's usbip is all kinds of less quirky)
Haven't tested with usb audio tho
#2597 (comment)

tonsimple commented Jan 22, 2017

Just decided to leave a little comment here https://sourceforge.net/p/usbip/discussion/418507/thread/86c5e473/ in case someone specifically needs to pass a printer to a windows VM and is in the process of pulling their hairs out :)

It's doable using USBIP windows client from here and Fedora-24's usbip module

It does not work for webcams and flash drives however (something mysteriously broken in USBIP, either kernel module in fedora or windows client)
Fedora's printer sharing must work, but printer must be bound to usbip driver before printer sharing (cusp) starts up (so it must be called from rc.local early on)
Also, bind first then start usbipd -D

(of course, you'd need to allow networking between your usb-vm and windows vm...)

EDITED TO ADD:
using Debian 8 allowed to share a usb webcam via usbip too (also, Debian's usbip is all kinds of less quirky)
Haven't tested with usb audio tho
#2597 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment