[libvirt-users] Live blockcopy onto storage pool that is an NFS mount?

Andrew Martin amartin at xes-inc.com
Fri Aug 1 21:29:33 UTC 2014


Hello,

I am running qemu-kvm 1.4.0 and libvirt 1.0.2 on Ubuntu 12.04. I have two NFS
mountpoints configured as two separate pools in virsh:
<pool type='dir'>
  <name>nfs1</name>
  <uuid>419d799c-2493-6ebc-6848-53b0919e7bad</uuid>
  <capacity unit='bytes'>6836057014272</capacity>
  <allocation unit='bytes'>0</allocation>
  <available unit='bytes'>6836057014272</available>
  <source>
  </source>
  <target>
    <path>/var/lib/libvirt/images/nfs1</path>
    <permissions>
      <mode>0711</mode>
      <owner>0</owner>
      <group>0</group>
    </permissions>
  </target>
</pool>

The XML for the nfs2 pool is similar, with the mountpoint being
/var/lib/libvirt/images/nfs2.

I would like to be able to move the VM disk from one of the NFS mountpoints to
another (nfs1 --> nfs2) live. I followed the instructions here:
http://thr3ads.net/libvirt-users/2013/02/2174486-Migrate-VMs-to-different-storage-pool

However when I attempt the blockcopy command, I receive this error:
Failed to create file '/var/lib/libvirt/images/nfs2/vm.qcow2': Operation not permitted

Is it not possible to blockcopy in this way to an NFS mount?

Thanks,

Andrew




More information about the libvirt-users mailing list