In trying to export/convert a ahv disk to qcow I am seeing an error denying access to the mount point
Command and output
nutanix@NTNX-1234-3-CVM:10.10.100.103~$ qemu-img convert -c nfs://10.10.100.100/C01/.acropolis/vmdisk/ebcd8aea-ecaa-4562-8488-db923b8cc787 –O qcow2 nfs://10.10.100.100/C01/tst.qcow2
Failed to open file : open call failed with "NFS: ACCESS denied. Required access r--. Allowed access ---"
How do I verify and change the access ????
Solved! Go to Solution.
Is that vDisk attached to a powered on VM? Make sure the VM is off, or this is pointing at a snapshot, so there aren't active changes happening on that disk.
Past that, I've always done this like this:
qemu-img convert -c nfs://127.0.0.1/<ctr>/.acropolis/vmdisk/<uuid> -O qcow2 image.qcow2
Note using 127.0.0.1 instead of the frontend IP, doubt thats the crux of the issue, but worth trying anyways.
As I suspected the Whitelist blocks the access hence the error.
I had confirmed the path and disk were not the issue.
I will request that the local Nutanix cluster systems are added as they are all blocked.
I am getting the following error while executing the command
nutanix@NTNX-XXXXXXXX-C-CVM:IP_address:/$ sudo qemu-img convert -O vmdk nfs://127.0.0.1/vms/.acropolis/vmdisk/b9343cbc-c481-4d4b-aad3-34b27d519dd2 nfs://127.0.0.1/iso/test-1.vmdk
sudo: qemu-img: command not found
Also the Filesystem whitelist is there.
I am getting the following error when i run the command.
nutanix@NTNX-16SM60030XXX-B-CVM:10.135.XX.YY:~$ qemu-img convert -O vmdk nfs://127.0.0.1/Citrix-Production/.acropolis/vmdisk/eab4d15d-3731-4664-9416-e5379249da16 nfs://127.0.0.1/Nutanix/winvmvg1.vmdk &
nutanix@NTNX-16SM60030064-B-CVM:10.135.XX.YY:~$ qemu-img: Could not open 'nfs://127.0.0.1/Citrix-Production/.acropolis/vmdisk/eab4d15d-3731-4664-9416-e5379249da16': Failed to open file : open call failed with "NFS: Lookup of /eab4d15d-3731-4664-9416-e5379249da16 failed with NFS3ERR_NOENT(-2)"
Can you let me know what do you mean by "Whitelist blocks the access" What do i need to whitelist. The VM is powered off ?
The nfs share you are trying to export the hdd to is blocking access/inaccessible.
To prove this try the same command only direct the output to /home/nutnaix/tmp/ and not the nfs://127.0.0.1/Nutanix/
ie: qemu-img convert -O vmdk nfs://127.0.0.1/Contaniner/.acropolis/vmdisk/ada80c46-2bc5-4e12-a4a8-7a21f8a5b365 /home/nutanix/tmp/ntxhdd.vmdk &