Difference between revisions of "OVF Tool"
Jump to navigation
Jump to search
(Initial creation) |
(Added "Defaults File" and "Troubleshooting") |
||
Line 13: | Line 13: | ||
Where <code> <target> </code> can be... | Where <code> <target> </code> can be... | ||
* Path to a .ovf or .vmx file (or folder that will contain a .ovf) | * Path to a .ovf or .vmx file (or folder that will contain a .ovf - the folder path must exist, the tool won't create it) | ||
* Path to destination on either an ESX or vCentre | * Path to destination on either an ESX or vCentre | ||
Where <code> <options> </code> could be... | Where <code> <options> </code> could be... | ||
* <code> --compress n </code> - Compress target disk files (1 - lowest, 9 - highest) | * <code> --compress=n </code> - Compress target disk files (1 - lowest, 9 - highest) | ||
* <code> --diskMode mode </code> - Target disk format (monolithicSpare, monolithicFlat; or if dest is via vCentre can also use thin, thick) | * <code> --diskMode=mode </code> - Target disk format (monolithicSpare, monolithicFlat; or if dest is via vCentre can also use thin, thick) | ||
* <code> --name name </code> - Target machine name (by the source machine name is used) | * <code> --name=name </code> - Target machine name (by the source machine name is used) | ||
* and much much more | * and much much more | ||
=== Defaults File === | |||
A default config file can be created to ensure that options you always to use are, well, always used. | |||
The file needs to be created in <code>%AppData%\VMware\ovftool.cfg</code>, so for a Windows 7 machine that would something like <code> C:\Users\me\AppData\Roaming\VMware\ovftool.cfg</code>, and could loom something like... | |||
<pre> | |||
# Defaults config file for OVF Tool | |||
# Max compression | |||
compress=9 | |||
# Thin provisioned disks | |||
diskMode=monolithicSparse | |||
</pre> | |||
== Examples == | == Examples == | ||
Line 27: | Line 40: | ||
Assumes you've got all the files for a virtual machine in a folder (ie you've downloaded from a VMFS) | Assumes you've got all the files for a virtual machine in a folder (ie you've downloaded from a VMFS) | ||
* <code> ovftool C:\Users\me\Downloads\MyVM\MyVM.vmx C:\Users\me\Downloads\NewOVF </code> | * <code> ovftool C:\Users\me\Downloads\MyVM\MyVM.vmx C:\Users\me\Downloads\NewOVF </code> | ||
== Troubleshooting == | |||
Wrong (OS becomes Other) | |||
<Section xsi:type="ovf:OperatingSystemSection_Type" ovf:id="1"> | |||
<Info>Guest Operating System</Info> | |||
<Description>Microsoft Windows Server 2008 (64-bit)</Description> | |||
</Section> | |||
Correct (for OS) | |||
<Section xsi:type="ovf:OperatingSystemSection_Type" ovf:id="82"> | |||
<Info>Guest Operating System</Info> | |||
<Description>Microsoft Windows Server 2003, Enterprise Edition (64-bit)</Description> | |||
</Section> | |||
[[Category:VMware]] | [[Category:VMware]] |