[qubes-users] How to attach partition or lvm-device to AppVM?

Is it possible to attach preformatted partition from HDD to AppVM with Qubes VM Manager?

The same question about LVM volumes

Is it possible to attach preformatted partition from HDD to AppVM with
Qubes VM Manager?

You should be able to attach not mounted partitions.

The same question about LVM volumes

Currently device-mapper devices (so LVM volumes) are hidden, but this is quite
easy to change.

Take look at /usr/lib/qubes/udev-block-add-change (or similar...), there are
rules for filtering out some devices (including device-mapper). The second
place is /usr/lib64/python/site-packages/qubes/qubesutils.py, function
block_name_to_majorminor. You need to add there support for device-mapper devices:
    elif name.startswith("dm-"):
        disk = False
        major = 253
for example right before line "elif name.startswith("sr")".

Then trigger devices rescan:
udevadm trigger --action=change