Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You will need a JSON file to describe the disk.
The steps below describe how to obtain the values in bold of {TEMPLATE_URL}, {DISK_URL}, and {FOLDER_PATH} from the Abiquo UI.

Try to complete the other disk data as best you can.

{
Panel
panelIconId1f308
panelIcon:rainbow:
panelIconText🌈
bgColor#E6FCFF
Code Block
{ 
    "virtualMachineTemplateUrl":"{TEMPLATE_URL}",


    "diskUrl":"{DISK_URL}",


    "currentPath":"{FOLDER_PATH}",


    "diskController": "lsilogic",


    "diskControllerType": "SCSI",


    "diskFileFormat":"VMDK_STREAM_OPTIMIZED",


    "diskFilePath": "",


    "label": "Hard disk 1",


    "requiredHDInMB":120,

    
    "sequence":0


}

  1. Log in to Abiquo and open developer tools in your browser

  2. Go to Network and record requests

  3. Select and edit the template.

    Image RemovedImage Added
  4. From the developer tools console, select the request to get the disks.
    Here you will find the:

    1. Template URL and disk URL

    2. Current path on the repository file system

      Image RemovedImage Added
  5. Complete the JSON object with the data from your API. For example, from the values above

    Code Block
    { 
        "virtualMachineTemplateUrl":"https://mjsabiquo.lab.abiquo.com/admin/enterprises/1/datacenterrepositories/1/virtualmachinetemplates/72",
        "diskUrl":"https://mjsabiquo.lab.abiquo.com/admin/enterprises/1/datacenterrepositories/1/virtualmachinetemplates/72/disks/74",
        "currentPath":"1/bundle/e05785d2-b49a-4034-9bb9-3440e1693589-4ba3b6e1-6f06-47d9-8703-9e9/daf2f2fb-d3d0-4263-a466-d1b27a0d6864-new+dsl+disk.vmdk",
        "diskController": "lsilogic",
        "diskControllerType": "SCSI",
        "diskFileFormat":"VMDK_STREAM_OPTIMIZED",
        "diskFilePath": "",
        "label": "Hard disk 1",
        "requiredHDInMB":120,    
        "sequence":0
    }
  6. Save it to a file called diskReplace.json

...

  • You will also need an authorization token, which you can get from any recent request.

  • Use this to replace the {api_token} in the following steps

    Image RemovedImage Added

Replace the file

...