auto-create icon indicating copy to clipboard operation
auto-create copied to clipboard

vim.fault.NotFound

Open ketank1000 opened this issue 7 years ago • 2 comments

iam new to esx tring to create the vms. as per ur script every thing is getting created properly. but it is failing to register the vm giving the following error :

(vim.fault.NotFound) { faultCause = (vmodl.MethodFault) null, faultMessage = msg = "Unable to find a VM corresponding to "(vim.fault.NotFound)"" }

any suggestion ?

ketank1000 avatar Mar 27 '17 12:03 ketank1000

Haven't seen that error unfortunately - not sure why that'd be happening. If you come across a solution please do share!

tpiros avatar Mar 27 '17 13:03 tpiros

sorry for late reply. I found the solution :)

according to your script the vm gets created at the location where we run the script file #Creating the folder for the Virtual Machine mkdir ${NAME}

And you try to register vm on diff location #Adding Virtual Machine to VM register - modify your path accordingly!! MYVM=vim-cmd solo/registervm /vmfs/volumes/datastore1/${NAME}/${NAME}.vmx

So there was a path problem. Vm was getting created but not able to find the .vmx file to turn on. Can you update the path of dir so that if anyone runs your script from anywhere will have no issue. i suggest to keep path static.

ketank1000 avatar Apr 04 '17 05:04 ketank1000