I have spent hours on google for the answer.
There is a lot of solutions for renaming vmdk and vmx files.
And a lot of scripts for the purpose.
But how can it be, that there is no solution on renaming af VM through SSH?
It should be just a simple command.
Building scritps on 50 lnies or so to do it just seems like a waste of time.
And PowerCLI is not and option.
We are doing automatic builds and deployment of VM's on Linux.
And we want to automate the whole process.
---
The plan.
- Build a VM with packer.
- Rename an old VM for deployment.
- Move the old VM to another storage to change vmdk file names.
- Rename the newly build VM to the name from the old VM.
- Move the newly build VM to correct storage for deployment.
- Clone the VM when deploying new VM's and set the configuration with Chef agent and cookbooks.
But rename a VM in ESXi is not an option????