Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Follow these steps to enable VNC on VM i did for CentOS VM

  1. CentOS-7 "Minimal Install" VM (no Desktop System)
  2. yum groupinstall "X Window System"
  3. yum groupinstall "Fonts"
  4. yum install kde-workspace
  5. yum install gdm
  6. unlink /etc/systemd/system/default.target
  7. ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
  8. reboot OR (systemctl isolate graphical.target)

now you can create VNC server instance on the VM using "vncserver" command

It will create VNC instance for example VM1-hostname:1 where VM1-hostname is your VM public ip By using this "VM public ip:1" on VNC client you will be able to access VM from remote system