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

Problem with adding USB device to a VM #2473

Closed
john6611 opened this Issue Dec 2, 2016 · 6 comments

Comments

Projects
None yet
4 participants
@john6611

john6611 commented Dec 2, 2016

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

3.2

What is the problem?

I installed Qubes 3.2 on a USB SSD drive.
I am also using an USB modem (huawei E3372)

To use the USB modem I need to add the PCI device (USB slot) to the sys-net VM. However upon adding the USB PCI device to the 'selected' devices list and booting the sys-net VM the entire system crashes (because the USB drive from which qubes is booted and the USB modem are the same PCI device).

Once it crashes it also appears to corrupt the entire system, after entering the luks password it just throws bad block errors and freezes.

Tried the alternative approach (qvm-usb)

It says ERROR: qubes-usb-proxy not installed in the VM
While it is infact already installed

sudo yum install qubes-usb-proxy --> Package qubes-usb-proxy-1.0.5-1.fc23.noarch is already installed, skipping.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Dec 2, 2016

Member

Hm, this hardware configuration might simply be incompatible with Qubes (with networking).

Member

andrewdavidwong commented Dec 2, 2016

Hm, this hardware configuration might simply be incompatible with Qubes (with networking).

@dimlev

This comment has been minimized.

Show comment
Hide comment
@dimlev

dimlev Jan 18, 2017

I have the same qubes version and I get the same message: "ERROR: qubes-usb-proxy not installed in the VM"

After modifing /usr/lib64/python2.7/site-packages/qubes/qubesutils.py to dump the stderr I get the underlying error which was:

Invalid speed received

If I understand correctly, qubes-usb-proxy passes on the usb params to the AppVM (in my case sys-usb 2.4-3)

which executes:

/etc/qubes-rpc/qubes.USBAttach sys-usb 2-4.1

which then executes:

sudo qrexec-client-vm "sys-usb" "qubes.USB+2.4-3" /usr/lib/qubes/usb-import "/var/run/qubes/usb-import-sys-usb-2.4.3.state"

which then produces the following output:

/bin/sh: 0: Can't open /etc/qubes-rpc/qubes.USB
Invalid speed received

Setting a default speed in /usr/lib/qubes/usb-import does not help because it then complains about an "Invalid devid"

Thats how far I got. I hope it helps.

dimlev commented Jan 18, 2017

I have the same qubes version and I get the same message: "ERROR: qubes-usb-proxy not installed in the VM"

After modifing /usr/lib64/python2.7/site-packages/qubes/qubesutils.py to dump the stderr I get the underlying error which was:

Invalid speed received

If I understand correctly, qubes-usb-proxy passes on the usb params to the AppVM (in my case sys-usb 2.4-3)

which executes:

/etc/qubes-rpc/qubes.USBAttach sys-usb 2-4.1

which then executes:

sudo qrexec-client-vm "sys-usb" "qubes.USB+2.4-3" /usr/lib/qubes/usb-import "/var/run/qubes/usb-import-sys-usb-2.4.3.state"

which then produces the following output:

/bin/sh: 0: Can't open /etc/qubes-rpc/qubes.USB
Invalid speed received

Setting a default speed in /usr/lib/qubes/usb-import does not help because it then complains about an "Invalid devid"

Thats how far I got. I hope it helps.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jan 18, 2017

Member
Member

marmarek commented Jan 18, 2017

@dimlev

This comment has been minimized.

Show comment
Hide comment
@dimlev

dimlev Jan 19, 2017

@marmarek you are right... I just assumed qubes-usb-proxy should be installed only in the AppVM which I connect the device.

dimlev commented Jan 19, 2017

@marmarek you are right... I just assumed qubes-usb-proxy should be installed only in the AppVM which I connect the device.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jan 19, 2017

Member

So, does it work for you now?

Member

marmarek commented Jan 19, 2017

So, does it work for you now?

@dimlev

This comment has been minimized.

Show comment
Hide comment
@dimlev

dimlev Jan 19, 2017

yes it works

dimlev commented Jan 19, 2017

yes it works

@marmarek marmarek closed this Jan 19, 2017

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