1. VNC management 1.1 modify configuration
1 [[email protected] ~]# vi /etc/libvirt/qemu.conf 2 …… 3 vnc_listen = "0.0.0.0"
Note:
- Vnclisten: by default, 127.0.0.1 is bound to the specified VNC in the configuration file to bind 0.0.0.0ip. You do not need to specify the vnclisten parameter when installing the KVM virtual machine.
- When there are multiple virtual machines on the VM, You need to specify each virtual machine as a different port.
1.2 modify the virtual machine configuration file
1 [[email protected] ~]# virsh edit vm03-centos6.8 2 <graphics type=‘vnc‘ port=‘5903‘ autoport=‘no‘ listen=‘0.0.0.0‘> 3 <listen type=‘address‘ address=‘0.0.0.0‘/>
1.3 start and verify the VM
1 [[email protected] ~]# virsh start vm03-centos6.8 2 [[email protected] ~]# netstat -tlun
1 [[email protected] ~] # Yum install VNC # host machine installation VNC client
Note: access the kvm vm through the VNC client. The IP address is the host address.
008. KVM-VNC Management