I am trying to use virsh and domain xml to launch a Centos 7 guest from ubuntu 16.04 LTS host. The "filesystem" node that i am using in domain xml is as below:
<filesystem type='mount' accessmode='passthrough'> <driver type='path' wrpolicy='immediate'/> <source dir='/opt/test'/> <target dir='testlabel'/> </filesystem>
With the above config, "testlabel" is not visible in the guest and hence i am not able to mount it. Is there anything that i am missing?
I tried to have 9p modules in guest but they don't seem to be available in centos 7 readily. Needs kernel re-compilation [trying it now]. I learnt that virtio-vsock is going to be available in the future. So, it is not an option for now.
I do not want to use network based file sharing like SSHFS, NFS or glusterfs either.
Is there any other filesystem driver that can work with the "filesystem" option of domain xml with libvirt?