Data transfer methods between Qubes and GrapheneOS

How do I transfer data between QubesOS and GraphenOS using a USB cable? Nothing is displayed in sys-usb.

2 Likes

Maybe you need to do something in GraphenOS to allow the device to be used as a mass storage

4 Likes

On GrapheneOS file transfer is not activated by default. Check here and here.

3 Likes

Make sure gvfs-backends is installed in your template and allow file transfer
on your graphene device.

5 Likes

it worked thank you

2 Likes

I have done this (Debian based VM), the Pixel shows up in Thunar, but I get “Unable to open MTP device “001,003”.”

1 Like

From your post I can not really tell what you did. When you connect your device usually a toast shows up to grant permission to connect. Did that toast show up? Did you grant permission? If yes try to reconnect your device. Maybe try to connect via nautilus.

2 Likes

I have the exploit protection for the USB-C port turned off, connect the Pixel to my Qubes machine and it shows up as a new USB device. I attach that to my Debian-12 appvm and then I enable file transfer on the Pixel. It shows up as I new USB device in the Qubes devices widget and then I attach that again to the Debian-12 appvm.
(It does not matter if I don’t attach the first time and only attach after enabling file transfer). Then I try to open the Pixel from Thunar and I get the error message. I installed Nautilus as well but it has the same result.
Also tried mounting directly in sys-usb (Fedora 40 based) with Nautilus but same result as well. There is no gvfs-backends package for Fedora, but gvfs is already installed and the package description metions it includes backends.
When trying to open the Pixel from either Thunar or Nautilus, I get no toast on the Pixel to grant permission.

1 Like

As far es I know you explicitly need gvfs-backends installed. I am using it with an appvm based on a debian-12-minimal.
Please check if gvfs-backends is installed on your system.

1 Like

Yes I have gvfs-backends installed in the template of the debian-12 appvm.
I now changed my sys-usb to the same debian-12 template and am now able to mount the Pixel directly in sys-usb, though mounting it in the appvm still does not work.

1 Like

So the template for your appvm needs to have gvfs-backends installed as well and you also need to have qubes-usb-proxy installed. Then you should be able to send the device over from your sys-usb.

1 Like

Yes both are installed in the template of the appvm and sys-usb. I can attach the device to my appvm and it shows up in the file manager, but it still gives the Unable to open MTP device error.
Strangely when I then unattach it from the appvm, I get the same error in sys-usb. But if I disconnect the cable and connect again, I can mount it again in sys-usb.