Copying or moving files from VM to dom0 issue

Hi all,

I’m running Qubes OS 4.2.4 with the latest kernel on a Lenovo T490.
I’ve created a full set of .sls Salt files to auto-generate all my Qubes, and now I’m trying to copy that set from my personal Qube to dom0.

I mounted the USB in personal, and used:

qvm-copy-to-vm dom0 /…path/

But every time I try, I get this message:

EOFt 0/8 KB. The file doesn’t appear in /home/user/QubesIncoming/personal/.

I already added the following line to my policy at /etc/qubes-rpc/policy/qubes.Filecopy

personal dom0 allow

In journalctl, I see:

qrexec: qubes.Filecopy+: personal → @adminvm: Allowed to dom0

Still, nothing shows up. Any idea what might be going wrong or what would be the right way to do this?

1 Like

From: How to copy from dom0 | Qubes OS :

Copying anything into dom0 is not advised, since doing so can compromise the security of your Qubes system. For this reason, there is no simple means of copying anything into dom0, unlike copying from dom0.

2 Likes

This worked for me, thanks for sharing.

qvm-run --pass-io <src-vm> 'cat /path/to/file_in_src_domain' > /path/to/file_name_in_dom0
2 Likes