1 Modifying the virtual Machine Xen service profile to support VNC external access
[[email protected] ~]# vi/etc/xen/xend-config.sxp# (vnc-listen ' 127.0.0.1 ') (Vnc-listen ' 0.0.0.0 ') # Any IP can be accessed
2 Restart Service
[Email protected] ~]# service xend restart
3 Installing the VNC server
[[email protected] ~]# yum-y install vnc* or yum-y install Tigervnc-server*[[email protected] ~]# yum-y install Xterm[[e Mail protected] ~]# yum-y install Virt-manager # graphical interface management related packages [[email protected] ~]# yum-y install dejavu-lgc-sans-fonts # Solve Virt-manager interface appears "mouth" garbled [[email protected] ~]# Rpm-qa | grep VNC # will eventually install the following package tigervnc-server-module-1.1.0-16.el6.centos.x86_64gtk-vnc-python-0.3.10-3.el6.x86_ 64gtk-vnc-0.3.10-3.el6.x86_64tigervnc-1.1.0-16.el6.centos.x86_64tigervnc-server-1.1.0-16.el6.centos.x86_64
4 Configuring the Vncserver password
[[email protected] ~]# Vncserver Enter password
5 Configuring the Graphical interface
[Email protected] ~]# vi/root/.vnc/xstartup TWM & # last line
6 Starting the Service
[[email protected] ~]#/etc/init.d/vncserver startstarting VNC server:no displays configured [FAILED] # out Now start error [[email protected] ~]# Vi/etc/sysconfig/vncservers # Open the last two lines of comments and modify it to the following vncservers= "1:root" vncserverargs[2]= "- Geometry 800x600-nolisten Tcp-localhost "
Description
The first behavior service configuration, currently only configured with a VNC service, start with the user root, if you need to use another user login, you can modify the value of vncservers such as: "1:root 2:tiger" (Tiger for the system another presence of users). The second line can be commented, is to configure the window resolution, you need to remove the back of the-localhost
Start the service again
[[email protected] ~]# /etc/init.d/vncserver restartstarting vnc server: 1:root new ' localhost.localdomain:1 (root) ' desktop is localhost.localdomain:1starting applications specified in /root/.vnc/ xstartuplog file is /root/.vnc/localhost.localdomain:1.log [ ok ]
7 Set boot up
[Email protected] ~]# chkconfig vncserver on[[email protected] ~]# chkconfig--list vncservervncserver 0:off 1:off 2:on 3:on 4:on 5:on 6:off
8 Client TightVNC2.7.10 Installation (I downloaded the installation directly in the 360 software encyclopedia)
Direct default Installation
Password
7 Login
Click the TightVNC Viewer icon directly after installation,
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5D/D8/wKiom1Uk9UGRTzTjAAHBDcc-SK4593.jpg "style=" float: none; "title=" 1.png "alt=" Wkiom1uk9ugrtztjaahbdcc-sk4593.jpg "/>
Click Connect
Run Virt-manager to manage virtual machines through a graphical interface
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5D/D3/wKioL1Uk9omD8mU_AAF-Prut_ao539.jpg "style=" float: none; "title=" 2.png "alt=" Wkiol1uk9omd8mu_aaf-prut_ao539.jpg "/>
Note Some of the virtual options must be changed to be active when not in the open state
Test:
Now we set up a virtual machine to turn on auto-start, and the network card bridge to br0 on whether to take effect after the restart
After the reboot, the discovery is in effect.
Managing Xen with VNC