Download OVF Tool Guide

Transcript
Using VMware OVF Tool
OVF Tool assumes the locator type based on the following rules:
„
If the name starts with vi://, OVF Tool assumes VI type.
„
If the name ends with .ovf, OVF Tool assumes OVF type.
„
If the name ends with .vmx, OVF Tool assumes VMX type.
„
If the name ends with .ova, the OVT tool assumes OVA type.
Similarly, source and target types can be inferred from folder locators. OVF Tool assumes the type according the following rules:
„
If the source locator is a folder, OVF Tool assumes that the source is an OVF package and that the OVF descriptor is called the same as the folder, for example, my-ovf/my-ovf.ovf.
„
If the source is an OVF package and the target locator is a directory, such as MyVirtualMachines/, OVF Tool assumes that the target is a VMX locator. The created VMX/VMDK file is put in a directory with the target name, for example, MyVirtualMachines/MyVM/MyVM.vmx. „
If the source is a VMX locator and the target locator is a directory, OVF Tool assumes that the target is an OVF package.
„
If the source is a VI locator, and the target locator is a directory, OVF Tool assumes that the target is an OVF package.
OVF Tool supports partial VI locators when deploying or exporting. For an incomplete locator path, the tool suggests completions at the command line. Example 1 shows the command‐line dialog when partial locators are used. Example 1. Partial Locators at the Command Line
> ovftool LAMP.ovf vi://localhost/
Opening source: LAMP.ovf
Opening target: vi://user@localhost/
Error: Found wrong kind of object (Folder)
Possible completions are:
Datacenter/
Remote Datacenter/
Secondary Datacenter/
> ovftool LAMP.ovf vi://localhost/Datacenter
Opening source: LAMP.ovf
Opening target: vi://user@localhost/Datacenter
Error: Found wrong kind of object (Datacenter)
Possible completions are:
vm/
host/
> ovftool LAMP.ovf vi://localhost/Datacenter/host
Opening source: LAMP.ovf
Opening target: vi://user@localhost/Datacenter/host
Error: Found wrong kind of object (Folder)
Possible completions are:
host1.foo.com/
host2.foo.com/
> ovftool LAMP.ovf vi://localhost/Datacenter/vm/host1.foo.com
VMware, Inc.
19