Skip to content

Instantly share code, notes, and snippets.

@smurugap
Last active March 11, 2018 19:07
Show Gist options
  • Save smurugap/25fb885d2a7b941b9a90d539f5b52446 to your computer and use it in GitHub Desktop.
Save smurugap/25fb885d2a7b941b9a90d539f5b52446 to your computer and use it in GitHub Desktop.
Setup Virt-Manager + xVncServer

Install packages

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

Disable firewalld

systemctl disable firewalld

service firewalld stop

Setup Xvnc Env

vncserver

Modify xstartup as below:

[root@a2s39 ~]# cat .vnc/xstartup

#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
unset DBUS_SESSION_BUS_ADDRESS
exec /usr/bin/xfce4-session
startx &

Relaunch the xvnc session

vncserver -kill :1; vncserver :1

Mirror for epel repo within Juniper:

[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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment