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

22 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

    [[email protected] ~]# 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.

  14. Prasad says:

    Superb Document

  15. Gilus says:

    Hi, i follow the instruction you give in the tuto, but i have error when i launch my VM.
    g-invoke-error-quark: Could not locate spice_gtk_session_get: ‘spice_gtk_session_get’: /lib64/libspice-client-glib-2.0.so.8: undefined symbol: spice_gtk_session_get (1)
    After search on google, i saw this https://forums.linuxmint.com/viewtopic.php?t=227025, but if i try to install gir1.2-spice-client-gtk-3.0, it tell me no packets available.
    I’m on Centos 7

  16. Tom says:

    How about libguestfs-tools?

    yum install qemu-kvm qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer bridge-utils libguestfs-tools

  17. BazzieB says:

    Hi There

    Awesome guide. I just have a slight problem when I create the bridge adapter. I do everything as you have it but when I systmectl restart network i loose connectivity to my server. I cant even ping it afterwards. I have to go to the server and delete the bridge adapter and then reboot. Any suggestions?

    Kind Regards

  18. Don Cross says:

    I was able to create everything per your instruction but I realized I can’t ssh into the host machine. Upon checking the ip address, the was no IP for the host adapter but IP for the bridge. Now the question is if I want to ssh into the host server what do I do. Thanks

  19. Jake S says:

    I’m doing something stupid, I know it. Everything works up to the last frame – “centos_01 login:” I have no login, how do I create a root user and/or a regular user?

Leave a Reply

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