Deploying an OVA file from the Host Client fails with a vim.fault.InvalidState message
search cancel

Deploying an OVA file from the Host Client fails with a vim.fault.InvalidState message

book

Article ID: 437626

calendar_today

Updated On:

Products

VMware vSphere ESXi 8.0

Issue/Introduction

  • OVA deployment via the Host Client fails, and the following error message is displayed.
    Failed to deploy VM: Method vim.Resource.Pool.importVApp threw undeclared fault of type vim.fault.InvalidState


  • It can be confirmed from the Host Client that the host is in "Maintenance Mode".


  • The following messages are observed in /var/run/log/host.log:
    <Timestamp> In(166) Hostd[<pid>]: [Originator@6876 sub=MetadataTagExtractor opID=<opID> sid=<sid> user=root] Applied tag : id [Tag rule id=rule[CreatingVm], tag=creatingVm, regex=vim\.Folder\.(createVm|registerVm)|vim\.Host\.LowLevelProvisioningManager\.(createVm|reconfigVm)|vim\.ResourcePool\.importVApp - Identifies operations that create a virtual machine] to operation: vim.ResourcePool.importVApp
    <Timestamp> In(166) Hostd[<pid>]: [Originator@6876 sub=AdapterServer opID=<opID>> sid=<sid> user=root] AdapterServer caught exception; <<<uuid>, <TCP '127.0.0.1 : 8307'>, <TCP '127.0.0.1 : 22286'>>, ha-root-pool, vim.ResourcePool.importVApp, <vim.version.v8_0_3_0, official, 8.0.3.0>, [N11HostdCommon18VmomiAdapterServer19ActivationResponderE:0x################]>, N3Vim5Fault12InvalidState9ExceptionE(Fault cause: vim.fault.InvalidState
    ...
    <Timestamp> In(166) Hostd[<pid>]: [Originator@6876 sub=Solo.Vmomi opID=<opID> sid=<sid> user=root] Throw vim.fault.InvalidState
    <Timestamp> In(166) Hostd[<pid>]: [Originator@6876 sub=Solo.Vmomi opID=<opID> sid=<sid> user=root] Result:
    <Timestamp> In(166) Hostd[<pid>]: --> (vim.fault.InvalidState) {
    <Timestamp> In(166) Hostd[<pid>]: -->    msg = "",
    <Timestamp> In(166) Hostd[<pid>]: --> }
    <Timestamp> Er(163) Hostd[<pid>]: [Originator@6876 sub=Req@vim25/8.0.3.0 opID=<opID> sid=<sid> user=root] Method vim.ResourcePool.importVApp threw undeclared fault of type vim.fault.InvalidState

Environment

VMware vSphere ESXi 8.0

Cause

This issue occurs because the host is currently in maintenance mode.

Resolution

In the Host Client, navigate to [Host] > [Actions] > [Exit maintenance mode] to take the host out of maintenance mode, and then retry the deployment.