Adding a virtual machine to inventory

Hi guys

I have a big problem. I deleted a vm of the inventory, and now I can't get it back. I tried browsing the data store and right-click to retrieve it, but add to the inventory button is disabled.

It is very very urgent please help.

Hello

Cross check that you go with the reference correct steps below, or well did you do any other activity on the virtual machine as a drive to remove or delete snapshot with which you are not able to get the button Add to the inventory.

To register for a virtual machine in vCenter Server:
  1. Open the vSphere / VMware Infrastructure (VI) Client and log in with appropriate credentials.
  2. If the connection to the server vCenter Server, click on the desired host.
  3. Click the Configuration tab.
  4. Click storage.
  5. Right-click on the appropriate data store, and then click Browse the data store.
  6. Place you in the folder named after the virtual machine and locate the file .vmx.
  7. Right click the .vmx file and click Add to inventory. Add it to the inventory, the wizard opens.
  8. Continue to follow the wizard to add the virtual machine.
To register for a virtual machine from a command line:
  1. Log in as root to the ESX host with a SSH client.
  2. Run the command:

    # vmware - cmd - s register ------.vmx

To register for a virtual machine from a command line on an ESXi host computer:

  1. Log in as root to the ESXi host with a SSH client. For more information on the use of the mode of Technical Support, see Tech Support ESXi 4.1 using the (1017910).
  2. Run the command:

    # vim - cmd solo/registervm /vmfs/volumes/datastore_name/VM_directory/VM_name.vmx

Tags: VMware

Similar Questions

  • Unable to add the virtual machine to inventory

    Unable to add the virtual machine to inventory

    Hi assane, is vmware-cmd same available on ESXi 5.0 and later versions?

    To the OP:

    If you use 5.0 or later ESXi, vmware-cmd will not work. Alternatively, you can use:

    Vim - cmd solo/registervm /vmfs/volumes/datastore_name/VM_directory/VM_name.vmx

    That said, it could be several reasons of failure regarding the registration of the VM. Can put you up a screenshot of the error / symptom you see when it breaks down?

  • Adding a virtual machine that has been previously saved

    Hello. I backed up a virtual machine that was running in an ESX (ESX n ° 1) and transfer all of its files in an a different ESX (ESX No. 2) data store. How should I add this VM in the new ESX (ESX No. 2)? I'm not using vCenter, I connect directly to the ESX Server via vSphere Client.

    The only way I found to do this is to create a new virtual machine in ESX No. 2, and when I add the new hard drive, I select the old VM hard. But this process is not so clean. For example, I read that if I used vCenter I'd be able to disconnect the server ESX n ° 2 of my datacenter and plug it back again, and when I do he added all the virtual machines that are within its data store automatically. The problem, as I said, is that I'm not using vCenter.

    Thanks in advance.

    Warlock.

    Once you access the data store and find the files, you can simply right click on the VMX file and select "Add to inventory."  This will allow you to add the virtual machine to your host without manually creating a new virtual machine and pointing to the existing VMDK file.

  • Automatic deletion/removal of the virtual machine to inventory

    Hello

    I need to create a clone of a virtual machine once a month on the storage separate from the original machine. Before that the time has come for the next monthly clone I have to delete the virtual machine but also to remove the inventory. I need to do without leaving the clone deleted in an orphaned State as the next clone turns out to be defective for the double.

    I set up a scheduled task to clone the machine then next month a cron job to run a vmware-cmd - s unsubscribe & lt; path to vmx & gt; followed by an rm - r & lt; path to vm & gt;. It does everything I need except remove the virtual virtual machine inventory.

    Did someone knows a way to remove it completely (as if to make a destroy) or cloning without adding it to the inventory (this is not really a need for us).

    Any help would be great,

    Mick

    With the command: vmware-cmd - s unregister

    You will need to restart the mgmt-vmware and vmware-vpxa service in order for the front end to pick up the change.

    Or you can use VC SDK.

    For VI Perl Toolkit:

    http://www/support/developer/viperltoolkit/viperl15/doc/vmregister.html

    Perl vmregister.pl - url https://vchost/sdk/vimService - username - Word blah administrator password - transaction undo - vmname TESTVM

    PowerShell (but in this example, the virtual machine is removed):

    http://myitforum.com/CS2/blogs/yli628/archive/2008/08/19/PowerShell-script-to-remove-virtual-machine-from-VMware-infrastructure.aspx

    André

  • vCAC 6.0: failed to add Virtual Machine to inventory

    Hello

    Some problems with my infrastructure. In computing resources, I can't retrieve my virtual machine hosted on my vCenter in order to create a new action plan.

    I tried to import with the organizer of the Infrastructure, but my VM is not detected. Try to restart the collection of data on the computing resources, same problem. Try to stop/start the collection of data... again and again

    VCAC Journal, I have:

    Machine virtual "W2K8R2' has been updated after the start time of the inventory data collection. The update is ignored.

    "W2K8R2" is a virtual machine with a snapshot, I want to use with the linked clone mode...

    With model VM without problem, I can import and create a plan of action associated with clone mode...

    With snapshot in VM, a huge problem... He has worked well with vCAC 5.2...

    Problem solved, I had two objects with the same name in the inventory vCenter (1 VM and 1 model with the same name).

  • define an id scsi for a disc newly added for virtual machines via script

    Hi Experts,

    I used the script below to add disks to several virtual machines
    http://blog.mattvogt.NET/2013/03/14/PowerCLI-mass-add-hard-disks/

    But currently our requirement for change as if we must add 3 2 GB drives, the disks must the controller use SCSI (1:0) - (1:2)

    And next bunch of disks, for example, should use use SCSI (2:0) - (2:2).

    Y at - it an option to set the SCSI ID when adding new disks.
    Please let me know if there is nothing we can achieve through scripts.

    Thanks in advance.

    Kind regards
    Sourav

    Try this new version, it works for me in my test environment

    ### Get VM/Disk Count/Datastore information ### $vmname = Read-Host "VM Name to add disks to"$num_disks = Read-Host "number of disks to add"$ds = "Oracle DB Farm Datastore Group"$format = Read-Host "Disk Format (thin, thick, EagerZeroedThick)"$size = Read-Host "Disk Size (GB)"
    
    $vm = Get-VM $vmname$datastore = Get-DatastoreCluster -Name $ds
    
    ### Add $num_disks to VM1..$num_disks | %{  Write-Host "Adding disk $_ size $size GB and format $format to $($vm.Name) on datastore $datastore"
    
      if($_ -eq 1){      $hd = New-HardDisk -vm $vm -CapacityGB $size -Datastore $datastore -StorageFormat $format      $hd = Get-HardDisk -VM $vm | Where {$_.ExtensionData.Backing.UUid -eq $hd.ExtensionData.Backing.Uuid}      $ctrl = New-ScsiController -Type Paravirtual -HardDisk $hd  }  else{      $hd = New-HardDisk -vm $vm -CapacityGB $size -Datastore $datastore -StorageFormat $format -Controller $ctrl    $hd = Get-HardDisk -VM $vm | Where {$_.ExtensionData.Backing.UUid -eq $hd.ExtensionData.Backing.Uuid}  }}
    
  • Adding a Virtual Machine to a domain

    Please, what is the best way to add a virtual machine to a domain.

    vCenter specification customization and then associate that spec with the blueprint (s) in question.

    Otherwise, you might make a workflow after full commissioning.

    Grant

  • Limit a group only port to be added to virtual machines with the role

    Hello!

    We have two 5.1 (soon to 5.5) Vmware ESXi clusters to total 10 hosts. We are setting up the new virtual machines for the Department of finance where they want to ensure that a level 1 technical support cannot access. On the side of the virtual machine, it's easy enough - but we want to make them a regular technician can also put a virtual machine on the portgroup (and VLAN) that these machines will be also on.

    Is there a way to limit a single portgroup to be assigned to any virtual computer through roles?

    Thanks in advance!

    His quiet easily. Go to vCenter.--> Home---> Networking.

    Select the Portgroup where you want to restrict users. Go to tab permissions, do a right click and add permissions.

    Add all users and groups that should not have access to this and give as no access. They would never know that there

  • Virtual MACHINE disk, but not in the inventory

    I have a virtual machine that has disappeared from the inventory, but is still in the (non-local) data store. In my view, that it was off. I tried to add to the inventory, but received a message that a virtual machine is already registered with that name. I believe that these are the steps that led to this State:

    I had a consultant in an ESXi host to replace it with a new one and a few weeks ago. All virtual machines have been moved out of the old host. The virtual machine in question was arrested that we did not use it. I just noticed today that it was not in the inventory because now I'm ready to use it.

    Another change that happened a few weeks ago was replacement unit vCenter vCenter. I don't know if who had nothing to do with him or not.

    Any suggestions how I could see the virtual machine in the inventory again?

    Hello

    As you can see this message, "received a message that a virtual machine is already registered with that name", while adding another virtual machine name use inventory. However, be sure that this virtual machine is not already.

    Concerning

    Mohammed

  • Cannot specify a directory for the Virtual Machine

    I'm new to ESXi naked with me.  I added some records and then to browse the data store and I added the folders in there to specify the different VM..., I have a XP Win7 folder folder, etc.  When I go to create a new Virtual Machine gives me only the choice to select a data store to store the HARD drive and not the folder structure I created in the data store.  Now I can delete the virtual machine to inventory, return to 'Browse the data store' and move the files, and then add the VMX file in the inventory, but it just seems like a pain.  Am I missing something?  Really can not be complicated to arrange your virtual machines, it can?

    Yes, you cannot specify a folder when you create a virtual computer to a data store.  I guess that he has not considered to organize things at this level and honestly.  Organization is really in the 'models and virtual computers '.

  • How to open the workstation virtual machine in vmware server

    Hello

    How to open machine of VMware workstation, vmware Server?... is it possible?... can someone explain to me pls...

    To add a virtual machine to inventory

    1. Select the host in the inventory Panel.

    2 in the section orders the contents of the host tab, click on add a virtual computer

    Inventory.

    3 click Browse to locate the file of configuration (.vmx file extension) to the virtual

    machine you want to add to the inventory.

    The inventory column to navigate the file system.

    The content column lists the contents of the current directory.

    The information column displays detailed information about the selected directory

    or file.

    4 Select the configuration file in the content column and click OK.

    The virtual machine is added to the inventory.

    AWo

    VCP / VMware vEXPERT 2009

  • Problem with Migration hot virtual machines Hyper-V

    Dear support

    I am facing problem in Live Migration of Virtual Machine in Windows 2012 of Hyper-V R2 cluster. Here are the details for my current setup.

    Two windows 2012 R2 Datacenter even care Server (HV01 and HV02) both in cluster

    A Virtual Machine created the Volume share of Cluster (c:\Cluster storage\...)

    A network adapter dedicated to the management of server-> 10.0.1.11 (HV01) and 10.0.1.13 (HV02)

    A network card dedicated to Hyper v Virtual Machines-> 10.0.1.12 (HV01) and 10.0.1.14 (HV02) and allow networking option is disabled.

    A network card for the heart beats-> 10.0.20.1 (HV01) and 10.0.20.2 (HV02)

    A network card dedicated for Live Migration-> 10.10.10.50 (HV01) and 10.10.10.51 (HV02) and chosen to be used only for the live migration fails on cluster network settings

    I added the Virtual Machine Cluster Failover successfully without error or warning. When I do a quick migration his works fine but when I do live migration his error giving 21502.

    Please update what's wrong with my setup

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • virtual machine cannot start, because the snapshot of the virtual machine has been deleted by mistake.

    virtual machine cannot start, because the snapshot of the virtual machine has been deleted by mistake.

    When I start this virtual machine, it prompts: unable to find the 0001.vmdk, this disc is my shot, has been deleted by mistake.

    How to restore this virtual machine.

    You need help with a revival of the 000001.vmdk deleted or do you want to repair the virtual machine so that it works without the snapshot?

    The last option, follow these steps:
    remove the virtual machine from the inventory and edit the vmx file so that it uses the basedisk. Then add the virtual machine to inventory.
    If you need data from the snapshot call me through Skype "sanbarrow" - I may be able to help

  • Move the virtual machine from one host to another with shared storage

    Hello

    I have a question on how to move a virtual machine from one ESX 4 host to a host ESXi 5.  These hosts have access to the same shared storage but the ESX 4 host is outside the network and host ESXi 5 is inside the network so vMotion is not an option.  They are in different groups.  I know that there must be an easy way to move this virtual machine, but for the life of me, I can't find it.  I guess I have remove the virtual machine from the external cluster but how to make the virtual machine in the internal cluster?

    Thanks in advance...

    If both host access to the data store even where VM's store, just stop the virtual machine, remove inventory on ESXi 4, go to ESXi 5 vSphere vSphere, browse the data store where the VM is stored, do a right-click on the .vmx file and add to the inventory.

  • After an upgrade to ESXi 5.0, 5.1, my virtual machines are not listed in vSphere.

    The directory structure still seems to be on the disk.  Is there an easy way to get vSphere to recognize?

    Welcome to the community,

    I guess you Install accidentally selected rather than upgrade! Anyway, you can just browse the data store and do a right-click on the .vmx file each VM to add the virtual machine to inventory.

    André

Maybe you are looking for