How to register or add a Virtual Machine (VM) to the vSphere Inventory in vCenter Server
search cancel

How to register or add a Virtual Machine (VM) to the vSphere Inventory in vCenter Server

book

Article ID: 335224

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

This article provides steps to register or add a vm to the Inventory in vCenter Server/VirtualCenter or in an ESX/ESXi host.


Environment

VMware vSphere ESXi 7.0.0
VMware vSphere ESXi 6.7
VMware vSphere ESXi 5.5
VMware vCenter Server 6.7.x
VMware vCenter Server 5.5.x
VMware vSphere ESXi 6.0
VMware vCenter Server 6.5.x
VMware vSphere ESXi 6.5
VMware vCenter Server 6.0.x
VMware vCenter Server 7.0.x

Resolution

Virtual Machine (VM) can be added to the vSphere Inventory in vCenter Server/ Virtual Center or in an ESX/ESXi from GUI or command line of the ESX/ ESXi host.
 
To register a virtual machine in vCenter Server:
  1. Log in to vSphere Web Client (Flex/Flash or HTML5).
  2. Click on the desired host.
  3. Click the Datastores tab
  4. Click on the appropriate datastore
  5. Click on the Files tab
  6. Locate the correct directory for the VM and double-click it to open the folder
  7. Locate the virtual machine.vmx file and click on it to highlight it.
  8. Click the "Register VM" button
    • If using the Flex/Flash client, right-click the VMX file and then select "Register VM"
  9. Continue to follow the wizard to add the virtual machine.
To register a virtual machine from a command line in an ESXi host:
  1. Log in as root to the ESXi host with an SSH client. For more information about enabling SSH on an ESXi host, see Using ESXi Shell in ESXi 5.x, 6.x and 7.x
  2. Run the command:

    # vim-cmd solo/registervm /vmfs/volumes/datastore_name/VM_directory/VM_name.vmx
 To Un-register a virtual machine in vCenter Server:
  1. Log in to vSphere Web Client (Flex/Flash or HTML5).
  2. Power off the virtual machine.
  3. Right click on the virtual machine and select "Remove from inventory".


Additional Information


When registering a virtual machine, remember:

  • A virtual machine should be registered on one ESX host at a time.
  • If an ESX host is being managed by vCenter Server, perform any virtual machine registration through vCenter Server.

    Note: Bypassing vCenter Server to register a virtual machine may cause a mismatch between the host and the vCenter Server Inventory and may cause unexpected results.
     
  • If you have an issue adding the virtual machine to Inventory, verify the virtual machine's file integrity. For more information, see Verifying ESX/ESXi virtual machine file integrity (1003743).
Verifying ESX/ESXi virtual machine file integrity
Como registrar/adicionar uma VM ao inventário no vCenter Server
如何在 vCenter Server 上将虚拟机注册或添加到清单中
Cómo registrar/agregar una máquina virtual al inventario en vCenter Server
vCenter Server でのインベントリへのVMの登録または追加方法
Registrieren/Hinzufügen einer VM zur Bestandsliste in vCenter Server
Register a Virtual Machine with vCenter Server 6.5
Register a Virtual Machine with vCenter Server 6.7