how to install kvm on minimal centos7ΒΆ

  1. install xfce

    yum install epel-release -y
    yum groupinstall "X Window System" -y
    yum groupinstall xfce -y
    systemctl set-default graphical.target
    reboot
    
  2. install vncserver

    yum install tigervnc-server -y
    vncserver
    set +H
    echo -e "#!/bin/sh\nstartxfce4 &" > /root/.vnc/xstartup
    vncserver :1
    
  3. install kvm

    yum install kvm -y
    yum install virt-manager libvirt libvirt-python python-virtinst -y
    systemctl start libvirtd
    systemctl enable libvirtd