Hey VM Guru's
Im desperatley looking for a method to script a conversion of a physical machine to a esxi host every night for backup purposes. Problem is I dont have a enterprise license but am prepared to pay for the enterprise converter if needed to get the p2vtool.exe is this at all possible, or must you buy full VI3? Or maybe possibly done via powershell?
Any help would be appreciated
Check out the following link for ino (A little bit) on using converter to backup live VM
As to scripting it on a nightly basis I am not sure how that would be best accomplished.
Have you thought about using Netbackup (Or some other standard backup product) to backup the physical system. Then restore to a Vanila VM if needed (you would most likely need to repair OS once restore was completed but it should be doable)
p2vtool is the only command line option that I know of to do this in a scripted fashion. The typical licensing requirements should still come in to play. With free version, you won't have support for p2v directly to esx, which is what you want to do. The converter license should be enough.
You could use Platespin's powerConvert Enterprise product (IT may have been renamed to platespin Migrate now - I cant keep up) which will perform differential P2V at scheduled intervals to ensure you have a virtual synced copy of your physical box. Price is around £350 per host you want to protect. It will also do V2P, P2P, V2V etc.
I tried this p2vtool but it seems like even if you try to export standard vmware server images it still complains about a license. My local VMware supplier isnt aware of a vmware converter license only? Purchasing a license just for the converter isnt a problem, where could I get more information about this?
The convert license is free, if you have ESX enterprise. If you do not, you have to get one. The converter license is really the only thing that limits you from converting directly to ESX. ESX itself does not stop you from doing that. So, if you have the license for converter, then you should be good to go, as far as licensing goes. Without that license, you are only allowed one-way conversions. Meaning, you can convert a physical to local files, and then convert the local files to ESX. Or, you can install converter on the physical box itself that you want to convert, and convert that machine directly to ESX without the intermediary step of converting to files. Hope that makes more sense.
Thats not entirely true, I cant even convert with p2vtool to files on my local disk. It seems like if you want to use the command line tool you have to have a license regardless.
desktop\temp" username="10.10.10.10\Bibi" vmName="Bibi"/>
We're mixing things up. The converter GUI license itself is how I mention above. The p2vtool does seem to need to validate against a license, unless you're using the CLI to restore a vcb backup.
Cant automate a GUI, unless I use some type of app to record my mouse clicks?
p2vtool license arguments:
Here is what happens when I run it:
C:\PROGRA1\VMware\VM45C91>p2vTool.exe -p -i -s bibi.xml
p2vTool version 3.0.3 build-89816
Reading P2V input from file bibi.xml...
No valid license found. Need a valid enterprise license to work.
Agreed, but you did mention that a converter license is not a problem. Maybe you can call your sales rep and get a trial license.
This is a difficult enough job with the proper tools, and without them is that much harder. What about some disk clone utilities? You can clone your drives on a regular basis, and then use them as basis for a restore to a virtual machine?
I personally have not. Not sure if that comes with a CLI, though, but it does have a trail version. I'd check with my sales rep to see if I can get a converter enterprise license as well, and see how that compares to others. Up to you though, I'm not trying to sell you on a product.