Attach hard disk partition to vms

Is it possible to set aside a hard disk partition during installation and later attach that partition to VMs? It would be quick way to share data across VMs.

1 Like

Yes. You can use qvm-block to attach a disk or a partition to a VM.

1 Like

I don’t see mention of hard disk partition in the link. The document describes attaching usb device partitions. Is it the same for hard disk partition too?

1 Like

yes. If accessible directly from dom0, it should look like:

dom0:nvme1n1 <nvme-id> ()

instead of:

sys-usb:sda <usb-key-id> ()

and should pop up in the qubes-device system tray and with the command qvm-block ls.

3 Likes