要求在图形化界面的虚拟机
安装实验环境
[root@localhost ~]# yum install -y vnc-server vnc vim
启动VNCSERVER
[root@localhost ~]# vncserver :1
You will require a password to access your desktops.
Password:自己设置的密码
Verify:和上述一样就行
New 'localhost:1 (zx)' desktop is localhost:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost:1.log
配置VNC
[root@localhost ~]# vim /etc/sysconfig/vncservers
VNCSERVERS="2:hubery"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
在远程Windows机器安装VNC Viewer软件并打开