Creating an Image (from URL) using Powershell

  • 7 January 2019
  • 1 reply

Userlevel 1
Badge +3
Hi Everyone,

I am migrating VMs to AHV from XenServer.

The process involves
  • Copy XenServer VM Disks to Nutanix Datashare on XenServer
  • Create DISK_IMAGE from the disks copied on Nutanix DataShare
The manual process is to create an image in Nutanix using URL
nfs://Nutanix Host IP/SR Name/SR UUID/DISK UUID.vhd

I am looking to automate this step using Powershell and Nutanix Cmdlets 'New-NTNXImage'

Please help me on how can I create a image (source: URL) using powershell

So far I have this,

$URL = "nfs://"

New-NTNXImage -Name "xenahvwintst - disk 1" -Annotation "Copied VM xenahvwintst - disk 1" -ImageType DISK_IMAGE -ImageImportSpec $URL

I am not sure on how to include the URL into the command to create NTNXImage

Best answer by darshan.patel 10 January 2019, 20:41

View original

This topic has been closed for comments

1 reply

Userlevel 1
Badge +3
The problem is described in detail in the post link given below:
Please see the post: