Copy to dom0. qvm-run output error

I am trying to copy the file “qvm-fedora-upgrade” dowloaded from

from qube “Work” to my home directory in dom0 with the command:

qvm-run --pass-io Work 'cat /home/user/Downloads/qvm-fedora-upgrade' /home/gz/qvm-fedora-upgrade

This results in:

  File "/usr/bin/qubes-vmexec", line 5, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/lib/python3.14/site-packages/qubesagent/vmexec.py", line 55, in main
    os.execvp(command[0], command)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "<frozen os>", line 604, in execvp
  File "<frozen os>", line 627, in _execvpe
FileNotFoundError: [Errno 2] No such file or directory```

Suggestions very welcome.

If that is verbatim then you have not included a redirect:
qvm-run --pass-io Work 'cat /home/user/Downloads/qvm-fedora-upgrade' > /home/gz/qvm-fedora-upgrade

I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.

4 Likes

Not verbatim but a typo.

Executing:
qvm-run --pass-io Work 'cat /home/user/Downloads/qvm-fedora-upgrade' /home/gz/qvm-fedora-upgrade

results in:

Traceback (most recent call last):
File "/usr/bin/qubes-vmexec", line 5, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/lib/python3.14/site-packages/qubesagent/vmexec.py", line 55, in main
    os.execvp(command[0], command)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "<frozen os>", line 604, in execvp
  File "<frozen os>", line 627, in _execvpe
FileNotFoundError: [Errno 2] No such file or directory

@unman
:cold_sweat: Oops now I see what you mean by the redirect: >
Copy to dom0 succesfull. Thank you for your time.

1 Like