Yum Install Libvirt
Yum Install QEMU-KVM
Yum Install Python-virtinst
Yum Install Virt-manager
Yum Install Virt-viewer
Yum Install Virt-top
Service LIBVIRTD Restar
After the installation is complete, you can enter Lsmod | grep KVM View installation status
Network card settings
Device=eth1
Type=static
Bridge=br0
Onboot=yes
Bootproto=static
ipaddr=192.168.31.90
Prefix=24
gateway=192.168.31.1
dns1=202.106.0.21
Device=br0
Type=bridge
Onboot=yes
ipaddr=192.168.31.90
Prefix=24
gateway=192.168.31.1
dns1=202.106.0.21
Qemu-img create-f qcow2-o preallocation=metadata wj01.qcow2 50G (Create System image)
Chown Qemu:qemu wj.qcow2 (permissions to change the image)
Virt-install-n kvm_1-r 2048--disk./liwei01.qcow2,format=qcow2,size=40--network bridge=br0--os-type=linux--os-vari Ant= ' rhel5 '--cdrom/home/iso/centos-7.0-1406-x86_64-dvd.iso--vnc--vncport=5910--vnclisten=0.0.0.0
It's already installed in the KVM system.
Linux View install system command line Virch list--all
The command line to shut down the system is Virsh shutdown
The command line to open the system is Virsh start
This article is from the "Wenjia.hao" blog, make sure to keep this source http://wenjia111.blog.51cto.com/13058301/1975661
Linux Installation KVM