Login
Documentation

Common errors


Traceback (most recent call last): File "action.py", line 55, in <module> handleAction(action) File "action.py", line 20, in handleAction target(action) File "/var/www/autovm/task/task.py", line 81, in setup raise Exception('Could not found cluster') Exception: Could not found cluster

The chosen cluster or host for the VM does not found on the VCenter. You may have deleted the host or cluster on your VCenter.


Traceback (most recent call last): File "sync.py", line 16, in <module> task.sync() File "/var/www/autovm/task/task.py", line 1330, in sync method(vServer, server) File "/var/www/autovm/task/task.py", line 1757, in syncProfilesFirst pbmContent = getPbmConnection(vServer, server) File "/var/www/autovm/task/task.py", line 1748, in getPbmConnection pbmContent = serviceInstance.RetrieveContent() File "/usr/local/lib/python3.8/dist-packages/pyVmomi/VmomiSupport.py", line 706, in <lambda> self.f(*(self.args + (obj,) + args), **kwargs) File "/usr/local/lib/python3.8/dist-packages/pyVmomi/VmomiSupport.py", line 512, in _InvokeMethod return self._stub.InvokeMethod(self, info, args) File "/usr/local/lib/python3.8/dist-packages/pyVmomi/SoapAdapter.py", line 1400, in InvokeMethod raise http_client.HTTPException("{0} {1}".format(resp.status, resp.reason)) http.client.HTTPException: 400 Bad Request

AutoVM could not connect to the VCenter. Check the AutoVM can see the VCenter on the network.

Traceback (most recent call last): File "action.py", line 55, in <module> handleAction(action) File "action.py", line 20, in handleAction target(action) File "/var/www/autovm/task/task.py", line 274, in setup raise Exception('Could not found tools') Exception: Could not found tools

The selected template does not have VMware tools. Power on the chosen template and install VMWare tools.

Traceback (most recent call last): File "action.py", line 55, in <module> handleAction(action) File "action.py", line 20, in handleAction target(action) File "/var/www/autovm/task/task.py", line 198, in setup onlyUpdateDisk(vMachine, machine) File "/var/www/autovm/task/task.py", line 1304, in onlyUpdateDisk WaitForTask(last) File "/usr/local/lib/python3.8/dist-packages/pyVim/task.py", line 139, in WaitForTask raise task.info.error pyVmomi.VmomiSupport.vim.fault.InvalidDeviceOperation: (vim.fault.InvalidDeviceOperation) { dynamicType = <unset>, dynamicProperty = (vmodl.DynamicProperty) [], msg = "Invalid operation for device '0'.", faultCause = <unset>, faultMessage = (vmodl.LocalizableMessage) [], property = 'virtualDeviceSpec.device', deviceIndex = 0, badOp = 'edit', badFileOp = <unset> }

The hard drive size entered for the VM is wrong. Increase the hard size more than the template file.

Traceback (most recent call last): File "action.py", line 55, in <module> handleAction(action) File "action.py", line 20, in handleAction target(action) File "/var/www/autovm/task/task.py", line 207, in setup WaitForTask(last) File "/usr/local/lib/python3.8/dist-packages/pyVim/task.py", line 139, in WaitForTask raise task.info.error pyVmomi.VmomiSupport.vmodl.fault.SystemError: (vmodl.fault.SystemError) { dynamicType = <unset>, dynamicProperty = (vmodl.DynamicProperty) [], msg = 'A general system error occurred: PBM error occurred during PreReconfigureCallback: Fault cause: vmodl.fault.SystemError\n;\n', faultCause = <unset>, faultMessage = (vmodl.LocalizableMessage) [], reason = ' PBM error occurred during PreReconfigureCallback: Fault cause: vmodl.fault.SystemError\n;\n' }

The entered VCenter username does not have enough access.

Traceback (most recent call last): File "sync.py", line 16, in <module> task.sync() File "/var/www/autovm/task/task.py", line 1312, in sync vServer = getServerObject(server) File "/var/www/autovm/task/task.py", line 1063, in getServerObject return connect.SmartConnectNoSSL(host=server.address, user=server.username, pwd=server.password) File "/usr/local/lib/python3.8/dist-packages/pyVim/connect.py", line 887, in SmartConnectNoSSL return SmartConnect(protocol=protocol, File "/usr/local/lib/python3.8/dist-packages/pyVim/connect.py", line 856, in SmartConnect return Connect(host=host, File "/usr/local/lib/python3.8/dist-packages/pyVim/connect.py", line 265, in Connect si, stub = __Login(host, port, user, pwd, service, adapter, version, path, File "/usr/local/lib/python3.8/dist-packages/pyVim/connect.py", line 388, in __Login x = content.sessionManager.Login(user, pwd, None) File "/usr/local/lib/python3.8/dist-packages/pyVmomi/VmomiSupport.py", line 706, in <lambda> self.f(*(self.args + (obj,) + args), **kwargs) File "/usr/local/lib/python3.8/dist-packages/pyVmomi/VmomiSupport.py", line 512, in _InvokeMethod return self._stub.InvokeMethod(self, info, args) File "/usr/local/lib/python3.8/dist-packages/pyVmomi/SoapAdapter.py", line 1397, in InvokeMethod raise obj # pylint: disable-msg=E0702 pyVmomi.VmomiSupport.vim.fault.InvalidLogin: (vim.fault.InvalidLogin) { dynamicType = <unset>, dynamicProperty = (vmodl.DynamicProperty) [], msg = 'Cannot complete login due to an incorrect user name or password.', faultCause = <unset>, faultMessage = (vmodl.LocalizableMessage) [] }

The entered VCenter username or password is wrong.

Traceback (most recent call last): File "action.py", line 55, in <module> handleAction(action) File "action.py", line 20, in handleAction target(action) File "/var/www/autovm/task/task.py", line 100, in setup vStorage = getBestStorage(vServer, vCluster, policy) File "/var/www/autovm/task/task.py", line 1228, in getBestStorage freeSpace = max(freeSpaces) ValueError: max() arg is an empty sequence

The chosen VM datastore and storage policy is different.

VM console does not work

Edit VM on VCenter, go to Options -> Advanced -> Configuration Parameters -> Remove RemoteDisplay.vnc and other fields that relate to VNC.