"A printer consists of three main parts: the case, the jammed paper tray and the blinking red light"
All articles
Last comments
What is your system version?
cant install it says: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of
Works on Linux Mint 18 cinnamon installed on my laptop.
Meeeerccci le seul tuto sur le web qui m'a permis d'installer Multisystem sur LMDE !!! Les autres ne marchent pas... Merci ! Merci ! Merci !
«    October 2016    »
» » KVM virtualization on a home PC with Linux Mint

KVM virtualization on a home PC with Linux Mint

KVM virtualization on a home PC Linux Mint

KVM - Kernel-based Virtual Machine, virtualization solution for Linux. Allows you to run a virtualized OS with hardware support for CPU (Intel VT, AMD-V, etc.) and emulate the periphery using qemu.

Sorry for the spelling and phonetic errors in the text.
Owner and main writer of MintGuide.org is not a native English speaker.

The benefits of virtualization on the desktop
For me as a home user, the main advantage of virtualization is the ability to save the state of the operating system. This means that all open window tabs in the browsers, the background program, working tables, etc when the computer shuts down and will remain when you switch to recover. You can immediately continue working.
The second advantage is that the computer can safely experiment and not be afraid to Bang data, Samusocial file system or to violate the dependencies of the package Manager. In a virtual environment you can do anything, and then, if necessary, to quickly reset all the changes.
Thirdly, to do backup is a pleasure, because the whole system is in one file. Leaked image on an external HDD and ready.
Fourthly, it is sufficient to install and configure how it should work environment and after that you can replace a long and tedious process of installation quick and fun process of cloning. Copied the system image, start the virtual machine, apt-get upgrade - and you can work.
Fifthly, you can have the operating system image in the RAM disk and get a truly enchanting acceleration all at once. I did an experiment: 4 GB host left, and 12 GB gave way with Debian. Inside GNOME, GIMP, LibreOffice, Firefox. All starts at 1000 times faster than even with SSD.
There is a million of advantages, but it is worth saying something about the cons.

Cons of virtualization on a home computer
First, the virtual machine will run slower than a physical computer. Before the performance drop was 50-90% now (in the presence of hardware support) performance loss is 1-5%.
Secondly, there is the problem of data exchange host-guest systems. The solutions are many: shared directories, FTP, Samba, etc.
In General, the disadvantages quite small and it is time to move to the lighting settings.

Configuring KVM in Linux Mint 13/14/15/16/17/17.1:
As a means of virtualization for a long time I used a free software VirtualBox. But recently, out of curiosity, I tested the KVM and was very impressed. KVM runs fast, very easy to set up and run, and still relies on KVM RedHat, as the most promising solution in this area.
Installation is very simple. KVM support is already in the kernel, it remains to establish some small things:

Check that your CPU supports hardware virtualization

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

If 0 it means that your CPU doesn't support hardware virtualization.

If 1 or more it does - but you still need to make sure that virtualization is enabled in the BIOS.


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

You can start working immediately. For example, run a wonderful distro Linux Mint directly from the ISO:

kvm -cdrom linuxmint-17.1-mate-64bit.iso -m 1g

Please note that if you do not explicitly specify the amount of RAM the -m option, the guest will receive only 128 MB and die in terrible agony.
If you want to install the OS on the drive, then first you should prepare a separate file that will contain the image. This is done all your favorite dd command:

dd if=/dev/zero of=LM_test_os.image bs=1M count=10240

if: indicates the source. Specifies a file that can be either a regular file or a device file.
of: specifies the destination file. The same can write to a regular file, or directly into the device.
bs: the number of bytes that will be written at a time. You can present this argument as the size of the piece of data to be written or read, and the number of pieces can be regulated by the following parameter.
count: the number that indicates how many bits will be copied.

Now the file LM_test_os.image can be used as a hard disk in a virtual environment:

kvm -cdrom linuxmint-17.1-mate-64bit.iso -m 1g -hda LM_test_os.image

With a hard drive you can do anything, for example, to install the OS or give under separate mount point, for example, under /home. Of course, when you install the OS, option -cdrom no longer needed.


Much easier to use a GUI frontend for KVM. The most popular is the Virtual Machine Manager (virt-manager).

The virt-manager application is a desktop user interface for managing virtual machines through libvirt. It primarily targets KVM VMs, but also manages Xen and LXC (linux containers). It presents a summary view of running domains, their live performance & resource utilization statistics. Wizards enable the creation of new domains, and configuration & adjustment of a domain’s resource allocation & virtual hardware. An embedded VNC and SPICE client viewer presents a full graphical console to the guest domain.

KVM virtualization on a home PC Linux MintKVM virtualization on a home PC Linux Mint

KVM virtualization on a home PC Linux MintKVM virtualization on a home PC Linux Mint

Installation latest version into Linux Mint:

sudo apt-get install virt-manager

After installation, look in the menu of Virtual Machine Manager and run it.

Good Luck!!!


Related articles

Add a comment

  • bowtiesmilelaughingblushsmileyrelaxedsmirk
Login via