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

with sys-usb i can not read my usb3 drive #3351

Closed
adavida opened this Issue Nov 29, 2017 · 15 comments

Comments

Projects
None yet
7 participants
@adavida

adavida commented Nov 29, 2017

Qubes OS version:

R4.0rc3

Affected TemplateVMs:

sys-usb

Steps to reproduce the behavior:

plug usb3 disk

Expected behavior:

with sys-usb i can not read my usb3 drive

the only thing i can do is go up to sys-usb and copy from vm to vm

I can not redefine the sys-usb: / dev / sdXX to another vm (ex: personal)

Actual behavior:

General notes:


Related issues:

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Nov 30, 2017

Member

Please make sure you've read this page:

https://www.qubes-os.org/doc/usb/

Then provide more precise steps to reproduce.

Member

andrewdavidwong commented Nov 30, 2017

Please make sure you've read this page:

https://www.qubes-os.org/doc/usb/

Then provide more precise steps to reproduce.

@adavida

This comment has been minimized.

Show comment
Hide comment
@adavida

adavida Nov 30, 2017

I created the vm during the installation of qubs os R4.0RC3 (I did not change anything)

when I plug the hard disk, qvm-usb on dom0, shows it to me. and if I type lsblk on sys-usb. I see him.

mo problem is that if i type qvm-block on dom0, i do not see it.

the problem is that usb3 does not work in usb passthrough.

adavida commented Nov 30, 2017

I created the vm during the installation of qubs os R4.0RC3 (I did not change anything)

when I plug the hard disk, qvm-usb on dom0, shows it to me. and if I type lsblk on sys-usb. I see him.

mo problem is that if i type qvm-block on dom0, i do not see it.

the problem is that usb3 does not work in usb passthrough.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Dec 1, 2017

Member

In #2860 (comment), @marmarek wrote:

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.

So, it seems USB 3.0 devices not working with qvm-usb is a known issue. @marmarek, is there another open issue for this?

Member

andrewdavidwong commented Dec 1, 2017

In #2860 (comment), @marmarek wrote:

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.

So, it seems USB 3.0 devices not working with qvm-usb is a known issue. @marmarek, is there another open issue for this?

@adavida

This comment has been minimized.

Show comment
Hide comment
@adavida

adavida Dec 1, 2017

f I attach a usb3 disk on personal
with dmesg on personal I have:
vhci_hcd: Failed attach request for unsupported USB speed: super-speed

on qubes R4.0 rc2, I had the possibility to get stuck like the other disk already present. with a name: sys-usb:/dev/sdXn (X = a,b,c,... n=1,2,3,...)
and there I could attach usb3 disk on any VM, and has work

now qvm-block display only disk on dom0

adavida commented Dec 1, 2017

f I attach a usb3 disk on personal
with dmesg on personal I have:
vhci_hcd: Failed attach request for unsupported USB speed: super-speed

on qubes R4.0 rc2, I had the possibility to get stuck like the other disk already present. with a name: sys-usb:/dev/sdXn (X = a,b,c,... n=1,2,3,...)
and there I could attach usb3 disk on any VM, and has work

now qvm-block display only disk on dom0

@lead4good

This comment has been minimized.

Show comment
Hide comment
@lead4good

lead4good Dec 9, 2017

Can confirm this. Plugging in a usb stick or usb hdd (usb 2.0 and 3.0) will list the usb devices with qvm-usb, but will not register the block devices under qvm-block. This worked in 4R2, in 4R3 it doesn't anymore.

Can confirm this. Plugging in a usb stick or usb hdd (usb 2.0 and 3.0) will list the usb devices with qvm-usb, but will not register the block devices under qvm-block. This worked in 4R2, in 4R3 it doesn't anymore.

@kushaldas

This comment has been minimized.

Show comment
Hide comment
@kushaldas

kushaldas Dec 12, 2017

Fresh 4.0rc3 install on a laptop. I can also confirm the same issue with USB storage devices.

Fresh 4.0rc3 install on a laptop. I can also confirm the same issue with USB storage devices.

@arvog

This comment has been minimized.

Show comment
Hide comment
@arvog

arvog Dec 14, 2017

same for me on 4rc3 updated from 4rc2 with a combined usb/net-vm.

arvog commented Dec 14, 2017

same for me on 4rc3 updated from 4rc2 with a combined usb/net-vm.

@najamelan

This comment has been minimized.

Show comment
Hide comment
@najamelan

najamelan Dec 29, 2017

Same issue here. qvm-block only shows devices from dom0, trying to attach with qvm-usb always gives: "Device attach failed:".

Plugging the device in a usb2 port doesn't help.

Notifications about usb devices being plugged in and out do show, but when withdrawing a usb storage device, it showed "Synaptic large touch screen is removed". It seems that sys-usb is really broken right now.

Please fix this, because not being able to use a usb stick on a computer is quite a dealbreaker.

ps: maybe it's not my place to say, but priority wise I would think with 900 open issues and problems like this, I would focus dev resources on bug fixing, and postpone decomposing an actually working component like vm manager to later. I would suggest putting the vm manager back in Q4, fixing the worst bugs and releasing Q4.

Same issue here. qvm-block only shows devices from dom0, trying to attach with qvm-usb always gives: "Device attach failed:".

Plugging the device in a usb2 port doesn't help.

Notifications about usb devices being plugged in and out do show, but when withdrawing a usb storage device, it showed "Synaptic large touch screen is removed". It seems that sys-usb is really broken right now.

Please fix this, because not being able to use a usb stick on a computer is quite a dealbreaker.

ps: maybe it's not my place to say, but priority wise I would think with 900 open issues and problems like this, I would focus dev resources on bug fixing, and postpone decomposing an actually working component like vm manager to later. I would suggest putting the vm manager back in Q4, fixing the worst bugs and releasing Q4.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Dec 29, 2017

Member

Check version of qubes-utils package in sys-usb, very similar bug was fixed in 4.0.11 version.
If you have older one, install updates to fedora template.
If newer, check permissions on /usr/lib/qubes/udev-block-add-remove - it should be executable. If it isn't, make it executable (chmod +x) and try again.

Member

marmarek commented Dec 29, 2017

Check version of qubes-utils package in sys-usb, very similar bug was fixed in 4.0.11 version.
If you have older one, install updates to fedora template.
If newer, check permissions on /usr/lib/qubes/udev-block-add-remove - it should be executable. If it isn't, make it executable (chmod +x) and try again.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Dec 29, 2017

Member

Just clarify - this is about devices not showing up as block devices (qvm-block). USB passthrough in Linux (qvm-usb) do not support USB3.0 yet.

Member

marmarek commented Dec 29, 2017

Just clarify - this is about devices not showing up as block devices (qvm-block). USB passthrough in Linux (qvm-usb) do not support USB3.0 yet.

@najamelan

This comment has been minimized.

Show comment
Hide comment
@najamelan

najamelan Dec 29, 2017

Ok, I will look into this as soon as I can, but currently in the middle of debugging another qubes issue. One at a time.

The difference between qvm-usb and qvm-block wasn't clear to me. qvm-usb --help has not even got a single phrase explaining what it does, and I think I didn't find anything about it in the docs. It has no man page either. If it's not yet in stable that might be ok though, I run Q4.

Ok, I will look into this as soon as I can, but currently in the middle of debugging another qubes issue. One at a time.

The difference between qvm-usb and qvm-block wasn't clear to me. qvm-usb --help has not even got a single phrase explaining what it does, and I think I didn't find anything about it in the docs. It has no man page either. If it's not yet in stable that might be ok though, I run Q4.

@najamelan

This comment has been minimized.

Show comment
Hide comment
@najamelan

najamelan Jan 1, 2018

@adavida Do you still have this problem. I had it and this is what solved it.

The cause was that in fedora-25 template which came with qubes-os, there is a script needed by udev which didn't have the executable bit set. This caused the export of the block devices to fail. Hence in dom0 qvm-block would not show my storage devices.

You can check this by going into your template for sys-usb, in the terminal do:
ll /usr/lib/qubes/udev-block*
All scripts should have the executable bit set, but notably the problematic one was: /usr/lib/qubes/udev-block-change-add.

Normally this was fixed in this commit, but I suppose this is only in the testing repository? That might explain the several issues on usb not working.

@adavida Do you still have this problem. I had it and this is what solved it.

The cause was that in fedora-25 template which came with qubes-os, there is a script needed by udev which didn't have the executable bit set. This caused the export of the block devices to fail. Hence in dom0 qvm-block would not show my storage devices.

You can check this by going into your template for sys-usb, in the terminal do:
ll /usr/lib/qubes/udev-block*
All scripts should have the executable bit set, but notably the problematic one was: /usr/lib/qubes/udev-block-change-add.

Normally this was fixed in this commit, but I suppose this is only in the testing repository? That might explain the several issues on usb not working.

@adavida

This comment has been minimized.

Show comment
Hide comment
@adavida

adavida Jan 1, 2018

I test.
now actually it works, again.

thank you

adavida commented Jan 1, 2018

I test.
now actually it works, again.

thank you

@najamelan

This comment has been minimized.

Show comment
Hide comment
@najamelan

najamelan Jan 1, 2018

@adavida maybe this issue can be closed?

@adavida maybe this issue can be closed?

@marmarek marmarek closed this Jan 1, 2018

@adavida

This comment has been minimized.

Show comment
Hide comment
@adavida

adavida Jan 1, 2018

yes this work

thank

adavida commented Jan 1, 2018

yes this work

thank

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