Expose loop devices

8 views
Skip to first unread message

Stuart Perkins

unread,
Feb 27, 2020, 2:45:44 PM2/27/20
to qubes-users
I use a "disk image" on more than one appvm (not at the same time of course) and mounting as a loop device in dom0 then qvm-block attach to the target vm works ... most of the time. I normally get an error concerning qubes not exposing the device until I perform a "cd" command. 

It is a poor implementation of a security intent.  This is how I circumvent...

Open dom0 terminal.
Execute script to loop mount disk image (losetup) and attach to vm via qvm-block.
Get error device not "exposed" 

Unmount loop device.
Issue "cd" command...stay in home dir...change nothing.
Loop mount image.
Qvm-block attach...
Success.

This is repeatable. Is there a way to turn off that "feature"?

I can avoid it by issuing the "cd" command first.


Reply all
Reply to author
Forward
0 new messages