Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 230663

vm clone scipt error

$
0
0

Trying to use a script to clone existing vms to a new data store, but get following. error. see attched script. Please point me in the right direction

 


+ Add-PSSnapin <<<<  VMware.VimAutomation.Core
    + CategoryInfo          : InvalidArgument: (VMware.VimAutomation.Core:String) [Add-PSSnapin], PSArgumentException
    + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
New-VM : 25/07/2013 10:53:23    New-VM        The operation for the entity VirtualMachine-vm-40472 failed with the foll
owing message: "The operation is not supported on the object."
At C:\Hyper-v\change.ps1:104 char:10
+    New-VM <<<<  -name $vmtarget -vm $vm -vmhost $targethost -datastore $datastore -Location $targetlocation -DiskStor
ageFormat thin
    + CategoryInfo          : NotSpecified: (:) [New-VM], NotSupported
    + FullyQualifiedErrorId : Client20_TaskServiceImpl_CheckServerSideTaskUpdates_OperationFailed,VMware.VimAutomation
   .ViCore.Cmdlets.Commands.NewVM

Get-VM : 25/07/2013 10:53:24    Get-VM        VM with name 'backup_gbvm014098_2013-07-25' was not found, using the spec
ified filter(s).
At C:\Hyper-v\change.ps1:109 char:11
+ if (get-vm <<<<  $vmtarget) {
    + CategoryInfo          : ObjectNotFound: (:) [Get-VM], VimException
    + FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM


Viewing all articles
Browse latest Browse all 230663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>