How to download ISO/Disk Images from Nutanix Image Service.

February 3, 2020 at 3:45 pm 3 comments

Hi Folks

Unlike VCenter , there is no straightforward method to download the ISO’s or Disk Images you have uploaded to the Image Service.(In VCenter , you could perform both upload / download files from the datastore).

In Nutanix AHV , you need to run the below commands to achieve the same results.(As per Nutanix , this need to be done , under Nutanix Support only).

#Login to any of the CVM.
# nuclei image.list —-> This will list all the images with the UUID
###### EXAMPLE OUTPUT ######
Name UUID State
MyISO yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy COMPLETE
###### EXAMPLE OUTPUT ######

# nuclei image.get yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy –> Get the Cluster UUID.
###### EXAMPLE OUTPUT ######
current_cluster_reference_list:
– kind: cluster
uuid: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
###### EXAMPLE OUTPUT ######

# ncli multicluster get-cluster-state | grep -C5 <xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> –> This will get the cluster name:
###### EXAMPLE OUTPUT ######
Cluster Id : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Cluster Name : MYCLUSTER
Is Multicluster : false
Controller VM IP Addre… : [x.x.x.x. …………………………………….]
External or Masqueradi… : y.y.y.y (Cluster IP)
###### EXAMPLE OUTPUT ######

NOTE : The above commands are used , when you are managing multiple cluster via PC , and you need to locate the image and in which cluster the image is stored.

Thereafter , run the below command from your workstation (You must have curl installed , and the command must be run from the bin folder , where the curl is installed)

curl-7.68.0-win64-mingw\bin>curl -k -u admin -X GET –header “Accept: application/json” “https://y.y.y.y.:9440/api/nutanix/v3/images/ac799
d52-60e3-448f-a0f9-d4de756b0d01/file” –output SQL.iso

Update1: The Curl command syntax has been updated.

Advertisement

Entry filed under: Nutanix. Tags: , , .

How to install and configure LAPS How can I create a disk partition on a disk that is greater than 2TB in size on Red Hat Enterprise Linux?

3 Comments Add your own

  • 1. Gus Sosa  |  September 8, 2020 at 4:18 am

    Thank you for posting this as it is a common need to download/export images from Prism. However, the command listed doesn’t work as is. The correct command is:

    curl -k -u admin -X GET –header “Accept: application/json” “https://x.x.x.x:9440/api/nutanix/v3/images//file” -o MYFILENAME.iso

    Reply
  • 2. Gus Sosa  |  September 8, 2020 at 4:21 am

    CORRECTED COMMAND HERE:

    curl -k -u admin -X GET –header “Accept: application/json” “https://x.x.x.x:9440/api/nutanix/v3/images//file” -o MYFILENAME.iso

    Reply
    • 3. Muralee  |  September 8, 2020 at 9:25 am

      Thanks for highlighting the mistake , and I have corrected it.

      Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Trackback this post  |  Subscribe to the comments via RSS Feed


Archives

Categories

Follow Hope you like it.. on WordPress.com

Blog Stats

  • 68,230 hits

%d bloggers like this: