Install KVM Hypervisor on CentOS 7.x and RHEL 7.x

Pradeep Kumar

I am a huge fan of open source and love to share How To's tutorials on Linux, Cloud and DevOps. I have been working as Linux Consultant, Cloud & DevOps Engineer since 2010

You may also like...

15 Responses

  1. Julian says:

    Hey, who did this tutorial? Awesome!

  2. Makis says:

    congrats! Very helpful tutorial.
    On the first step you can also add below of : lsmod | grep kvm. That if this command returns nothing execute those commands:
    modprobe kvm
    modprobe kvm-intel or kvm-amd(depends on your cpu)
    In order to load the module.

  3. joe glassy says:

    Thanks for this tutorial! On CentOS 7 I believe it’s quite a similar process, however, I think that the default /etc/qemu.conf has to be edited, e.g. un-comment out (enable) user=root and group=root, or substitute other desired accounts. Then restart libvirtd, run status on it, and it will look much better.

  4. S.R.PrasannaKumar says:

    Excellent One.

  5. joe says:

    virt-manager failed to start with “can not open display”

  6. Brad Goodman says:

    This is awesome. I have been using it as my “gold standard” guide for getting VMs running on a CentOS 7 host. In fact, I don’t even use the GUI to get stuff going – I use the “Creating from a Command Line” as described above, then I do a “virsh console” to get the text console of the VM (as it boots from the install media), and do a “text” install (add “text” to the kernel/boot command line). No GUI ever used (just the way God intended Unix to be)!

    The only part that I thought was a bit confusing was the network and bridge setup. The way it works is – the address info all gets set in the BRIDGE device – all your “real” device does is kind of “point” to the bridge.

  7. Mohamed says:

    I am runing centos on virtualbox VM on windows
    I have configured paravirtualization on virtualbox but always I have null putput on running this

    [root@linuxtechi ~]# grep -E ‘(vmx|svm)’ /proc/cpuinfo

  8. Hi Mohamed,

    You need to enable nested virtualization in your virtualBox

  9. JuanJo says:

    Thanks for the tutorial, very well explained

  10. Steven says:

    What is best backup software to backup virtual machine reside inside the KVM hypervisor online (not offline)?

    Eg. Veeam is best for vmware and hyperV, but do not support KVM.

  11. Randy MacFarland says:

    I don’t get X running when entering the command above. When I reboot I get a license prompt which I except but then it just fails to the shell

  12. Roger Gardner says:

    Hello, I have RHEL 7.3 installed and can not attach a CD/DVD or boot from one. I keep getting: Driver ‘host:cdrom’ is not whitelisted.
    I have found that alot of People have this Problem, but never found a solution. Can anyone here help.

  13. Ming says:

    Hi , it’s a very good introduction. But I don’t understand why it’s necessary to manually setup a bridge in step2.
    This bridge is used as a physical network interface. I still have to create a ‘virtual network bridge. eg. virbr1’ with or without this one, and attached to the physical interface.

Leave a Reply

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