VMware Cloud Community
mikeco
Enthusiast
Enthusiast

p2vtool import does not customize guest

Hello,

I cloned a guest via the GUI from an ESX server and opted to change the hostname and IP and all was successful. I then copied this job's output XML file to the Converter install directory as customtest.xml and attempted to clone it through the command line with p2vtool -i -s customtest.xml.

The p2vtool command copied the VM correctly, but it does not get customized--the IP and hostname match those of the original VM that I cloned. I checked the XML file and the options to change the hostname and IP address are in it. I tried one more time with the GUI to make sure that it was a CLI vs. GUI problem and the GUI clone customized the VM fine.

So here are my questions: has anybody used p2vtool to copy and customize a guest? If so, did you have to do anything special to accomplilsh the feat? Also, has anyone seen the behavior that I have described above?

Thanks in advance

-Mike

0 Kudos
1 Reply
mikeco
Enthusiast
Enthusiast

Figured it out. You need to add the -p switch to tell it to do post-processing.

Crazy what reading the documentation can do for ya!

0 Kudos