When using <filesystem>
, it provides host file systems to guest OS, where you can open a directory, a single file, a given size of RAM or even block devices on host to a LXC container. Notice that when using Qemu/KVM, the only option is type=mount
, which means you can get a mounted file system only. see the reference of libvirt domain xml format.
When using file based storage volume, it provides disks device to the virtual machine so that it can be detected as block storage. It's often used by Qemu/KVM and others.