A virtual machine and template with the same name display on vSphere Client
search cancel

A virtual machine and template with the same name display on vSphere Client

book

Article ID: 413109

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptom:

  • Converting VM from template failed because vmxt file cannot be found.

    yyyy-mm-ddThh:mm:ss.fffZ info vpxa[71669957] [Originator@6876 sub=Default opID=76196093-92] [VpxLRO] -- ERROR task-591338 -- vpxa -- vpxapi.VpxaService.markAsVirtualMachine: vim.fault.FileNotFound:
    --> Result:
    --> (vim.fault.FileNotFound) {
    -->    faultCause = (vmodl.MethodFault) null,
    -->    faultMessage = <unset>,
    -->    file = "ds:///vmfs/volumes/####/####/####.vmtx"
    -->    msg = ""
    --> }

Environment

VMware vCenter Server 7.0

Cause

vCenter server is restored to the snapshot when it recognized virtual machine as template, but the template has already been converted to virtual machine actually.

Timeline of occurrence
 1. Convert VM to template.
 2. Take snapshot of vCenter Server.
 3. Convert template to VM.
 4. Restore snapshot of vCenter Server taken at Step2.
 5. The virtual machine and template appear with the same name on vSphere Client, and the problematic behavior can be reproduced.

Resolution

To reflect the actual state of the virtual machine, delete the template from the inventory.