I had a problem in a dispVM connected to some web server, so I wanted to contact support, showing them some screenshots. Using QubesOS 4.2 with today’s updates.
First thing I noticed was that the screenshot function of Firefox was not available in Debian 12, so I used the PrintScreen key. That created a screenshot, but in Dom0!
Next thing I noticed was that Dom0 has no context menu in the file manager like “Move to VM…”, so I wondered how to get the screenshots into the dispVM.
I had attached (and mounted) a USB stick to Vault. Interestingly Dom0 offered to send the screenshot files to the USB stick. If that worked I guess it would have corrupted the filesystem.
So I unmounted the stick in Vault, mounted it in Dom0 and copied the files there.
When I tried to attach the stick to the dispVM (after unmounting it in Dom0) I realized that it says “attaching …”, and I did not get any error message, but the device was never attached to the VM (verified with lsblk). Actually I could not attach the stick to any VM until I unplugged it an re-plugged it!
So I wonder:
Is the failure to reattach partitioned USB sticks known already?
How is the user expected to make a screenshot of a VM window and use that in the VM?
Does it make sense to have screenshots be saved in Dom0?
To attach your USB stick, attach it via “USB Devices” rather than “Data (block) Devices.”
If the stick doesn’t appear in your file manager, open a terminal inside the VM and mount it manually:
sudo mount /dev/xvdi /mnt
This will mount the USB stick directly at /mnt.
Note: Never mount the key to dom0, That could pose security issues if your USB key is corrupted.
Install xfce4-screenshooter in the template of your DispVM, then in a terminal, launch xfce4-screenshooter in DispVM’s terminal.