Anyone can help looking into this failure? We randomly run into this failure and we'd like to know how to avoid it or fix it. Thanks a lot!
The method we used to create virtual machine as below:
task_info = vm_data['vmFolder'].CreateVM_Task(config=config, pool=vm_data['resourcePool'], host=vm_data['esxiHost'])
Hi Expert,
Anyone can help looking into this failure? We randomly run into this failure and we'd like to know how to avoid it or fix it. Thanks a lot!
The method we used to create virtual machine as below:
task_info = vm_data['vmFolder'].CreateVM_Task(config=config, pool=vm_data['resourcePool'], host=vm_data['esxiHost'])
Below is the run log and exception:
10/26/2016 21:36:29 INFO Initiate Create VM Task 10/26/2016 21:36:29 INFO Task State: running 10/26/2016 21:36:34 ERROR Task State: error 10/26/2016 21:36:34 ERROR error.....: (vim.fault.CannotCreateFile) { dynamicType =,
dynamicProperty = (vmodl.DynamicProperty) [],
msg = 'Cannot complete file creation operation.',
faultCause = ,
faultMessage = (vmodl.LocalizableMessage) [
(vmodl.LocalizableMessage) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
key = 'com.vmware.esx.hostctl.default',
arg = (vmodl.KeyAnyValue) [
(vmodl.KeyAnyValue) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
key = 'reason',
value = 'Hostsvc::osfs::CreateDirectory : Failed to create directory CycloneVirtualMachineTest (Cannot Create File)'
}
],
message = 'Operation failed, diagnostics report: Hostsvc::osfs::CreateDirectory : Failed to create directory CycloneVirtualMachineTest (Cannot Create File)'
}
],
file = 'Hostsvc::osfs::CreateDirectory : Failed to create directory VirtualMachineTest (Cannot Create File)'