VMware Cloud Community
vin100
Contributor
Contributor

How to open virtualmachines after esx reinstall ?

Hello,

I have a server with two disks. I have installed ESXi on the first disk and two virtual machines on the second disk (which is used as vmfs storage). Then I have completely wiped out the first disk and reinstalled ESXi on this disk. The two virtual machines are still on the second disk but of course the newly installed ESX does not show them.

How do I "reload" them in ESXi (I'm used to VMWare Workstation where you can simply "open" a vmx file) ?

Thanks

0 Kudos
4 Replies
mail_vijayar
Enthusiast
Enthusiast

When you install ESX and create a Data store a UUID will be associated with each data store and acts as a mapping/reference to the dat store; this is useful when you try to restore your VMFS volumes in situations when a server crashes.

But when you have reinstalled your ESX server then there is no way of remapping a local VMFS volume (unless undelete utility was used).

Reagrds,

Vijay

Regards, Vijay .A .R
0 Kudos
AntonVZhbankov
Immortal
Immortal

If you see datastore and can browse it - select .vmx file in Datastore Browser, right-click and select "Add to inventory"


---

VMware vExpert '2009

http://blog.vadmin.ru

EMCCAe, HPE ASE, MCITP: SA+VA, VCP 3/4/5, VMware vExpert XO (14 stars)
VMUG Russia Leader
http://t.me/beerpanda
vin100
Contributor
Contributor

Thank you, this is what I was looking for,

Best regards,

Vincent

0 Kudos
avlieshout
VMware Employee
VMware Employee

You could use this script to scan your vmfs volumes and import VMs

#!/bin/bash

# Scan LUNs for .vmx files
find /vmfs/volumes -name *.vmx | while read vm
do
        echo VM found and registering: "$vm"
        vmware-cmd -s register "$vm"       # Register the VMs

done

-Arnim van Lieshout

-


Blogging: http://www.van-lieshout.com

Twitter:

If you find this information useful, please award points for "correct" or "helpful".

Arnim van Lieshout Blogging: http://www.van-lieshout.com Twitter: http://www.twitter.com/avlieshout If you find this information useful, please award points for "correct" or "helpful".
0 Kudos