Hello,
I am looking for a script to be able to convert a physical server into our vSphere environment as a VM. I can do this with the import GUI from vCenter or using the converter agent but would like to be able to import a server to a VM using a powerCLI script.
Is this possible?
Any help greatly appreciated.
The only way to do this at the moment afaik is the same way Luc did here, you should be able to adjust his script....
If you found this information useful, please consider awarding points for Correct or Helpful.
Alan Renouf
Thanks for mentioning the article Alan.
Just note that the article shows how to import a VCB-created image of guest into the vCenter.
If you need to do an actual P2V, the XML template has to be changed slightly.
Let me know if you need assistance in adapting the article from the script for P2V ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I am interested in doing this so that we can clone VMs that are in one vCenter to a vCenter in a different physical location with different clusters.
What changes are needed to the XML file to be able to use VMware Converter and Powershell or PowerCLI?