Originally published November 12, 2016 @ 11:14 pm
I had a little task: clone an operational VM from one VCenter to another. Normally, for such a task I would use the Standalone Converter. Unfortunately, this time I ran into an annoying SSH key issue: the source VM was an old 32-bit RHEL using DSA and my Converter version only supported RSA. A different approach was needed.
In a nutshell, the solution was:
- Clone the operational VM; do not power up the clone
- Click on the clone –>
Export OVF Template
- Pick a destination with sufficient space (I used an SMB mount on my laptop)
- Exporting as either
OVAworks. However, I would suggest
- Prior to importing template, edit the
*.ovffile (if you exported as
OVA, just unzip the
- Remove the following section:
<Item ovf:required="false"> <rasd:AddressOnParent>0</rasd:AddressOnParent> <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation> <rasd:ElementName>CD/DVD drive 1</rasd:ElementName> <rasd:InstanceID>10</rasd:InstanceID> <rasd:Parent>3</rasd:Parent> <rasd:ResourceSubType>vmware.cdrom.remotepassthrough</rasd:ResourceSubType> <rasd:ResourceType>15</rasd:ResourceType> <vmw:Config ovf:required="false" vmw:key="backing.exclusive" vmw:value="false"” /> </Item>
This section defines the CDROM, which can throw the
device 6error on import.
- Delete the
*.mffile to avoid integrity check failure.
Deploy OVF Template–> jump through the usual hoops.
- Before powering up the clone, check
NICsettings to make sure correct
VLANis selected and connected.
- Boot the VM in single-user mode and make the necessary changes to the network config and any other settings to avoid a conflict with the production VM.
- Delete the powered-off clone in the original VCenter.
This is probably more work than it had to be, but, luckily, I don’t need to do this often.
Experienced Unix/Linux System Administrator with 20-year background in Systems Analysis, Problem Resolution and Engineering Application Support in a large distributed Unix and Windows server environment. Strong problem determination skills. Good knowledge of networking, remote diagnostic techniques, firewalls and network security. Extensive experience with engineering application and database servers, high-availability systems, high-performance computing clusters, and process automation.