I love Hyper-V as it has attracted me and Microsoft improved a lot in Windows Server 2012 R2 Hyper-V. Also Hyper-V Core 2012 R2 is Free and you can achieve a lot in your enterprise business.. specially Replication, VHDx backups, resource allocation in run time without System Center VMM etc.

In Ubuntu I am going to use KVM, because … because Ubuntu love KVM what is KVM.

KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V). Using KVM, one can run multiple virtual machines running unmodified Linux or Windows images. Each virtual machine has private virtualized hardware: a network card, disk, graphics adapter, etc. The kernel component of KVM is included in mainline Linux, as of 2.6.20.

Ubuntu uses KVM as the back-end virtualization for non-graphic servers and libvirt as its toolkit/API. Libvirt front ends for managing VMs include virt-manager (GUI). Let’s go to hack This setup guide is to configure a KVM on Ubuntu Server and management of the VMs is done remotely from another machine running Ubuntu Desktop.

STEP#1: Install lib-virt package in Ubuntu server. sudo apt-get install kvm libvirt-bin

 

STEP#2: Allow incoming tcp and udp packet on port 22 (ssh) on server sudo ufw allow 22

STEP#3: Install Virtual Machine Manager on Ubuntu Desktop machine. sudo apt-get install virt-manager

STEP#4: Connect to the server: execute virt-manager gksudo virt-manager

FILE -> ADD Connection. Connect to remote computer, Method : SSH, User : your user server, machine name : ip  of the server

NOW YOU ARE READY TO CREATE VIRTUAL MACHINE ON THE SERVER

STEP #4: Create the Guest VM image. Virtual Machine Manager from Ubnutu Desktop provides a GUI to easily create an image. Just right-click on the server and select “New”. You will then be prompted step-by-step on the variables (e.g. # of processors, memory, etc.) needed to be configured for your VM.

STEP #5: Install the Guest VM OS.

Use your regular CD/DVD installer or iso image to install the operating system on the VM.

More information in ubuntu official server Documentation -> http://libvirt.org/drvqemu.html

Attaching ISO File to VM

If you haven’t defined when you created your virtual machine, you can attach the device even to a running domain (virtual machine) by running the following command:

virsh attach-disk testbed /dev/sr0 hdc --type cdrom

If you already have defined a CDROM, and just to mount the iso to a running domain (vm)

virsh attach-disk win1 /home/iso/en_office_2013_std.iso hdc –type cdrom

Good Luck and Happy Rocking