.ovf 和 .vmdk 似乎无法与 VirtualBox 配合使用,即使我将程序指向 .ovf 导入屏幕中的文件,它仍会给出错误,提示尚未创建 .vmdk。它甚至还没开始导入就给出了错误提示。
Storage for the medium 'C:\Users\schalcay000\Desktop\RSS-VM-32BITS-disk1.vmdk' is not created.
它给了我下面这个错误代码。
VBOX_E_INVALID_OBJECT_STATE (0x80BB0007)
每当我尝试使用所有默认设置(不包括“将硬盘导入为 VDI”)导入 .ovf 时,由于硬盘为 .vmdk 格式,它会开始导入,然后在 12% 处停止并给我同样的错误,但说硬盘文件不在 VM 目录中。
Storage for the medium 'C:\Users\schalcay000\VirtualBox VMs\vm\RSS-VM-32BITS-disk1.vmdk' is not created.
当我将文件放入该文件夹时,它给出了相同的错误,但在 disk1 后添加了 (1)。就像是在避开该文件一样。请帮忙!
如果您想检查的话,这是 .ovf 文件:
<!--Generated by VMware ovftool 4.0.0 (build-2301625), UTC time: 2016-02-05T16:06:59.429481Z-->
<Envelope vmw:buildId="build-2301625" xmlns="http://schemas.dmtf.org/ovf/envelope/1" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<References>
<File ovf:href="RSS-VM-32BITS-disk1.vmdk" ovf:id="file1" ovf:size="2999185408"/>
</References>
<DiskSection>
<Info>Virtual disk information</Info>
<Disk ovf:capacity="40" ovf:capacityAllocationUnits="byte * 2^30" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" ovf:populatedSize="7630422016"/>
</DiskSection>
<NetworkSection>
<Info>The list of logical networks</Info>
<Network ovf:name="bridged">
<Description>The bridged network</Description>
</Network>
</NetworkSection>
<VirtualSystem ovf:id="vm">
<Info>A virtual machine</Info>
<Name>RSS-VM-32BITS</Name>
<OperatingSystemSection ovf:id="93" vmw:osType="ubuntuGuest">
<Info>The kind of installed guest operating system</Info>
</OperatingSystemSection>
<VirtualHardwareSection>
<Info>Virtual hardware requirements</Info>
<System>
<vssd:Caption>Virtual Hardware Family</vssd:Caption>
<vssd:InstanceID>0</vssd:InstanceID>
<vssd:VirtualSystemIdentifier>RSS-VM-32BITS</vssd:VirtualSystemIdentifier>
<vssd:VirtualSystemType>vmx-10</vssd:VirtualSystemType>
</System>
<Item>
<rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
<rasd:Description>Number of Virtual CPUs</rasd:Description>
<rasd:Caption>1 virtual CPU(s)</rasd:Caption>
<rasd:InstanceID>1</rasd:InstanceID>
<rasd:ResourceType>3</rasd:ResourceType>
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
<rasd:Description>Memory Size</rasd:Description>
<rasd:Caption>2048MB of memory</rasd:Caption>
<rasd:InstanceID>2</rasd:InstanceID>
<rasd:ResourceType>4</rasd:ResourceType>
<rasd:VirtualQuantity>2048</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:Address>0</rasd:Address>
<rasd:Description>SATA Controller</rasd:Description>
<rasd:Caption>sataController0</rasd:Caption>
<rasd:InstanceID>3</rasd:InstanceID>
<rasd:ResourceSubType>AHCI</rasd:ResourceSubType>
<rasd:ResourceType>20</rasd:ResourceType>
</Item>
<Item ovf:required="false">
<rasd:Address>0</rasd:Address>
<rasd:Description>USB Controller (EHCI)</rasd:Description>
<rasd:Caption>usb</rasd:Caption>
<rasd:InstanceID>4</rasd:InstanceID>
<rasd:ResourceSubType>vmware.usb.ehci</rasd:ResourceSubType>
<rasd:ResourceType>23</rasd:ResourceType>
<vmw:Config ovf:required="false" vmw:key="ehciEnabled" vmw:value="true"/>
</Item>
<Item>
<rasd:Address>0</rasd:Address>
<rasd:Description>SCSI Controller</rasd:Description>
<rasd:Caption>scsiController0</rasd:Caption>
<rasd:InstanceID>5</rasd:InstanceID>
<rasd:ResourceSubType>lsilogic</rasd:ResourceSubType>
<rasd:ResourceType>6</rasd:ResourceType>
</Item>
<Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:Caption>disk0</rasd:Caption>
<rasd:HostResource>ovf:/disk/vmdisk1</rasd:HostResource>
<rasd:InstanceID>6</rasd:InstanceID>
<rasd:Parent>5</rasd:Parent>
<rasd:ResourceType>17</rasd:ResourceType>
</Item>
<Item>
<rasd:AddressOnParent>2</rasd:AddressOnParent>
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
<rasd:Connection>bridged</rasd:Connection>
<rasd:Description>PCNet32 ethernet adapter on "bridged"</rasd:Description>
<rasd:Caption>ethernet0</rasd:Caption>
<rasd:InstanceID>7</rasd:InstanceID>
<rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
<rasd:ResourceType>10</rasd:ResourceType>
<vmw:Config ovf:required="false" vmw:key="wakeOnLanEnabled" vmw:value="false"/>
</Item>
<Item ovf:required="false">
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
<rasd:Caption>sound</rasd:Caption>
<rasd:InstanceID>8</rasd:InstanceID>
<rasd:ResourceSubType>vmware.soundcard.ensoniq1371</rasd:ResourceSubType>
<rasd:ResourceType>1</rasd:ResourceType>
</Item>
<Item ovf:required="false">
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
<rasd:Caption>video</rasd:Caption>
<rasd:InstanceID>9</rasd:InstanceID>
<rasd:ResourceType>24</rasd:ResourceType>
<vmw:Config ovf:required="false" vmw:key="enable3DSupport" vmw:value="true"/>
</Item>
<Item ovf:required="false">
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
<rasd:Caption>vmci</rasd:Caption>
<rasd:InstanceID>10</rasd:InstanceID>
<rasd:ResourceSubType>vmware.vmci</rasd:ResourceSubType>
<rasd:ResourceType>1</rasd:ResourceType>
</Item>
<Item ovf:required="false">
<rasd:AddressOnParent>1</rasd:AddressOnParent>
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
<rasd:Caption>cdrom0</rasd:Caption>
<rasd:InstanceID>11</rasd:InstanceID>
<rasd:Parent>3</rasd:Parent>
<rasd:ResourceType>15</rasd:ResourceType>
</Item>
<vmw:Config ovf:required="false" vmw:key="cpuHotAddEnabled" vmw:value="true"/>
<vmw:Config ovf:required="false" vmw:key="memoryHotAddEnabled" vmw:value="true"/>
<vmw:Config ovf:required="false" vmw:key="powerOpInfo.powerOffType" vmw:value="soft"/>
<vmw:Config ovf:required="false" vmw:key="powerOpInfo.resetType" vmw:value="soft"/>
<vmw:Config ovf:required="false" vmw:key="powerOpInfo.suspendType" vmw:value="soft"/>
<vmw:Config ovf:required="false" vmw:key="tools.afterPowerOn" vmw:value="true"/>
<vmw:Config ovf:required="false" vmw:key="tools.afterResume" vmw:value="true"/>
<vmw:Config ovf:required="false" vmw:key="tools.beforeGuestShutdown" vmw:value="true"/>
<vmw:Config ovf:required="false" vmw:key="tools.beforeGuestStandby" vmw:value="true"/>
<vmw:Config ovf:required="false" vmw:key="tools.syncTimeWithHost" vmw:value="false"/>
</VirtualHardwareSection>
</VirtualSystem>
</Envelope>```
答案1
VM 通常至少由两部分组成:VM 定义(vCPU 数量、RAM 数量、网络适配器等)和虚拟磁盘。就您而言,VM 定义采用开放虚拟化格式,虚拟磁盘是动态扩展的 VMware 虚拟磁盘 (VMDK)。VMDK 也是一种开源格式。
您似乎在直接导入 OVF 文件时遇到了一些问题,但这不是必需的!从查看文件可以看出,它对大多数元素都有人性化的描述。由此,我们可以手动重新创建虚拟机,然后连接磁盘(VirtualBox 支持 VMDK 格式)。
VM定义如下:
- Ubuntu 客户机操作系统(从虚拟机名称我们可以推断出它是 32 位 Ubuntu)
- 1 个虚拟 CPU
- 2 GiB 内存
- 虚拟 SATA 控制器 (AHCI)
- 虚拟 USB EHCI (USB 2.0) 控制器
- 虚拟 SCSI 控制器(LSI Logic)
- 虚拟磁盘(连接到 SCSI 控制器)
- 虚拟 PCNet32 网络适配器(桥接至物理网络)
- 虚拟 AC97 (Ensoniq 1371) 声卡
- 启用 3D 加速的虚拟图形适配器
- VMCI 主机-客户机通信接口(VMware 专用,在 VirtualBox 上不可用)
- 虚拟光驱(连接至 SATA 控制器)
因为这是一个 Ubuntu 系统,所以实际上不需要精确地重新创建所有资源。相反,您可以专注于一些关键点:
- 1 个虚拟 CPU
- 2+ GiB 内存
- 虚拟磁盘连接到 SCSI 或 SATA(因此
sda
)
其他一切可能都不是必需的。如果您有 3D 可视化,启用 3D(在 VirtualBox 中有些实验性)可能会有所帮助。它们需要安装 VirtualBox Guest Additions。