Solved

AHV hdd export/convert error


Badge +10
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 ????
icon

Best answer by hienle 9 December 2016, 02:17

It could be the case if you check the FileSystem Whitelist and/or run the command as root by append the "sudo" before the command you excute

View original

10 replies

Userlevel 7
Badge +30
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//.acropolis/vmdisk/ -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.
Userlevel 1
Badge +16
It could be the case if you check the FileSystem Whitelist and/or run the command as root by append the "sudo" before the command you excute
Badge +10
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.
Badge +7
Hi,

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.vmdksudo: qemu-img: command not foundnutanix@NTNX-XXXXXXXX-C-CVM:IP_address:/$
Also the Filesystem whitelist is there.
Cheers,
Jaffer
Badge
Hi,

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 ?

Badge +10
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 &






Badge +10
Also you can check the location is there from the system your are running
the command from
nfs_ls -l nfs://127.0.0.1/Nutanix/







Badge +3
Hi jaffer

do you find the issue, we have the same issue with root account "sudo: qemu-img: command not found"

thanks
Userlevel 1
Badge +16
comgui

Have you tried executing with this command below?

sudo /usr/local/nutanix/bin/qemu-img convert -O qcow2-c

Badge +3
yes here what i've done :
vm.get include_vmdisk_paths=1> vmdisk_nfs_path: "/default/.acropolis/vmdisk/ed689545-b8c9-4099-b94e-ece281b1923b"#screen$bash#sudo /usr/local/nutanix/bin/qemu-img convert -O qcow2 -c nfs://xxxxxxx... $bash#screen -r - to reload after timeout
get image wirth scp
import with chrome
recreate VM with image attache

Reply