VMware VMS Migration to OpenStack

Source: Internet
Author: User

Converting a VMware Workstation virtual machine to KVMLeave a commentposted by Rbgeek on August

In this tutorial, I'll show you the "Step by step" procedure to convert the VMware machine into KVM, during this conversatio N, I have faced some issues, which I'll also share with your along with solution.

Before converting the VMware Machine,i strongly recommend removing the VMware tools and any existing snapshots of the Virt UAL machine . Then, on the Windows machine, convert this multi-file image to 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 "  

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

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

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

Winxpvm.img

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

Winxpvm.img/var/lib/libvirt/images/cd/var/lib/libvirt/images/ls-l

Start Virt-manager by running the virt-manager command,click new to create a new guest. in the Vsan name window, enter a name for your guest. In this example, the Vsan is named winxpvm and also select the "Import existing disk image ". Click Forward.

Click on the "Browse" button:

Locate The qcow2 image, we have converted above and select it:

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

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

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

After boot, I got the (0x0000007B) BLUE screen of Death (BSOD):

Shutdown the machine:

The main reason for BSOD problem was that most VMware Windows images be installed on SCSI virtual disk but KVM requires I DE 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

Create a new file:

Mergeide.reg

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

Install all LIBGUESTFS Related packages:

Yum install qemu-img ' *libguestfs* '

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

Mergeide.reg

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

Start the VM from the Virt-manager again:

This time, virtual machine would boot successfully :-)

Enjoy

Hope this would help you!

Remember me in your prayers!

VMware VMS Migration to OpenStack

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.