How It Works

Welcome to the Nutanix NEXT community. To get started please read our short welcome post. Thanks!

cancel
Showing results for 
Search instead for 
Did you mean: 

AHV hdd export/convert error

SOLVED Go to solution
Trailblazer

AHV hdd export/convert error

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 ????

1 ACCEPTED SOLUTION

Accepted Solutions
Outrider

Re: AHV hdd export/convert error

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

10 REPLIES
Moderator Moderator
Moderator

Re: AHV hdd export/convert error

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.

Jon Kohler | Principal Architect, Nutanix | Nutanix NPX #003, VCDX #116 | @JonKohler
Please Kudos if useful!
Outrider

Re: AHV hdd export/convert error

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

Trailblazer

Ref: AHV hdd export/convert error

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.

Trailblazer

Re: AHV hdd export/convert error

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.vmdk
sudo: qemu-img: command not found
nutanix@NTNX-XXXXXXXX-C-CVM:IP_address:/$

Also the Filesystem whitelist is there.

Cheers,

Jaffer

Cheers,
Jaffer
Nutanix Employee

Re: Ref: AHV hdd export/convert error

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 ?

 

Highlighted
Trailblazer

Ref: AHV hdd export/convert error

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 &

 

 

 

 

 

 

Trailblazer

Ref: AHV hdd export/convert error

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/

 



 

 

 

 

 




Pathfinder

Re: AHV hdd export/convert error

Hi @jaffer

 

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

 

thanks

Outrider

Re: AHV hdd export/convert error

@comgui

 

Have you tried executing with this command below?

 

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