Operation example of kvm
This article mainly introduces the operation of kvm examples, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
1.kvm architecture consists of two parts: kvm module and qemu-kvmkvm.ko, kvm_intel.ko, kvm_amd.koqemu-kvm: management tools for modifying qemu code and creating virtual machines / kvm:vCPU and vMEMqemu-kvm:io device2 provided by kvm under dev/kvm:linux system. Set up kvm to confirm that the hardware server supports cat / proc/cpuinfo | grep vmxyum source configuration wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repowget-O / etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo install yum clean all & yum makecacheyum install-y qemu-kvm qemu-img virt-manager virt-install virt-viewer libguest* libvirt*yum groupinstall-y virtualization-client virtualization-platform virtualization-tools3. Create vm command virt-install-- name vm1-- ram=2048-- vcpus=2-- disk path=/vm-images/vm1.qcow2,size=20-- cdrom / opt/CentOS-7-X86_64-DVD-1511.iso4. Install the linux interface and vncyum-y groupinstall "X Window System" yum-y groupinstall "GNOME" yum install-y tigervnc-server.x86_64vncserver: 15. Create br0cd / etc/sysconfig/network-scriptsvi ifcfg-br0DEVICE= "br0" ONBOOT=yesTYPE= "Bridge" BOOTPROTO=noneIPADDR=192.168.18.239NETMASK=255.255.255.0GATEWAY=192.168.18.1 to bridge the physical network card to br0vi ifcfg-eth0BRIDGE=br0 and comment out IPADDR NETMASK GATEWAY DNS1service network restartbrctl show. Thank you for reading this article carefully. I hope the article "Operation examples of kvm" shared by the editor will be helpful to you. At the same time, I also hope that you will support and follow the industry information channel. More related knowledge is waiting for you to learn!