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...

10 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

Leave a Reply

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