Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

[ubuntu] virsh pool-create with nfs not working

$
0
0
I'm relatively new to KVM and libvirt and hoping someone can provide some assistance or guidance creating nfs pools for guest machines. I've tried to read up but am stumped. Any ideas or guidance would be appreciated.

I'm unable to get a net-fs (nfs) pool created using virsh pool-create (on Ubuntu server 13.10). I'm using standard apt packages for kvm, nfs-client, libvirt etc.

I'm running this command (on the KVM server):
sudo virsh pool-create --file nfs-libvirt-pool.xml

I get this error:
error: Failed to create pool from nfs-libvirt-pool.xml
error: cannot open path '/var/lib/libvirt/images/local-mount-point': Permission denied

The directory permissions appear correct and I am able to manually mount the directory to the mount point and use the mount point. However when I create a net-fs pool it fails with the above error. The user group for my mount directory is libvirtd and I've set permissions using chmod a+rwx so all users should have permission to the local mount directory:

drwxrwxrwx 2 root users 4096 Dec 20 13:02 local-mount-point


The content of "nfs-libvirt-pool.xml":
<pool type="netfs">
<name>virtimages</name>
<source>
<host name="my-nfs-server"/>
<dir path="/path/to/mount"/>
<format type='nfs'/>
</source>
<target>
<path>/var/lib/virt/images/local-mount-point</path>
</target>
</pool>

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>