• Bare Metal Server

  1. Help Center
  2. Bare Metal Server
  3. Private Image Creation Guide (BMS)
  4. Appendix
  5. Configuring the VNC Service

Configuring the VNC Service

  1. Run the following command to check whether the VNC server is installed:

    rpm -qa | grep tiger-server

    The following information is displayed:


    If the VNC server is not installed, no command output is displayed or the command output shows that the VNC server is not installed. In this case, you need to install the VNC server on the host. In many cases, this software is in the ISO image file and you can use yum or Zypper to install it.

  2. (Optional) Install tigervnc-server.
    1. Run the lsblk command (the OS ISO file must be mounted to the BMC virtual CD-ROM drive. If not, mount the ISO file in the same way as OS installation).
    2. Locate the block device whose name is sr0 and type is rom, and check whether directories are mounted to the mount point. If no, run the following command:

      mount /dev/sr0 /mnt

    3. Enter the /etc/yum.repos.d directory where the configuration is stored and back up all .repo files. Use vim to create a .repo file, for example tiger.repo. The file contains the following content:

      Save the file and run the following commands:

      yum repolist

      yum install tigervnc-server

  3. Start the VNC service and run the following command:


    Configure the VNC login password of user root as prompted.

    The command output contains the Log file is /root/.vnc/rhel:1.log information. 1 indicates that the current user is allocated the first VNC desktop.

  4. Run the following command to check whether the Xvnc process exists:

    ps -ef | grep Xvnc

    The process ID is 36069, port number used is 5901, and virtual desktop number is 1.

  5. Run the following command check whether the VNC server is installed:

    vncserver -list

    The current user has three virtual desktops, 1, 5, and 2.

  6. Use a Windows client to connect to the VNC server to log in to the host.

    When you install VNC Viewer for the first time, if the version of VNC Viewer is 5.3.2, set ColorLevel to rgb222. To set it, choose Options > Expert > ColorLevel.

  7. Run the following command to check whether the VNC server is installed:

    vncserver :6

    Run the vncserver -list command to check whether the virtual desktop is added successfully. If information shown in the following figure is displayed, the virtual desktop 6 is added successfully.