###install epel repo, yum install epel-release
yum install -y tigervnc-server qemu-kvm qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer vim screen git net-tools
yum -y groupinstall X11 Xfce
systemctl disable firewalld
service firewalld stop
vncserver
[root@a2s39 ~]# cat .vnc/xstartup
#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
unset DBUS_SESSION_BUS_ADDRESS
exec /usr/bin/xfce4-session
startx &
vncserver -kill :1; vncserver :1
[root@a2s36 yum.repos.d]# cat epel.repo
name = Extra Packages for Enterprise Linux 7 - $basearch - Debug
metalink = https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
failovermethod = priority
enabled = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck = 1
[epel-source]
name = Extra Packages for Enterprise Linux 7 - $basearch - Source
metalink = https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
failovermethod = priority
enabled = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck = 1
[epel-mirror]
baseurl = http://10.84.5.81/pulp/repos/centos74-epel/
enabled = 1
gpgcheck = 0
name = CentOS epel mirror