Mounting Trezor hardware crypto wallet to a standalone VM in QUBES
by the red poppet from LinuxQuestions.org on (#5AQPN)
Hi everybody,
I'm not sure where I should post this, and indeed I'm not sure that there will be anybody willing to help me as it may require some prerequisite knowledge that I just don't have and can't be imparted via this method . It may seem stupid to those who know, but if anybody can help me or point me to where I can solve the problem I will chase it down. I am not one who is looking to be spoon fed but I've hit a wall, so far with this issue.
My operating system is Qubes. What I am trying to do is successfully mount a Trezor T hardware crypto wallet to a standalone VM, in this case the Parrot Operating System (Debian). I am using a Lenovo x230. There are instructions on the Trezor site as to how one does this (https://wiki.trezor.io/Qubes_OS), but the part that is applicable to what I am trying to do says that in any AppVm that has networking:
sudo vim /rw/config/rc.local
There is no mention of a standalone VM, but I keep being told by people that by adding the line below that my Trezor T should be able to connect to the standalone VM:
socat TCP-LISTEN:21325,fork EXEC:"qrexec-client-vm sys-usb trezord-service" &
Now this is the part where my lack of Linux skills hit the road in a big way. Please note that just by following my nose and following the instructions above I have successfully been able to get my Trezors working in Qubes in AppVMs.
So when I open sudo vim /rw/config/rc.local and then insert the line above (socat TCP-LISTEN:21325,fork EXEC:"qrexec-client-vm sys-usb trezord-service" &) I am unable to save the file.
I get:
Error 212 Can't open file for writing: no such file or directory.
If I exit and open it again I am told that there is a swap file with the name ~/.local/share/nvim/swap//%rw%config%rc.local.swp with options to edit, delete etc.
If I try to connect the Trezor to the standalone VM I get:
Error attaching device SatoshiLabs Trezor to Parrot failed. Error: QubesVMerror: Domain parrot" qrexec not connected.
As I said, I am in unknown parts for me and I am not sure if I am even doing things correctly.
Ideally I am hoping that there is someone here who has experience with mounting a Trezor to a standalone VM in qubes. I hope that the above makes sense. I have summarised it best I can think of.
If anybody is able to offer me some assistance I'll be mighty grateful.


I'm not sure where I should post this, and indeed I'm not sure that there will be anybody willing to help me as it may require some prerequisite knowledge that I just don't have and can't be imparted via this method . It may seem stupid to those who know, but if anybody can help me or point me to where I can solve the problem I will chase it down. I am not one who is looking to be spoon fed but I've hit a wall, so far with this issue.
My operating system is Qubes. What I am trying to do is successfully mount a Trezor T hardware crypto wallet to a standalone VM, in this case the Parrot Operating System (Debian). I am using a Lenovo x230. There are instructions on the Trezor site as to how one does this (https://wiki.trezor.io/Qubes_OS), but the part that is applicable to what I am trying to do says that in any AppVm that has networking:
sudo vim /rw/config/rc.local
There is no mention of a standalone VM, but I keep being told by people that by adding the line below that my Trezor T should be able to connect to the standalone VM:
socat TCP-LISTEN:21325,fork EXEC:"qrexec-client-vm sys-usb trezord-service" &
Now this is the part where my lack of Linux skills hit the road in a big way. Please note that just by following my nose and following the instructions above I have successfully been able to get my Trezors working in Qubes in AppVMs.
So when I open sudo vim /rw/config/rc.local and then insert the line above (socat TCP-LISTEN:21325,fork EXEC:"qrexec-client-vm sys-usb trezord-service" &) I am unable to save the file.
I get:
Error 212 Can't open file for writing: no such file or directory.
If I exit and open it again I am told that there is a swap file with the name ~/.local/share/nvim/swap//%rw%config%rc.local.swp with options to edit, delete etc.
If I try to connect the Trezor to the standalone VM I get:
Error attaching device SatoshiLabs Trezor to Parrot failed. Error: QubesVMerror: Domain parrot" qrexec not connected.
As I said, I am in unknown parts for me and I am not sure if I am even doing things correctly.
Ideally I am hoping that there is someone here who has experience with mounting a Trezor to a standalone VM in qubes. I hope that the above makes sense. I have summarised it best I can think of.
If anybody is able to offer me some assistance I'll be mighty grateful.