Environment: centos6.0kvm virtualization environment I. server 1yuminstallvnc * // The tightvnc2vi/etc/sysconfig/vncservers is installed and changed to VNCSERVERS1: rootVNCSERVERARGS [1]-geometry800x6003vncpasswd // Set the logon password 4 service environment:
Centos6.0 kvm virtualization environment
I. server side
1 yum installvnc * // tightvnc is installed
2 vi/etc/sysconfig/vncservers
Modify
VNCSERVERS = "1: root"
VNCSERVERARGS [1] = "-geometry 800x600"
3 vncpasswd // Set the logon password
4 service vncserver start
5 vi ~ /. Vnc/xstartup
Gnome-session & // add gnome and log on with the gnome GUI
# Twm & // logout the default window manager is simple and many images cannot be displayed
6 service vncserver restart
7 vi/etc/libvirt/qemu. conf
Vnc_listen = "0.0.0.0" // enable listening to all ports. otherwise, listening to only local ports means that you can only log on to a specified virtual machine from a local server, such as vncviewer127.0.0.1: port number (such as 5902 ), if you listen to all ports, you can remotely log on to the virtual machine through the server IP: port number, for example, 10.92.0.51: 5902.
Vnc_password = "123456"
8 reboot // make the modification in step 1 take effect
9. to enable the client to log on to the server and virtual machine, disable the firewall: service.
IptablesStop
2. the client first closes the firewall service iptables stop
1. download and follow client http://www.duote.com/soft/3133.html
2. log on to the machine on the specified port,
3. how to view the vnc port
[Root @ netbank27/] # netstat-tulnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q LocalAddress ForeignAddress State PID/Program name
Tcp 0 00.0.0.0: 5902 0.0.0.0: * LISTEN 26172/qemu-kvm // vnc port of the VM, that is, 10.91.0.26: 2, or: 10.91.0.26: 5902
Tcp 0 00.0.0.0: 47183 0.0.0.0: * LISTEN 1849/rpc. statd
Tcp 0 00.0.0.0: 111 0.0.0.0: * LISTEN 1715/rpcbind
Tcp 0 00.0.0.0: 5901 0.0.0.0: * LISTEN 3933/Xvnc // vnc port 5901 of the physical server
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.