VMware {code} Community
arl_15
Contributor
Contributor

Customize virtual serial port while cloning from template VM

Hey Folks,

I have a template VM that has a serial interface. Part of the template vmx file looks like below,

serial0.fileType = "network"

serial0.fileName = "telnet://xxx.xxx.xxx.xxx:63001"

serial0.yieldOnMsrRead = "TRUE"

serial0.present = "TRUE"

I would like to clone VMs using this template but every new clone should use a new port in the serial0.filename. I went through most of the documentation, but did not see if this can be done through the customization. Does the perl sdk (vmclone.pl) allows this?

Thanks in advance.

0 Kudos
1 Reply
stumpr
Virtuoso
Virtuoso


Yes, you can set those key-value pairs in the extraConfig section of the VM (it's the same as the VMX settings).


In your clone spec, you'd set an array of extraConfig options you want added to the VM.


 


 

Reuben Stump | http://www.virtuin.com | @ReubenStump
0 Kudos