The overall idea is that VNC is connected to a physical machine to facilitate graphical Management of KVM.
After the virtual system is installed, you can manage the IP address of the subsystem through SSH.
VNC Installation
Yum install tigervnc-Server
Vim/etc/sysconfig/vncservers modify two rows
Vncservers = "1: Root"
Vncserverargs [1] = "-geometry 1024x768-nolisten TCP"
Run vncpasswd in the root account to set the VNC password for root login.
Cd ~ /. VNC/xstartup
Modify the "TWM" at the end of the document to gnome-session or startkde.
Service vncserver start
After completing the previous step, you can connect to the physical machine in a graphical manner.
---------------------------------
KVM Installation
Yum install KVM kmod-KVM-qemu-IMG libvirt Python-kernel inst virt-manager virt-Viewer bridge-utils-y
Chkconfig NetworkManager off
Chkconfig libmongod on
Service NetworkManager stop
Service libmongod start
Vim/etc/sysconfig/network-scripts/ifcfg-br0 (all addresses are the same as eth0)
Device = br0
Bootproto = static
Broadcast = ***
Ipaddr = ***
Netmask = 255.255.255.0
Onboot = Yes
Networking_ipv6 = No
Gateway = ***
Type = Bridge
Dns1 = 202.106.0.20
Dns2 = 114.114.114.114
Vim/etc/sysconfig/network-scripts/ifcfg-eth0
Add a row at any location. Bridge = br0: Save and exit.
Service Network restart
Reboot
-----------------------
The connection address for installing VNC on the client is IP: 1
The basic running level of the physical machine can always be init 3, without affecting the graphical Management of VNC
Verwer graphical management of physical machines. When VNC is not needed, service vncserver stop
Command Line Management
Virsh
List -- all
Start *
Restart *
Shutdown *
KVM virtualization configuration process