Can't get qvm-run to work

28 views
Skip to first unread message

Patrick Bouldin

unread,
Mar 21, 2018, 2:38:00 PM3/21/18
to qubes-users
Hello,

I'm simply trying to copy a file to dom0 form work ~/Downloads/

Can someone please tell me the precise letters to use if the filename was qvm-screenshot-to-clipboard.sh and I want to put it in dom0 ~/Downloads/

Here is the instruction in the manual:
qvm-run --pass-io <src-vm> 'cat /path/to/file_in_src_domain' > /path/to/file_name_in_dom0

I get permission denied and tried sudo, etc.

Thought it would be:

qvm-run --pass-io work ~/Downloads/qvm-screenshot-to-clipboard.sh > /home/mandoguy/qvm-screenshot-to-clipboard.sh


Wish the documentation had real examples.

Thanks,
Patrick

Unman

unread,
Mar 21, 2018, 2:44:29 PM3/21/18
to Patrick Bouldin, qubes-users
Check the permissions on ~/Downloads and
/home/mandoguy/qvm-screenshot-to-clipboard.sh in the work qube.

Try:
qvm-run --pass-io work 'cat /home/mandoguy/qvm-screenshot-to-clipboard.sh'> /home/user/Downloads/qvm-screenshot-to-clipboard.sh

If necessary you can use qvm-run -u root

awokd

unread,
Mar 21, 2018, 2:44:35 PM3/21/18
to Patrick Bouldin, qubes-users
On Wed, March 21, 2018 6:37 pm, Patrick Bouldin wrote:

> I get permission denied and tried sudo, etc.

> qvm-run --pass-io work ~/Downloads/qvm-screenshot-to-clipboard.sh >
> /home/mandoguy/qvm-screenshot-to-clipboard.sh

Try:

qvm-run --pass-io work
'/home/user/Downloads/qvm-screenshot-to-clipboard.sh' >
/home/mandoguy/qvm-screenshot-to-clipboard.sh

Note- the single quotes are important, and manually expand ~ like I've done.

awokd

unread,
Mar 21, 2018, 2:56:00 PM3/21/18
to Unman, Patrick Bouldin, qubes-users
I forgot the "cat", probably because of UMAN's satellite mind control
system. I think the arguments might be backwards above, though. Try:

qvm-run --pass-io work
'cat /home/user/Downloads/qvm-screenshot-to-clipboard.sh' >
/home/mandoguy/qvm-screenshot-to-clipboard.sh


Patrick Bouldin

unread,
Mar 21, 2018, 3:37:42 PM3/21/18
to qubes-users
Thank you all, working now. :)
Reply all
Reply to author
Forward
0 new messages