1-888-310-4540 (main) / 1-888-707-6150 (support) info@spkaa.com
Select Page

Common issues using OVF Tool to transfer VMs from the ESXi Shell

Published by Mike Solinap
on April 29, 2014

Chances are if you are in IT management or providing IT services you have had to deal with virtualization hosts. When it comes time to retire your old hardware and move to a new host, there are a number of different ways to go about it. One in particular for ESXi lets you avoid most incompatibility issues, transfer in the thin format, and go directly from host to host through the shell without needing a vCenter server. That is using VMware’s OVF Tool.

Thankfully, there are some great guides on getting the software up and running and starting your transfers. While you could install the tool on a third machine and use it to initiate the transfers across the hosts, running the tool directly from the hosts can make certain situations a little easier, like transferring the VMs from an area with restricted access. While setting up and using the tool is well documented, there are a few issues you may run into and a first time user may get overwhelmed and give up on using this great tool.

The first issue you may run into after copying the OVF Tool files to your ESXi Host is when you try to run a test on the program. The issue occurs based on the version of the OVF Tool that you are using and the version of your ESXi server. When setting up the latest tool on ESXi 5.5, you need to create a symbolic link in your /usr/lib directory pointing to the tools install location. A guide to this is written in the comments here. While that will work on the latest version of the tool with ESXi 5.5, you may have other library file errors when using an older version of ESXi.

The latest tool does have issues when installed onto ESXi 5.0. Hopefully, if you are switching to a new server you have the latest version of ESXi installed and can just place the tool on your destination server and can send the command from there. Otherwise, you may need to look for an older version of the OVF Tool that properly supports your version.

The second problem may occur — but does not for all users — if you do not specify a username and password in the OVF Tool command: /usr/lib/vmware-ovftool/ovftool vi://<username>:<password>@<host>/<file> vi://<username>:<password>@host. You may get hit with a screen of asterisks that will require you cancel the process. This does not seem to be consistent across versions but may occur.

Another issue occurs with the transfer command itself. While not a big deal initially, it may create extra work for you later if you specifically needed to keep a thin client disk thin. The default setting with OVF Tool is to transfer the file in the thick format regardless of your current disk type. While the guide does not mention that specifically it does show the “-dm=thin” command in one of its screenshots. If you miss this tag, the tool will still finish, but you will need to convert the VM back to a thin provision if that is what you needed taking more time.

The least visible issue occurs while using the tool. When attempting to use this tool you may see the error message “Failed to deploy OVF package: The task was canceled by a user.” This message can have a number of causes, one of which being the decision to cancel the process. A more common reason for this to occur is that a physical device or stored data on your host is set as a device on your VM. This could be the physical optical drive loading an iso from the datastore to the VM or even a USB drive attached as a quick data dump. Since this device is physically attached or stored on the current host, OVF Tool will throw an error and cancel the process.

With the optical drive, the fix for this is as easy as changing the drive to use the “Host Device” instead of a “Datastore ISO File.” For other devices, just removing and reattaching would be the easiest way to go. The good news is that this will trigger early on and let you know there is an issue. An OVF export by itself does not receive this error until the import occurs, and you would need to modify the files manually with a text editor to get it working again. By running the process with the OVF Tool, the hosts do an import and export at the same time and an error on the import will cancel the whole process.

Obviously, there are possibilities of other errors occurring while using this process, but most can be tested before going live to avoid major issues. Thankfully, between guides, kb articles, comments, and the VMware community, you can usually find an answer to any issues you are facing.

Next Steps:

Latest White Papers

Three Trends Are Transforming The Service Desk

Three Trends Are Transforming The Service Desk

Your IT service desk is about to change. Find out what's shaping the future. Three factors — enterprise service management (ESM), collaboration, and intelligent service management — are driving the transformation of the service desk. To better meet customers’ needs...

Related Resources

How To Add More Disk Space To Your Redhat Server Without Reformatting

How To Add More Disk Space To Your Redhat Server Without Reformatting

(Originally published in 2012, updated January 2022.) One of the common tasks for any system administrator is managing disk space on a server. A common question is how to increase disk space on a linux system. I won't go into a boring lecture on why managing disk...

What is Data Engineering?

What is Data Engineering?

Strictly defined, data engineering, which is also known as information engineering (IE), information technology engineering (ITE), or information engineering methodology (IEM), is a software engineering approach to designing and developing information systems.  Data...

SPK Releases vCAD™

SPK Releases vCAD™

SCOTTS VALLEY, Calif., Jan. 4, 2022 /PRNewswire/ -- SPK and Associates, LLC (SPK) is excited to announce the release of their new Virtual Engineering Platform – vCAD™. vCAD is an easy-to-use product that allows engineers to quickly set up and manage cloud workstations...