vmware vms migration to openstack

简介: Converting a VMware Workstation virtual machine to KVM Leave a commentPosted by rbgeek on August 13, 2013 In this tutorial, I’ll show you the ...

Converting a VMware Workstation virtual machine to KVM

In this tutorial, I’ll show you the step by step procedure to convert the vmware machine into kvm, during this conversation, I have faced some issues, which I’ll also share with you along with solution.

Before converting the vmware machine,I strongly recommend removing the vmware tools and any existing snapshots of the virtual machine.Then, on the windows machine, convert this multi-file image into a single image:

cd "C:\Program Files (x86)\VMware\VMware Workstation"
vmware-vdiskmanager.exe -r "D:\VMWare\winxplite\XP-Lite.vmdk" -t 0 "D:\VMWare\winxplite\winxp.vmdk"

1

Note: Please change the path of vmdk file according to your requirement.

Copy this new vmdk file to the Linux box using WinSCP:

2

Next, convert the transfered image file (vmdk) into qcow2 format:

qemu-img convert winxp.vmdk -O qcow2 winxpvm.img

3

Move the qcow2 image to the /var/lib/libvirt/images/ directory and check the permission:

mv winxpvm.img /var/lib/libvirt/images/ 
cd /var/lib/libvirt/images/ 
ls -l

4

Start virt-manager by running the virt-manager command,click New to create a new guest.In the Virtual Machine Name window, enter a name for your guest. In this example, the virtual machine is named winxpvm and also select the “import existing disk image“. Click Forward.5

Click on “Browse” button:

6

Locate the qcow2 image that we have converted above and select it:

7

Next,choose the amount of RAM and number of virtual CPUs allocated to the guest:

8

In the Summary window, verify the settings for creating the guest. When you are satisfied, click Finish.

9

Right click on the newly created virtual machine and select Run:

10

After boot, I got the (0x0000007B) BLUE SCREEN OF DEATH (BSOD):

11

Shutdown the Machine:

12

The main reason for BSOD problem is that most VMware Windows images are installed on SCSI virtual disk  but KVM requires IDE device driver for converted images. To solve this problem, copy the MergeIDE.reg text from the below mentioned URL:

https://github.com/TJC/kvm-ievms/blob/master/MergeIDE.reg

13

Create a new file:

nano mergeide.reg

14

Paste the text inside it that we have copied from the above link:

15

Install all libguestfs related packages:

yum install qemu-img '*libguestfs*'

16

Now, we need to merge the mergeide.reg with the VM using virt-win-reg command:

virt-win-reg --merge winxpvm mergeide.reg

17

Note: You must not use virt-win-reg with the –merge option on running virtual machines. If you do this, you will get irreversible disk corruption in the VM.

Start the VM from the virt-manager again:

18

This time, virtual machine will boot successfully :-)

19

Enjoy :-)

Hope this will help you!

Please Remember me in your prayers!

 

目录
相关文章
|
4天前
|
存储 云计算 虚拟化
云计算|OpenStack|使用VMware安装华为云的R006版CNA和VRM---初步使用(二)
云计算|OpenStack|使用VMware安装华为云的R006版CNA和VRM---初步使用(二)
116 0
|
4天前
|
存储 虚拟化 数据安全/隐私保护
云计算|OpenStack|使用VMware安装华为云的R006版CNA和VRM---初始安装(一)
云计算|OpenStack|使用VMware安装华为云的R006版CNA和VRM---初始安装(一)
236 0
|
数据中心 虚拟化 云计算
红帽工程师Theron Conrey谈oVirt,OpenStack与VMware
转载http://www.infoq.com/cn/news/2013/05/conrey-on-ovirt 红帽工程师Theron Conrey谈oVirt,OpenStack与VMware 作者 杨赛 发布于 2013年5月3日 | 讨论 oVirt是一个虚拟化管理软件的开源项目。
1318 0
|
4天前
|
虚拟化
vmware克隆虚拟机后没有ip地址的问题
解决vmware克隆虚拟机后没有内网ip的问题
|
4天前
|
SQL 存储 数据挖掘
【虚拟机数据恢复】VMware虚拟机文件被误删除的数据恢复案例
虚拟机数据恢复环境: 某品牌R710服务器+MD3200存储,上层是ESXI虚拟机和虚拟机文件,虚拟机中存放有SQL Server数据库。 虚拟机故障: 机房非正常断电导致虚拟机无法启动。服务器管理员检查后发现虚拟机配置文件丢失,所幸xxx-flat.vmdk磁盘文件和xxx-000001-delta.vmdk快照文件还在。服务器管理员在尝试恢复虚拟机的过程中,将原虚拟机内的xxx-flat.vmdk删除后新建了一个虚拟机,并分配了精简模式的虚拟机磁盘和快照数据盘,但原虚拟机内的数据并没有恢复。
【虚拟机数据恢复】VMware虚拟机文件被误删除的数据恢复案例
|
4天前
|
Linux 虚拟化 数据安全/隐私保护
【Linux】VMware安装虚拟机- Windows + Linux
【1月更文挑战第20天】【Linux】VMware安装虚拟机- Windows + Linux
|
4天前
|
算法 虚拟化 C++
VMware虚拟机无法自适应和拖拽复制粘贴和共享目录问题
VMware虚拟机无法自适应和拖拽复制粘贴和共享目录问题
136 0
|
4天前
|
网络协议 Linux 网络安全
虚拟机Vmware详细安装(包含kali,win7与winxp三系统相互ping与安装)
本文是一篇关于虚拟机安装和配置的教程,包括使用VMware安装虚拟机和在虚拟机中安装Kali Linux、Windows 7和Windows XP系统。作者提供了详细的步骤和截图说明,指导读者如何下载和安装VMware,以及如何从提供的链接下载预配置的操作系统镜像文件。安装过程中,重点介绍了如何选择安装路径、接受许可协议、启动安装过程,并强调了不要勾选某些选项以保持默认设置。此外,还提到了如何在虚拟机中配置网络,确保三个系统在同一网段并能互相ping通。最后,作者布置了一些练习,如熟悉操作系统的使用、获取IP地址和互相通信,以及鼓励读者享受学习网络安全的过程。
76 9