Skip to main content

Import Virtualbox ova Image

Export from Virtualbox

匯出 VM 至一個 *.ova image
  • 格式選 OVF1.0。(非必要)
  • 不要勾選網卡。(建議:在匯入 vmware 以後,再手動新增合適的虛擬網卡)

Import to vSphere 6 Server

  1. 下載 VMware-ovftool: https://www.dropbox.com/s/k925gfb2zn4ffgw/ovftool.zip?dl=0
  2. 將 *.ova 轉換成 OVF 格式(輸出檔案包含有 *.ovf*.mf*.vmdk)
  3. 從 vSphere Web 選擇 Deploy OVF Template,來源必須同時選擇兩個檔案 *.ovf 與 *.vmdk
  4. 使用 vCenter 介面無法完成匯入,必須改用 ESXi 介面。

OVFTool 轉換

"C:\Program Files\VMware\VMware OVF Tool\ovftool.exe" --lax source.ova target.ovf

Deploy OVF template

vSphere ESXi Web)

deploy_ovf-esxi.png

vCenter Web)

deploy_ovf-vcenter.png

F.A.Q

Error: No supported hardware versions

Issues detected with selected template. Details: - -1 : -1:VALUE_ILLEGAL: No supported hardware versions among [virtualbox-2.2]; supported: [vmx-04, vmx-07, vmx-08, vmx-09, vmx-10, vmx-11, vmx-12, vmx-13].

解決:
編輯 *.ovf,找到這一段

<System>
  <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
  <vssd:InstanceID>0</vssd:InstanceID>
  <vssd:VirtualSystemIdentifier>graylog#95</vssd:VirtualSystemIdentifier>
  <vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType>
</System>

搜尋 VirtualSystemTypevirtualbox-2.2 改成 vmx-07,存檔後,再匯入一次。

Error: No space left for device ‘7’ on parent controller ‘5’.

Line 85: No space left for device ‘7’ on parent controller ‘5’.
Line 66: Unsupported virtual hardware device ‘AHCI’.

Solution: 更換更高版本的 vmx-?? 試試。

Error: The checksum(s) from the provided manifest file do not match

The checksum(s) from the provided manifest file do not match the content of file(s): zabbix5.ovf.

Solution: 如果修改過 *.ovf ,在匯入時不要選擇 *.mf。

Error: Value ‘‘PIIX4’’ of ResourceSubType element not found in [#]

48:7:VALUE_ILLEGAL: Value ‘‘PIIX4’’ of ResourceSubType element not found in [].
57:7:VALUE_ILLEGAL: Value ‘‘PIIX4’’ of ResourceSubType element not found in [].
85:7:VALUE_ILLEGAL: Value ‘‘5’’ of Parent element does not refer to a ref of type DiskControllerReference.
75:7:VALUE_ILLEGAL: Value ‘‘4’’ of Parent element does not refer to a ref of type DiskControllerReference.

Solution: 不要使用 vCenter 做匯入;改用 ESX Host 的 Web 管理介面。

vmx 版本對應表

  ESX version
vmx-07 ESX 4.0
vmx-10 ESX 5.5
vmx-13 ESX 6.5

Reference