VMware Cloud Community
vmwaredude1
Contributor
Contributor
Jump to solution

command to register VM

Guys,

After a some break, I am again touching ESX. I need to know the command which, will help me to register a VM. I know there was a command, with which I can restart, stop, register VM from the ESX console but I dont remember that command, can someone please help ?

Thanks

Reply
0 Kudos
1 Solution

Accepted Solutions
oreeh
Immortal
Immortal
Jump to solution

vmware-cmd -s register path_to_vmx_file

View solution in original post

Reply
0 Kudos
4 Replies
oreeh
Immortal
Immortal
Jump to solution

vmware-cmd -s register path_to_vmx_file

Reply
0 Kudos
ctfoster
Expert
Expert
Jump to solution

vmware-cmd -s register vmfs/volume/vmfslabel/VMName/VMName.vmx

Use the path with the UUID (vmfslabel) where requested when using vmware-cmd and you can use vmware-cmd -l command to retrieve the UUID

Reply
0 Kudos
francisbandi
Enthusiast
Enthusiast
Jump to solution

we live in Virtual center world.

I use VC - configuration - storage -> browse to .vmx file and add to inventory

Reply
0 Kudos
oreeh
Immortal
Immortal
Jump to solution

I (and I assume vmwaredude1 as well) live there too, but with the command line you can easily write scripts for mass registration.

Reply
0 Kudos