我得到一些ovf图像。当我尝试在vSphere上导入时遇到问题。我在寻找解决方案,但我找不到它。
当我执行"部署ovf模板"在vCenter上,我收到一个错误:
The OVF package requires unsupported hardware. Detail: line 26 unsupported hardware family 'vmx-08'.
所以我尝试使用ovftool来转换机器。当我尝试
ovftool E:\location\name.ova E:\location\vmx\name.vmx
我收到这样的消息:
C:\Program Files\VMware\VMware OVF Tool>ovftool E:\location\name.ova E:\location\vmx\name.vmx Opening OVA source: E:\location\name.ova Opening VMX target: E:\location\vmx\name.vmx Warning:
- Line 39: Unsupported value '12' for element 'CoresPerSocket'. Error:
- Line 32: Unsupported value '24' for element 'VirtualQuantity'.
- Virtual machine has 24 virtual CPUs, but the host only supports 8. The number of virtual CPUs may be limited by the guest OS selected for the virtual machine or by the licensing for the host. Completed with errors
也许我需要使用一些参数,如numberOfCpus,coresPerSocket,tt或viCpuResource。但我不知道如何使用它,我无法找到它。当我试图设置某些内容时,我会收到错误
Error: Unknown option: '-coresPerSocket=2'
Completed with errors
服务器规范
2 socket
8 CPU per socket
24 GB RAM
ESXi 4.1
我的电脑规格
i7
Windows 7 64 bit
8 GB
答案 0 :(得分:1)
我通过将OVA转换为OFV来解决我的问题,然后在转换后ovftool创建一个清单文件和总和控制文件。我在有问题的行中编辑清单并删除总和控制文件。之后,我的vSphere应用更改并成功导入vm。如果你不删除总和控制文件,Vsphere会显示错误。如果您不编辑清单文件,Vsphere可能不会导入该VM。
> traverse out_teaches from #15:0
----+-----+---------+-----+-----------+-----+-----
# |@RID |@CLASS |name |out_teaches|out |in
----+-----+---------+-----+-----------+-----+-----
0 |#14:0|professor|Smith|[size=1] |null |null
1 |#16:0|teaches |null |null |#14:0|#15:0
----+-----+---------+-----+-----------+-----+-----