Problem with save files. GUI freeze

Hello world. I’m having this issue: I’ve worked with a few dispVM’s and stepped away for a while. When I came back, I noticed that the PC did not respond to any clicks, the cursor moved at first, then stopped. I tried to put a PS\2 keyboard and mouse. The keyboard is working,but system is freezed and the cursor is not moving. I manage to log in to the terminal via ctrl+alt+f2\f4. After entering the login and password and returning back via ctrl+alt+f1, nothing happens. Everything is still frozen. I need to save the kdbx database file to a safe location. (not disposable VM). I don’t remember what the digit was after disp in the cube with keepassx, so I need a command that will show a list of active cubes. Help not to lose data. The problem is urgent. Thank you in advance to everyone who responds.

List all running qubes:

qvm-ls --running

And you can use qvm-run to run commands in the qube:
https://dev.qubes-os.org/projects/core-admin-client/en/latest/manpages/qvm-run.html

1 Like

Thank you very much for the tip. I tried typing a command “qvm-ls --running”. I realized that the disp4426 cube I needed. I entered the command “qvm-run --pass-io disp4426 ls”. And then “qvm-run --pass-io disp4426 cd QubesIncoming”. Got this error . I’m new to cubes. Can I ask you to write a full command to copy the QubesIncoming folder to the newly created standalone OR to dom0 cube?

Create archive of QubesIncoming:

qvm-run --pass-io disp4426 -- tar -czf /home/user/QubesIncoming.tar.gz /home/user/QubesIncoming

Copy the archive from disp4426 qube to MyQubeName qube:

qvm-run --pass-io disp4426 'cat /home/user/QubesIncoming.tar.gz' | qvm-run --pass-io MyQubeName 'cat > /home/user/QubesIncoming.tar.gz'

Then extract the archive in the MyQubeName qube and make sure that the files are there e.g.:

qvm-run --pass-io MyQubeName -- tar -xzf /home/user/QubesIncoming.tar.gz -C /home/user/
qvm-run --pass-io MyQubeName -- ls -la /home/user/home/user/QubesIncoming/someqube/Database.kdbx

error after first command:
tar: Removing leading / from member names

It’s not an error, just a notification.

after second command i have it:
cat: /home/user/QubesIncoming.tar.gz: No such file or directory
but if i write this command: “qvm-run --pass-io disp4426 ls” i see that .tar.gz file from right home directory

Try this:

qvm-run --pass-io disp4426 'cat QubesIncoming.tar.gz' | qvm-run --pass-io MyQubeName 'cat > QubesIncoming.tar.gz'