Virtualization

Install KVM Ubuntu Server VMware Workstation

If you want to play around with KVM virtualization inside of VMware Workstation, this is quick and easy to do with a few steps.  Let’s take a look at how to install KVM Ubuntu Server VMware Workstation.  The VM used for this post was an Ubuntu 14.04 64 bit server installation.

Install KVM Ubuntu Server VMware Workstation

The first thing that we need to do is properly set the virtual CPU inside of VMware Workstation so that it can perform nested virtualization.  To do this, click on your “Processors” and make sure under the virtualization engine you have Virtualize Intel VT-x/EPT or AMD-V/RVI checked.  This will allow KVM to function properly in the nested configuration.

prereqs02

Once your Ubuntu VM is installed and booted, you can check that you indeed have the KVM acceleration support enabled by issuing the following command:

egrep -c '(vmx|svm)' /proc/cpuinfo

Alternatively you can also issue the kvm-ok command.  To do that however, you will need to install the cpu-checker package:

sudo apt-get install cpu-checker

prereqs01

You should see a message kvm acceleration can be used after issuing the kvm-ok command if you have the support enabled.

KVM Install:

Installing KVM is easy using this command:

sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils

You need to add your user to the libvirtd group.  To do that, simply issue this command:

sudo adduser 'root' libvirtd

Then log out and back in.

Virtual Machine manager:

To manage my virtual machines, I used another Ubuntu 15.10 desktop machine to install the virt-manager package on.  To install virt-manager, issue this command:

sudo apt-get install virt-manager

Now you are ready to start playing around with creating some Virtual machines.

Windows VM

I played around with a Windows 2012 R2 VM as the first VM that I created in the KVM environment.  This was fairly straightforward.  After you launch Virtual Machine Manager, just click the button at the top left to “create a new virtual machine” and follow the prompts to assign storage, networking, and compute resources.  As you can see below I have the Windows server VM ready to go.

kvmvmm01

I had an issue right at first where I couldn’t see the console.  I changed the Console display type to VNC Server and this seemed to resolve that issue.
kvmvmm03

Also, the VM wouldn’t boot from the ISO I had mounted at first.  However, this is resolved under the Boot Options as you have to place a check by the Boot device for IDE CDROM to actually activate it.

kvmvmm04

After doing the above, I was able to get a Windows 2012 R2 VM up and running and then successfully install the OS.

kvmvmm02

Final Thoughts

KVM is still a maturing technology but is widely available in most Linux distros.  Hopefully this post on how to Install KVM Ubuntu Server VMware Workstation can help most with getting a lab version of KVM up and running inside of VMware Workstation.

Subscribe to VirtualizationHowto via Email 🔔

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com and has over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, Brandon has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.