Converting VMWare Windows VM to run on Linux hypervisors

  1. jimbo45's Avatar
    Posts : 7,257
    Windows / Linux : Centos, Ubuntu, OpenSuse

    Converting VMWare Windows VM to run on Linux hypervisors

    Hi Virtual Machine user Geeks !!!

    You can convert Windows VMWare VM's to run on KVM or XEN --- these are 2 of the Linux HYPERVISORS equivalent to HYPER-V on Windows.

    For XEN (although KVM these days is the preferred method) :

    If you are using a Linux Host and have Windows VM's running under VMWare here's an interesting little experiment : Get the VM to run under XEN (one of Linux's HYPERVISOR). Copy / backup the VMWARE VM though first.

    1) you need to get the .vdmk files into a single "big" file if you used the option to create the VHD in "chunks".

    run this script : (as root of course)

    # for i in `ls *[0-9].vmdk`; do qemu-img convert -f vmdk $i -O raw ${i/vmdk/raw} ; done
    # cat *.raw >> flattened.img

    2) convert to "raw" using "Good old qemu" -- still working !!!

    # qemu-img convert vm1.vmdk -O raw /vms/vm1/vm1.img

    3) Create an appropriate Xen Project VM configuration file in /etc/xen/vm1/, with a line specifying the converted file as disk:
    disk = [ ‘file:/vms/vm1/vm1.img,hda,w’ ]

    4) Boot and go

    Still got some sound issues but looks good - ensure of course libvirt packages are installed.

    I'll have a go also with the other Linux HYPERVISOR system KVM and see what happens there too.

    I'm really interested in comparing performance of Windows VM's under these with Ms's HYPER-V - although one disadvantage of HYPER-V using a W10 Host is that the overhead of the Host OS (Windows 10) will be much higher than that of a lean mean linux distro especially if you install without a GUI.

    @Kari -- any ideas on maximizing performance of Windows HYPER-V VM's on a Windows Host (preferably W10).

    This stuff is quite addictive so ensure you have plenty of time before starting !!!!!!

    KVM though IMO is the way to go with this but I already had a little experience with XEN.

    For KVM : If you have RHEL or can get the virt-v package : it's easier but can't gurantee that you can do this easily on non Red Hat type distros. I have RHEL7/8 and Centos so no prob here.

    Converting Virtual Machines from Other Hypervisors to KVM with virt-v2v in RHEL 7 - Red Hat Customer Portal

    Works also on CENTOS (make sure >7.2) which is easily available (free) if you can't get RHEL --it's pretywell 100% comaptible with RHEL anyway

    package installs just fine on my CENTOS 7.6 system.

    Click image for larger version. 

Name:	snapshot1.png 
Views:	0 
Size:	128.7 KB 
ID:	235981

    will post results of VM's back later

    Last edited by jimbo45; 1 Week Ago at 05:20. Reason: Added details also for running with KVM
      My ComputerSystem Spec


Related Threads
Hi folks for those using Linux Hosts and want to try out a hypervisor (built in in typical Linux distros) where you can pass thru video / usb stuff to guests - Windows 10 runs fine -- just follow steps in this link Running Windows 10 on Linux...
I have installed Linux Mint 19 Cinnamon (3.8.9) within VMware Workstation 14 Player (version 14.1.3 build-9474260) running on a Windows 10 host (1803 build 17134.285). Sound does not work, although it works perfectly when I run Windows 7 in the same...
Hi folks If you have time here's another interesting little experiment. Linux also has it's own HYPERVISOR (almost counter part of HYPER-V in Windows). Actually it also has XEN but KVM IMO is easier to set up. Citrix uses XEN and as I've had...
Hi there I have a license for vmware workstation rel 14 I got from the company where I'm doing some contract work as a consultant -- it's a volume license with no expiration and I've been using it on Windows 10 with no problems. Anyway guess...
Hi there This seems to work fine for Windows 10 VM's on some Linux Hosts. 1) Uninstall VMware tools on the VM - shut down but don't re-power on 2) uninstall open-vm-tools on your HOST machine - typically as root or sudo yum autoremove...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:51.
Find Us