Hi all,
My application converts an OVF format VM into VMX format, run a program to patch/insert file
into the vmdk file, re-convert the VMX format back to OVF format. During the process, the
original network connection changes from "VM Networks" to "bridge". I am trying to understand
if there is a solution to retain the original network connection setting.
Setup:
Virtual Center 4.1.0
OVF tool 2.1.0
A linux based on CentOS 5.5
Procedure:
1. Use the tool "Export OVF Template" on Virtual Center to export a Linux VM (other 32bit Linux).
2. Use command "ovftool sourcerfile1.ovf targetfile.vmx"
3. Use command "ovftool targetfile.vmk /tmp/test/sourcefile2.ovf"
When the VM was exported by VC (after step 1), the ovf file contains the following NetworkSection:
<NetworkSection>
<Info>The list of logical networks</Info>
<Network ovf:name="VM Network">
<Description>The VM Network network</Description>
</Network>
</NetworkSection>
When the OVF got converted from VMX (after step 3), the ovf file contains the following NetworkSection:
<NetworkSection>
<Info>The list of logical networks</Info>
<Network ovf:name="bridged">
<Description>The bridged network</Description>
</Network>
</NetworkSection>
I did have an older setup where it uses VC 3.5 and OVF tool 1.0. When I performed the same procedure,
the network section is unchanged in the final ovf file. When I compared the .vmx file between the
old and new procedure, they are almost identical, with the exception of number of CPU parameter.
So, what am I doing wrong here?
Any help is greatly appreciated.
Thanks.