13 Jun 2020

How to install KVM for Virtualization in LinuxMint

This article shows you, how to install KVM in Linux Mint for Virtualization


1. Install qemu-kvm and libvirt
2. Add user to libvirt group
3. Remote access via SSH
4. Add a pool for ISO file


1. Install qemu-kvm and libvirt

Use the following command to install qemu-kvm package and some packages for virtual machine operation.

$ sudo apt install -y -o 'apt::install-recommends=true' \
  qemu-kvm libvirt0 libvirt-bin virt-manager libguestfs-tools

2. Add user to libvirt group

This command for the user in libvirt group can run virt-manager and virsh without sudo.

$ sudo gpasswd libvirt -a <username>
$ sudo reboot

3. Remote access via SSH

Following command for virt-manager and virsh provdes remote access via SSH. If you want to use SSH public key authentication, you can omit inputting password.

Create SSH keys on client, which use remote access via SSH.

$ ssh-keygen -t rsa -f ~/.ssh/id_rsa -N ""
Generating public/private rsa key pair.
Your identification has been saved in /home/idatahost/.ssh/id_rsa.
Your public key has been saved in /home/idatahost/.ssh/id_rsa.pub.
$ cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB... [email protected]

Now add SSH public key entry to ~/.ssh/authorized_keys on server which is installed KVM.

$ cat ~/.ssh/authorized_keys
ssh-rsa AAAAB... [email protected]

Now specify server URI with -c option on client.

$ virsh -c qemu+ssh://[email protected]/system

Setting server URI to VIRSH_DEFAULT_CONNECT_URI is equal with specifying server URI with -c option. Write VIRSH_DEFAULT_CONNECT_URI settings in your .bashrc if you need.

$ export VIRSH_DEFAULT_CONNECT_URI=qemu+ssh://[email protected]/system
$ virsh

4. Add a pool for ISO file

Create ISO directory and define as pool.

$ sudo mkdir /var/lib/libvirt/isos
$ virsh pool-define-as isos dir - - - - /var/lib/libvirt/isos
$ virsh pool-autostart isos
$ virsh pool-start isos
13 Apr 2020

How to install OS via SuperMicro Server KVM over IP

Note: Before you connect KVM over IP make sure you have current Java installed and Security is set to Medium


Login to your kvm user IE or firefox


You can download ISO to your local system

link >> http://mirrors.kernel.org/centos/5.10/isos/x86_64/CentOS-5.8-x86_64-netinstall.iso

or your own ISO

ones you have download it login to KVM

then click on “ remote control

select “Console Redirection

click on “launch console” ( you must have java 6 or newer installed on your system )

Ones KVM window open you will see the server Console

Click on “Virtual Media

Click on “Virtual Storage

Click on “CDROM & ISO

Under Logical Drive type “ISO file

Click on “open image

Now select the ISO you downloaded

Now click on “Plug in

ISO is mounted.

Now reboot the system via KVM by going to following

Click on “Power Control

Select “reset server

Click on “Perform Action

your system will reboot

as your system is coming up start press F11 until you see boot menu and then select “IPVM CD ROM”

iDATA HOST. All rights reserved