从 VMWARE 迁移到 VirtualBox

发布于 2024-11-28 02:05:02 字数 1459 浏览 0 评论 0 原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

琴流音 2024-12-05 02:05:02

经过多次尝试,我终于能够让它工作了。本质上我所做的就是下载并使用 vmware converter 将两个磁盘合并为一个。之后我就可以将新创建​​的磁盘附加到 VitrualBox。

所涉及的步骤非常简单:

在做任何事情之前!

1) 进行备份!!! 即使您遵循这些说明,也可能会搞砸,因此请制作一个备份备份。只需关闭虚拟机,然后复制虚拟机所在的目录即可。

2) 从要转换的虚拟机中卸载 VMware Tools。如果由于某种原因您忘记了此步骤,您仍然可以在 VirtualBox 下运行所有​​内容后按照 这些步骤。帮自己一个忙,现在就做。

现在是有趣的部分!!!

1) 下载并安装 VMware 转换器。我用的是5.0.1 build-875114,就用最新的吧。

2) 下载并安装 VirtualBox

3) 启动 VMWare 转换器:

启动 VMWare 转换器

4) 单击 Convert machine

6) 浏览到您的 VM 的 .vmx 并单击下一步

Convert machine

7) 为新虚拟机命名并选择要放置它的位置。单击下一步

为新虚拟机命名并选择位置

8) 单击下一步选项屏幕上的。您不必在这里更改任何内容。

单击<code>选项</code>屏幕上的<code>下一步</code>。

9) 单击Summary 屏幕上的 >Finish 以开始转换。

点击 <code>Summary</code> 屏幕上的 <code>Finish</code>

10) 转换应该开始。这将需要很长的时间,所以要有耐心。

转换应该开始。

11) 希望一切顺利,如果顺利的话,您应该看到转换已完成:

< img src="https://i.sstatic.net/kywzZ.png" alt="转换已完成">

12) 现在打开 VirtualBox 并单击新建

打开 VirtualBox 并单击 <code>新建</code>

13) 为您的虚拟机命名并选择类型版本。单击下一步

为您的虚拟机命名并选择它的<code>类型</code>和<code>版本</code>。

14) 选择您想要为其分配的内存大小。单击下一步

选择您想要分配的内存大小。

15) 对于硬盘,单击使用现有硬盘驱动器文件并选择新转换的.vmdk文件。

使用现有硬盘文件

16) 现在单击设置并选择存储< /代码> 菜单。问题是默认情况下 VirtualBox 会将驱动器添加为 IDE。这行不通,但我们需要,因为我们需要将其放在 SCSI 控制器上。

将其放在 SCSI 控制器上

17) 选择 IDE 控制器和Remove Controller 按钮。

选择 IDE 控制器和 <code>Remove Controller</code> 按钮。

18) 现在单击 Add控制器 按钮并选择添加 SCSI 控制器

添加 SCSI 控制器

19) 单击 <代码>添加硬磁盘按钮。

添加硬盘

20) 单击选择现有磁盘

选择现有磁盘

21) 选择您的 .vmdk 文件。单击确定

选择您的<code>.vmdk</code> 文件。

22) 选择系统菜单。

选择<code>系统</code>菜单。

23) 单击启用 IO APIC。然后点击确定

点击<code>启用IO APIC</code>。

24) 恭喜! !!您的虚拟机现已配置完毕!单击Start启动虚拟机!

单击<code>Start</code> 启动虚拟机!

After many attempts I was finally able to get this working. Essentially what I did was download and use the vmware converter to merge the two disks into one. After that I was able to attach the newly created disk to VitrualBox.

The steps involved are very simple:

BEFORE YOU DO ANYTHING!

1) MAKE A BACKUP!!! Even if you follow these instruction, you could screw things up, so make a backup. Just shutdown the VM and then make a copy of the directory where VM resides.

2) Uninstall VMware Tools from the VM that you are going to convert. If for some reason you forget this step, you can still uninstall it after getting everything running under VirtualBox by following these steps. Do yourself the favor and just do it now.

NOW THE FUN PART!!!

1) Download and install the VMware Converter. I used 5.0.1 build-875114, just use the latest.

2) Download and install VirtualBox

3) Fire up VMWare convertor:

Fire up VMWare convertor

4) Click on Convert machine

6) Browse to the .vmx for your VM and click Next.

Convert machine

7) Give the new VM a name and select the location where you want to put it. Click Next

Give the new VM a name and select the location

8) Click Next on the Options screen. You shouldn't have to change anything here.

Click <code>Next</code> on the <code>Options</code> screen.

9) Click Finish on the Summary screen to begin the conversion.

Click <code>Finish</code> on the <code>Summary</code> screen

10) The conversion should start. This will take a LOOONG time so be patient.

The conversion should start.

11) Hopefully all went well, if it did, you should see that the conversion is completed:

conversion is completed

12) Now open up VirtualBox and click New.

open up VirtualBox and click <code>New</code>

13) Give your VM a name and select what Type and Version it is. Click Next.

Give your VM a name and select what <code>Type</code> and <code>Version</code> it is.

14) Select the size of the memory you want to give it. Click Next.

Select the size of the memory you want to give it.

15) For the Hard Drive, click Use and existing hard drive file and select the newly converted .vmdk file.

Use and existing hard drive file

16) Now Click Settings and select the Storage menu. The issue is that by default VirtualBox will add the drive as an IDE. This won't work and we need as we need to put it on a SCSI controller.

put it on a SCSI controller

17) Select the IDE controller and the Remove Controller button.

Select the IDE controller and the <code>Remove Controller</code> button.

18) Now click the Add Controller button and select Add SCSI Controller

Add SCSI Controller

19) Click the Add Hard Disk button.

Add Hard Disk

20) Click Choose existing disk

Choose existing disk

21) Select your .vmdk file. Click OK

Select your <code>.vmdk</code> file.

22) Select the System menu.

Select the <code>System</code> menu.

23) Click Enable IO APIC. Then click OK

Click <code>Enable IO APIC</code>.

24) Congrats!!! Your VM is now confgiured! Click Start to startup the VM!

Click <code>Start</code> to startup the VM!

倚栏听风 2024-12-05 02:05:02

我会建议一些完全不同的东西,我们很多年前在工作中在真实的计算机上使用过它并且它运行得非常完美。

在 Linux 救援 CD 上启动新旧机器。

从一个磁盘读取磁盘,然后将其逐块写入另一个磁盘,从而通过网络有效地复制磁盘。

您必须使用命令行进行一些操作,但它运行得非常好,以至于两台机器在启动时都抱怨 IP 冲突:-) :-)

cat /dev/sda | ssh user@othermachine cat - > /dev/sda

I will suggest something totally different, we used it at work for many years ago on real computers and it worked perfect.

Boot both old and new machine on linux rescue Cd.

read the disk from one, and write it down to the other one, block by block, effectively copying the dist over the network.

You have to play around a little bit with the command line, but it worked so well that both machine complained about IP-conflict when they both booted :-) :-)

cat /dev/sda | ssh user@othermachine cat - > /dev/sda
一抹淡然 2024-12-05 02:05:02

QEMU 有一个很棒的实用程序,名为 qmeu-img ,它可以在各种磁盘映像格式之间进行转换。有关此过程的文章位于 http://thedarkmaster.wordpress.com/2007/03/12/vmware-virtual-machine-to-virtual-box-conversion-how-to/

我记得我使用 qemu-img 将多个 VMDK 整合为一个,但我没有那台计算机来重新测试该过程。即使我错了,上面的文章也有一节介绍了如何使用 VMWare 工具转换它们。

QEMU has a fantastic utility called qmeu-img that will translate between all manner of disk image formats. An article on this process is at http://thedarkmaster.wordpress.com/2007/03/12/vmware-virtual-machine-to-virtual-box-conversion-how-to/

I recall in my head that I used qemu-img to roll multiple VMDKs into one, but I don't have that computer with me to retest the process. Even if I'm wrong, the article above includes a section that describes how to convert them with your VMWare tools.

嘿看小鸭子会跑 2024-12-05 02:05:02

注意:我不确定这对您有任何帮助,但您永远不知道。

我找到了此链接:http://www.ubuntugeek.com/howto-convert-vmware-image-to-virtualbox-image.html

享受吧:-)

Note: I am not sure this will be of any help to you, but you never know.

I found this link:http://www.ubuntugeek.com/howto-convert-vmware-image-to-virtualbox-image.html

ENJOY :-)

若水微香 2024-12-05 02:05:02

出现此错误的原因是 VMware 有一个 bug,在某些情况下使用磁盘文件的绝对路径。

如果您查看那个小 *.vmdk 文件的顶部,您可能会看到原始 VMDK 文件的绝对路径不正确,需要更正。

This error occurs because VMware has a bug that uses the absolute path of the disk file in certain situations.

If you look at the top of that small *.vmdk file you'll likely see an incorrect absolute path to the original VMDK file that needs to be corrected.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文