Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Qubes VM Manager provides out-of-date information on devices #1072
The block device icon will sometimes stay on VM entries even after the device is detached or shutdown. Also, the attach/detach block entries menu entry will sometimes display out of date information as well.
I interchangeably use the GUI and the CL. This shouldn't be an issue, but I think that's what's causing this problem.
I think I did not. Anyway, I'll do some testing an maybe catch some other problems because QM and the USB passthrough seems a little buggy in general.
First, I'm now using the unstable branch. I'm not sure if this means a new version of Qubes Manager, but perhaps other packages upgrades will have affected the following testing I did.
At this point, it's clear I could learn to use a lot more about what's actually going on and why this makes sense given the way Xen makes virtual block devices. dom0, VM1, and QM are still confused--in different ways--as to what's going on and what is where. As far as my bug report goes, I'm not sure how much of this is fixable, and how much needs to be fixed. In Qubes we assume the user is a pretty smart person, but at the same time, we want to protect them from inconvenience and making mistakes that may compromise their security or data integrity. At this point in time, if I remove a USB stick by hand without first detaching it, I have to restart my computer in order for things to work and for the computer to actually realize what's attached. Also, it seems it's possible to be modifying and accessing data from two VMs simultaneously. We can't protect the user from all stupid mistakes, but perhaps, if possible, we can autodetach the virtual block devices if the USB is removed from USBVM and we can put some safeguards to prevent simultaneous access to the same physical address space between two VMs.
I wish this response could have been more cohesive. Apologies.
First of all, thanks for thorough test report! :)
Few things I think will clarify a lot here:
I think none of above is documented anywhere. Where would you expect to
In reply to your points:
Probably here https://www.qubes-os.org/doc/StickMounting/.
In case someone makes the mistake of physically removing a device or shutting down a VM before detaching from it, it would be nice to know how to get things working again w/o having to reboot. Sometimes rebooting is not an option while you have an ongoing process and you also need to have full PVUSB (is this the right word for the technology used to attach virtual block devices to other VMs from USBVM?) support.
referenced this issue
Jul 23, 2015
On Thu, Jul 23, 2015 at 04:48:31PM -0700, Noah Vesely wrote:
You can make one, we can refer to it in documentation so it will be