简介
本文档介绍如何在配置工作映像时排除虚拟网络计算(VNC)模块安装故障。
先决条件
要求
Cisco 建议您了解以下主题:
使用的组件
本文档中的信息基于以下软件版本:
- CloudCenter版本4.x
- CentOS7员工映像
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您使用的是真实网络,请确保您已经了解所有命令的潜在影响。
背景信息
下载worker_installer.bin文件后,在使用此处提到的命令配置Centos 7工作器映像时,它通常会跳过VNC的交互模块,即使该过程成功完成。
# ./worker_installer.bin centos7 <cloudtype> worker
本文帮助您处理此类情况。
问题
安装失败
在cliqr_modules.log中,可以看到依赖项故障(glib-2.4)。
<noscript> <table="class="msgText">似乎 您未启用JavaScript,请与管理员联系。
使用此工作映像可以成功部署应用,但用户无法通过VNC从Cisco Call Manager(CCM)用户界面(UI)访问已部署实例。
启动失败
在/var/log/messages文件中,可以检查VNC是否正确启动。
Sep 20 15:42:58 cliqr-centos6-base-image OSMOSIX: starting vnc server, result: 127
正确安装VNC时,结果代码应为0。
Nov 25 12:18:18 cqjw-58d79d88f OSMOSIX: starting vnc server, result: 0
解决方案
VNC安装依赖于GNOME库。因此,解决方法是,以管理员身份执行此步骤。
# export gui_enabled=true
这可解决VNC安装错误。
epel-release存储库是安装交互式模块的前提条件。执行此命令以安装回购。
yum -y install epel-release
成功完成上述步骤后,请重复工作映像配置。
./worker_installer.bin centos7 <cloudtype> worker
由于安装了其他模块,因此只安装VNC和交互模块。
安装VNC后,它应位于文件/etc/cliqr_modules.conf中
[cliqruser@cqjw-58d79d88f etc]$ cat cliqr_modules.conf
sysupdate
worker
ntp
docker
vnc
interactive
[cliqruser@cqjw-58d79d88f etc]$
要使vnc工作,也需要安装X窗口。
[root@cqjw-58d79d88f ~]# cat /var/log/messages | grep vnc
Nov 24 18:52:35 cliqr-centos6-base-image yum[4660]: Installed: tigervnc-server-module-1.1.0-24.el6.x86_64
Nov 24 18:53:28 cliqr-centos6-base-image yum[12686]: Installed: tigervnc-server-1.1.0-24.el6.x86_64
Nov 24 18:53:37 cliqr-centos6-base-image yum[12701]: Installed: libvncserver-0.9.7-7.el6_6.1.x86_64
Nov 24 18:53:39 cliqr-centos6-base-image yum[12703]: Installed: x11vnc-0.9.13-8.el6.x86_64
Nov 25 12:18:18 cqjw-58d79d88f OSMOSIX: starting vnc server, result: 0
[root@cqjw-58d79d88f ~]#
为vnc正确配置工作映像后,可以创建VM的模板,以用作已正确安装并运行vnc的工作设备。另请参阅 。
[root@cqjw-58d79d88f ~]# cat cliqr_modules.log | grep vnc
c3agent/osmosix/bin/startvncserver
c3agent/osmosix/vnc/
c3agent/osmosix/vnc/utils/
c3agent/osmosix/vnc/include/
c3agent/osmosix/vnc/include/web-socket-js/
c3agent/osmosix/vnc/include/chrome-app/
c3agent/osmosix/vnc/images/
c3agent/osmosix/vnc/images/bkp/
c3agent/osmosix/vnc/vnc.html
c3agent/osmosix/vnc/utils/websockify
c3agent/osmosix/vnc/utils/rebind.c
c3agent/osmosix/vnc/utils/Makefile
c3agent/osmosix/vnc/utils/json2graph.py
c3agent/osmosix/vnc/utils/nova-novncproxy
c3agent/osmosix/vnc/utils/websocket.pyc
c3agent/osmosix/vnc/utils/web.py
c3agent/osmosix/vnc/utils/u2x11
c3agent/osmosix/vnc/utils/launch.sh
c3agent/osmosix/vnc/utils/img2js.py
c3agent/osmosix/vnc/utils/README.md
c3agent/osmosix/vnc/utils/wsproxy.py
c3agent/osmosix/vnc/utils/websocket.py
c3agent/osmosix/vnc/utils/rebind
c3agent/osmosix/vnc/utils/websockify.py
c3agent/osmosix/vnc/utils/parse.js
c3agent/osmosix/vnc/include/keysymdef.js
c3agent/osmosix/vnc/include/des.js
c3agent/osmosix/vnc/include/util.js
c3agent/osmosix/vnc/include/web-socket-js/swfobject.js
c3agent/osmosix/vnc/include/web-socket-js/web_socket.js
c3agent/osmosix/vnc/include/web-socket-js/README.txt
c3agent/osmosix/vnc/include/web-socket-js/WebSocketMain.swf
c3agent/osmosix/vnc/include/logo.js
c3agent/osmosix/vnc/include/rfb.js
c3agent/osmosix/vnc/include/black.css
c3agent/osmosix/vnc/include/webutil.js
c3agent/osmosix/vnc/include/base64.js
c3agent/osmosix/vnc/include/display.js
c3agent/osmosix/vnc/include/ui.js
c3agent/osmosix/vnc/include/keyboard.js
c3agent/osmosix/vnc/include/playback.js
c3agent/osmosix/vnc/include/input.js
c3agent/osmosix/vnc/include/Orbitron700.woff
c3agent/osmosix/vnc/include/jsunzip.js
c3agent/osmosix/vnc/include/keysym.js
c3agent/osmosix/vnc/include/blue.css
c3agent/osmosix/vnc/include/websock.js
c3agent/osmosix/vnc/include/chrome-app/tcp-client.js
c3agent/osmosix/vnc/include/Orbitron700.ttf
c3agent/osmosix/vnc/include/base.css
c3agent/osmosix/vnc/images/cliqrLogo.jpeg
c3agent/osmosix/vnc/images/bkp/disconnect.png
c3agent/osmosix/vnc/images/bkp/mouse_right.png
c3agent/osmosix/vnc/images/bkp/connect.png
c3agent/osmosix/vnc/images/bkp/keyboard.png
c3agent/osmosix/vnc/images/bkp/mouse_middle.png
c3agent/osmosix/vnc/images/bkp/drag.png
c3agent/osmosix/vnc/images/bkp/screen_57x57.png
c3agent/osmosix/vnc/images/bkp/screen_320x460.png
c3agent/osmosix/vnc/images/bkp/screen_700x700.png
c3agent/osmosix/vnc/images/bkp/mouse_none.png
c3agent/osmosix/vnc/images/bkp/mouse_left.png
c3agent/osmosix/vnc/images/bkp/favicon.png
c3agent/osmosix/vnc/images/bkp/ctrlaltdel.png
c3agent/osmosix/vnc/images/bkp/clipboard.png
c3agent/osmosix/vnc/images/bkp/settings.png
c3agent/osmosix/vnc/images/bkp/favicon.ico
c3agent/osmosix/etc/vnc/
c3agent/osmosix/etc/vnc/passwd
Running Module vnc
---> Package tigervnc-server-module.x86_64 0:1.1.0-24.el6 will be installed
--> Processing Dependency: xorg-x11-server-Xorg for package: tigervnc-server-module-1.1.0-24.el6.x86_64
tigervnc-server-module x86_64 1.1.0-24.el6 base 214 k
Installing : tigervnc-server-module-1.1.0-24.el6.x86_64 38/45
Verifying : tigervnc-server-module-1.1.0-24.el6.x86_64 39/45
tigervnc-server-module.x86_64 0:1.1.0-24.el6
make[1]: Entering directory `/tmp/selfgz444713812/vnc/openbox-3.4.7.2/m4'
make[1]: Leaving directory `/tmp/selfgz444713812/vnc/openbox-3.4.7.2/m4'
make[1]: Entering directory `/tmp/selfgz444713812/vnc/openbox-3.4.7.2/po'
make[1]: Leaving directory `/tmp/selfgz444713812/vnc/openbox-3.4.7.2/po'
make[1]: Entering directory `/tmp/selfgz444713812/vnc/openbox-3.4.7.2'
make[1]: Leaving directory `/tmp/selfgz444713812/vnc/openbox-3.4.7.2'
make[1]: Entering directory `/tmp/selfgz444713812/vnc/openbox-3.4.7.2/m4'
make[2]: Entering directory `/tmp/selfgz444713812/vnc/openbox-3.4.7.2/m4'
make[2]: Leaving directory `/tmp/selfgz444713812/vnc/openbox-3.4.7.2/m4'
make[1]: Leaving directory `/tmp/selfgz444713812/vnc/openbox-3.4.7.2/m4'
make[1]: Entering directory `/tmp/selfgz444713812/vnc/openbox-3.4.7.2/po'
make[1]: Leaving directory `/tmp/selfgz444713812/vnc/openbox-3.4.7.2/po'
make[1]: Entering directory `/tmp/selfgz444713812/vnc/openbox-3.4.7.2'
make[2]: Entering directory `/tmp/selfgz444713812/vnc/openbox-3.4.7.2'
make[2]: Leaving directory `/tmp/selfgz444713812/vnc/openbox-3.4.7.2'
make[1]: Leaving directory `/tmp/selfgz444713812/vnc/openbox-3.4.7.2'
---> Package tigervnc-server.x86_64 0:1.1.0-24.el6 will be installed
--> Processing Dependency: xorg-x11-fonts-misc for package: tigervnc-server-1.1.0-24.el6.x86_64
tigervnc-server x86_64 1.1.0-24.el6 base 1.0 M
Installing : tigervnc-server-1.1.0-24.el6.x86_64 2/2
Verifying : tigervnc-server-1.1.0-24.el6.x86_64 2/2
tigervnc-server.x86_64 0:1.1.0-24.el6
---> Package libvncserver.x86_64 0:0.9.7-7.el6_6.1 will be installed
libvncserver x86_64 0.9.7-7.el6_6.1 base 159 k
Installing : libvncserver-0.9.7-7.el6_6.1.x86_64 1/1
Verifying : libvncserver-0.9.7-7.el6_6.1.x86_64 1/1
libvncserver.x86_64 0:0.9.7-7.el6_6.1
---> Package x11vnc.x86_64 0:0.9.13-8.el6 will be installed
x11vnc x86_64 0.9.13-8.el6 epel 947 k
Installing : x11vnc-0.9.13-8.el6.x86_64 1/1
Verifying : x11vnc-0.9.13-8.el6.x86_64 1/1
x11vnc.x86_64 0:0.9.13-8.el6
[root@cqjw-58d79d88f ~]#
如图所示,部署上述工作人员可以使用vnc连接到工作人员。
已安装的VNC