Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upCrash when attaching USB Ethernet adapter to sys-net #2860
Comments
andrewdavidwong
added
bug
C: other
labels
Jun 21, 2017
andrewdavidwong
added this to the Release 3.2 updates milestone
Jun 21, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Nov 30, 2017
Member
Device attach failed: /usr/lib/qubes/usb-import: line 37: [: sta: integer expression expected/usr
This is a harmless parsing bug. The protocol header reads "sta" first
before any other output. If "sta", the loop should continue (in bash
terms), i.e. go on with the next iteration.
Can you make head or tail of this and fix this please?
/lib/qubes/usb-import: line51: printf: write error: Invalid argument
The rest I don't know.
This is a harmless parsing bug. The protocol header reads "sta" first Can you make head or tail of this and fix this please?
The rest I don't know. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 30, 2017
Member
Is it USB 3.0 (or USB 3.1) device? I'm afraid those do not work with qvm-usb yet. Check sys-net kernel messages for details.
If this is the case, your option is to use single VM for both network and usb - i.e. attach USB controllers to sys-net. There are provided salt formulas for that to ease the task, but you need to remove sys-usb manually first:
qvm-remove sys-usb
sudo qubesctl state.sls qvm.sys-net-with-usb
|
Is it USB 3.0 (or USB 3.1) device? I'm afraid those do not work with qvm-usb yet. Check sys-net kernel messages for details. If this is the case, your option is to use single VM for both network and usb - i.e. attach USB controllers to sys-net. There are provided salt formulas for that to ease the task, but you need to remove sys-usb manually first:
|
This was referenced Dec 1, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
timove
Dec 20, 2017
I found a temporary workaround for my DVD burner by using an USB hub in between, which is only USB 2.0 capable.
timove
commented
Dec 20, 2017
|
I found a temporary workaround for my DVD burner by using an USB hub in between, which is only USB 2.0 capable. |
petaramesh commentedJun 20, 2017
Qubes OS version (e.g.,
R3.2):R3.2
sys-net + sys-usb
Expected behavior:
I have an USB Ethernet adapter (Asus laptop unfortunately has no internal Ethernet port). I was instructed in the mailing-list that I should create a sys-usb VM to be able to use it by giving it to the sys-net VM using from dom0 i.e.:
qvm-usb --attach sys-net sys-usb:3-6
Actual behavior:
The first time I typed said command in dom0 terminal, it didn't answer anything, but the sys-usb VM imediately crashed (disappeared from VM-Manager while mouse stopped working).
I had to restart it manually.
Since, everytime I try to type the same command (this is consistent over reboots...) I get the following message:
« ERROR: Device attach failed: /usr/lib/qubes/usb-import: line 37: [: sta: integer expression expected/usr/lib/qubes/usb-import: line 51: printf: write error: Invalid argument »
Steps to reproduce the behavior: