Tuesday, January 25, 2011

Register all VM to a new ESX host

A standalone ESX has been reinstalled. All VM are on a shared storage.
I registered all VM with this following command:


find /vmfs/volumes -name "*.vmx" | xargs -i{} vmware-cmd -s register {}


For information, you can replace xargs -I{} by xargs -i{} for certain esx version

No comments: