Add `dir` to `DISK_TYPE`

Hello.

After trying to configure virtiofs, I would like to be able to create a SHAREABLE image backed by our moosefs storage but I have an impossible issue: I need the dir libvirt disk type like

  <disk type='dir' device='disk'>
    <driver name='qemu' type='fat'/>
    <source dir='/var/lib/one/datastores/0/42/disk.1/'>
    <target dev='sdb'/>
  </disk>

but it’s not possible actually.

Regards.

Could you add this as a feature request on github ? If I understand correctly you’ll need a new disk_type for VM images.

Thanks, I opened it.

1 Like

Hello Daniel,

The SHAREABLE image means having an image attached to multiple VM simultaneously. Reading the libvirt’s doc, it is stated that “As guest operating system may cache the filesystem metadata, outside changes to the directory may not appear in the guest and/or may result in corrupted data being observable from the VM”. So I wonder how it will work, avoiding data corruption when attached to multiple VMs? My experience over the above quote is that most of the may statements should be read as will.

Best Regards,

Anton Todorov

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.