安裝 VMware ovftool 套件

要匯出 VMware ovf 在 Linux 環境下可以使用 ovftool 來匯出,不過 ovftool 並沒有辦法直接使用 apt 直接安裝,需要先到 VMware OVFTOOL 4.4.0 手動下載安裝。

安裝 OVFTOOL

下載檔案後上傳到 Linux 機器後修改一下 755 權限

chmod +755 VMware-ovftool-4.4.0-15722219-lin.x86_64.bundle

執行 help 查看安裝方法

[email protected]:~/ovftool# ./VMware-ovftool-4.4.0-15722219-lin.x86_64.bundle --help
Extracting VMware Installer...done.
Usage: vmware-installer [options]

VMware Installer

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit

  Manage:
    Install or uninstall products

    -i FILE, --install-bundle=FILE
                        Install bundle from FILE
    --install-component=FILE
                        Install a component
    --uninstall-component=NAME
                        Force uninstallation of a component
    -u NAME, --uninstall-product=NAME
                        Uninstall a product
    -r, --resolve-system
                        Force the system to resolve the current state
    --register-file=COMPONENT_NAME (config|regular) FILE
                        Register a file in the database
    -x DIR, --extract=DIR
                        Extract the contents of the bundle into DIR
    -p DIR, --prefix=DIR
                        Set a custom install location

  Information:
    Look up information on installed products

    -l, --list-products
                        List installed products
    -t, --list-components
                        List the installed components
    -L COMPONENT, --list-files=COMPONENT
                        List files for a given component
    -S FILE, --find-file=FILE
                        List components and files matching the given pattern

  Settings:
    Set and retrieve settings

    -g COMPONENT KEY, --get-setting=COMPONENT KEY
                        Get setting
    -s COMPONENT KEY VALUE, --set-setting=COMPONENT KEY VALUE
                        Set setting
    -d COMPONENT KEY, --delete-setting=COMPONENT KEY
                        Delete setting

  Options:
    --gtk               Use the Gtk+ UI (Default)
    --console           Use the console UI
    --custom            Allow customization of the install, including file
                        locations.
    --regular           Displays questions that have no good defaults
                        (Default)
    --required          Displays only questions absolutely required
    -I, --ignore-errors
                        Ignore component script errors
    --eulas-agreed      Agree to the EULA

使用 sh 安裝 OVFTOOL

[email protected]:~/ovftool# /bin/sh VMware-ovftool-4.4.0-15722219-lin.x86_64.bundle
Extracting VMware Installer...done.
You must accept the VMware OVF Tool component for Linux End User
License Agreement to continue.  Press Enter to proceed.
VMWARE END USER LICENSE AGREEMENT

PLEASE NOTE THAT THE TERMS OF THIS END USER LICENSE AGREEMENT SHALL GOVERN YOUR
USE OF THE SOFTWARE, REGARDLESS OF ANY TERMS THAT MAY APPEAR DURING THE
INSTALLATION OF THE SOFTWARE.

IMPORTANT-READ CAREFULLY:   BY DOWNLOADING, INSTALLING, OR USING THE SOFTWARE,
YOU (THE INDIVIDUAL OR LEGAL ENTITY) AGREE TO BE BOUND BY THE TERMS OF THIS END
USER LICENSE AGREEMENT ("EULA").  IF YOU DO NOT AGREE TO THE TERMS OF THIS
EULA, YOU MUST NOT DOWNLOAD, INSTALL, OR USE THE SOFTWARE, AND YOU MUST DELETE
OR RETURN THE UNUSED SOFTWARE TO THE VENDOR FROM WHICH YOU ACQUIRED IT WITHIN
THIRTY (30) DAYS AND REQUEST A REFUND OF THE LICENSE FEE, IF ANY, THAT YOU PAID
FOR THE SOFTWARE.

EVALUATION LICENSE.  If You are licensing the Software for evaluation purposes,
Your use of the Software is only permitted in a non-production environment and
for the period limited by the License Key.  Notwithstanding any other provision
in this EULA, an Evaluation License of the Software is provided "AS-IS" without
indemnification, support or warranty of any kind, expressed or implied.

1.      DEFINITIONS.

1.1 "Affiliate" means, with respect to a party, an entity that is directly or
indirectly controlled by or is under common control with such party, where
"control" means an ownership, voting or similar interest representing fifty
percent (50%) or more of the total interests then outstanding of the relevant
entity (but only as long as such person or entity meets these requirements).

1.2     "Documentation" means that documentation that is generally provided to
You by VMware with the Software, as revised by VMware from time to time, and
which may include end user manuals, operation instructions, installation
guides, release notes, and on-line help files regarding the use of the
Software.

1.3     "Guest Operating Systems" means instances of third-party operating
Do you agree? [yes/no]: yes

Installing VMware Installer 2.1.0
Copying files...
Configuring...
Installing VMware OVF Tool component for Linux 4.4.0
Copying files...
Configuring...
Installation was successful.

測試 ovftool 指令

[email protected]:~/ovftool# ovftool -v
VMware ovftool 4.4.0 (build-15722219)