Migrate VMware Virtual Machines to KVM Virtualization
These are the steps I took.
You will first need to download VMware’s vmware-vdiskmanager.exe by filling out this form. We will use this tool to merge all the vmdk files to one.
On my Windows workstation I downloaded Groundwork Community Edition into a folder called gw on my desktop. After the download I have to use Windows command console moving into the gw directory on the desktop like so.
After extracting the 2GB zipped file it created this directory called groundwork-vm6-7.0.1-br323-gw1896-ubuntu-12.04_64. Which I placed into a directory called gw on my desktop.
Moving into the directory from the Windows cmd.
C:\Documents and Settings\joe\Desktop\gw\groundwork-vm6-7.0.1-br323-gw1896-ubuntu-12.04_64>
Once I am in the directory I will convert the file called groundwork-vm6-7.0.1-br323-gw1896-ubuntu-12.04_64.vmdk. (Do not use the other files which end with something like -s001.vmdk)
Merge growable files into one using vmware-vdiskmanager.exe
C:\Documents and Settings\joe\Desktop\gw\groundwork-vm6-7.0.1-br323-gw1896-ubuntu-12.04_64>"C:\Program Files\VMware\VMware Server\vmware-vdiskmanager.exe" -r groundwork-vm6-7.0.1-br323-gw1896-ubuntu-12.04_64.vmdk -t 0 gw-pve.vmdk
If you don’t run into any errors you will get confirmation such as “Convert: 100% done”.
I then have to create a VM (not a container CT) on my Proxmox host with the following settings.
I then had to upload the merged vmdk file called gw-pve.vmdk into my Promox host using WinSCP to this directory /var/lib/vz/images/(The VM ID you just created). There will already be a file in there called vm-150-disk-1.qcow2 ignore this file for now.
Now that the upload has been done I will now SSH into my Promox host to move into the directory.
The VM id is 150 of the VM I just created.
I now have two files in the directory.
I will now convert the gw-pve.vmdk file to qemu format using qemu-img.
Note: -O is capitalized after the dash.
qemu-img convert -f vmdk gw-pve.vmdk -O qcow2 gw-pve.qcow2
After the conversion there will be three files in the directory now.
I then renamed vm-150-disk1.qcow2 to vm-150-disk1.qcow2.orig.
mv vm-150-disk-1.qcow2 vm-150-disk-1.qcow2.orig
Then renamed the file gw-pve.qcow2 to vm-150-disk1.qcow2.
mv gw-pve.qcow2 vm-150-disk-1.qcow2
From here I was able to start the VM from the Proxmox web interface then connected to the VM using the console.
To start the installation process per the instructions I had to login as groundwork, groundwork for username and password. Set the hostname. Give the installation some time to complete.
When the installation completes you will get a message saying something like “You can access the portal using the web browser at the following address” Below this message is the IP address of your VM you will connect to using the browser.
While still at the console I went ahead and changed the root password like so.
sudo passwd root
Connecting the web portal. Login using the default login of admin, admin for username and password.
After logging in you will be prompted for your license which you should have already gotten through the email. Copy and paste the license key starting from the.
#Mon Mar 26 1:56:08 PDT 2014 line all the way to the bottom where it says property_param_12……
You will see the dashboard after your license has been activated.
Change the default password by clicking top right corner groundwork administrator.
Open firewall for a port.
Typical Linux iptables command syntax to open GroundWork server firewall
Typically Red Hat Linux comes with only port 22 open. This command shows you the rules in place:
This command adds a rule at rule number 5 (in a typical Red Hat install there are 4 ACCEPT rules before the first REJECT rule). It says you want to allow new connections from anyone to TCP port 80 (the port used for HTTP).
iptables -I INPUT 5 -p tcp -m state --state NEW -s 0.0.0.0/0 --dport 80 -j ACCEPT
I am now able to use Groundwork Community edition on my favorite Open Source Hypervisor.