This article describes the basic installation of KVM.
No understanding or contact with KVM friends, in the beginning may be more confused, do not know how to learn, I will share under my learning process.
First, host
"Host" is the machine where you install the KVM, is the entity of the machine, not the virtual machine, I would like to do in the VMware experiment, but the truth tells me this is not realistic, since the virtual machine does not work, in the real machine installed, I was installed Win7 system I5 machine used for the experiment, replaced the KVM need system
Second, the system
KVM can only be done under the x86_64 bit system, rhel5.3 above 64 bits are supported, I use Fedora x86_64
Click here to download a variety of Linux systems
Third, the basic installation
1. Install Virtual Machine Management Kit
Yum Install libvirt-*
Note: When the Fedora System is installed, the Yum source is available, and the above command can be installed directly.
2. How to Deploy KVM
There are three ways to deploy KVM, respectively:
Virt-manager how graphics are installed
How the Virt-install command is installed
How module templates are installed
3, the Virt-install command installation mode
Format: Virt-install parameter
Parameters:
-N NAME or--name=name # #客户端事件名称
-R MEMORY or--ram=memory # #以 MB allocated memory for the client
-U uuid or--uuid=uuid # #客户端 UUID
Number of--vcpus=vcpus # #配置您的客户端的 VCPU
-V or--HVM # #客户端应该是一个全虚拟客户端 (also not added, default is)
--accelerate # #使用内核加速功能
-C CDROM or--cdrom=cdrom # #光驱安装介质
-L LOCATION or--location=location installation source
For example: Nfs:host:/pat
--PXE # #使用 PXE protocol booting from the network
-F File_path or--file=file_path # #作为磁盘映像使用的文件
-S DiskSize or--file-size=disksize #磁盘映像大小, in GB
--VNC # #用 VNC for graphics support
–noreboot # #安装完成是禁用自启动
such as command installation rhel5.5
Virt-install–n rhel5.5.1–f/data/rhel5.5.1/root.img–r 512–v–s 10–cdrom=/iso/rhel5.5-x86_64-dvd.iso–vnc
Explanation: Create a new virtual machine, the name is RHEL5.5.1,IMG Mirror storage location for/data/rhel5.5.1 (need to be built in advance), memory is 512M, hard disk size is 10G, use/iso/rhel5.5-x86_64- Dvd.iso Install, support VNC