Create and manage KVM virtual machines in CentOS

Source: Internet
Author: User
Nowadays, virtualization is a hot topic on the internet. most Internet companies use open-source virtual machine software, KVM or XEN, which are supported in linux, I have been using XEN in my company, and it has been stable since I first used it. of course, this has something to do with the business volume. KVM is a hot topic. many of the virtual machine software that is used by companies that are preparing to engage in cloud computing or are engaged in cloud computing are kvm. Next I will share with you the creation and management of kvm Virtual Machines. when your company is ready to engage in virtualization, virtualization is now a hot topic on the Internet, the open-source virtual machine software, KVM or XEN, used by most internet companies, is supported in linux. I used to use XEN in my original company, it has been relatively stable since its initial use. of course, this has a certain relationship with the business volume. KVM is a hot topic. many of the virtual machine software that is used by companies that are preparing to engage in cloud computing or are engaged in cloud computing are kvm. Next we will share with you the creation and management of kvm Virtual Machines. when your company is preparing for virtualization, you may wish to use this as an entry-level tutorial.

I, Hardware environment
Standard IBM 3550 servers

II, Software Environment
Centos6.2 2.6.32-220. el6.x86 _ 64
Hostname ip OS
Kvm 192.168.1.112/24 centos6.2 _ x64
III, Install kvm
# Install the kvm kernel
# Install virt management tools

IV, Create a virtual disk

V, Install virtual machine
# Preparations
1. copy the system iso image to the/export/tools/directory.
2. mkdir/data_mnt/
3. mount-o loop/export/tools/system Image/data_mnt/
4. vi/etc/export
5./data_mnt * (ro) # add to nfs configuration file
6./etc/init. d/rpcbind start &/etc/init. d/nfs restart
7. showmount-e localhost
# Start Installation
VI, Use virsh to manage virtual machines
# Switch host
# Add or delete a VM
# View again


The creation and management of KVM virtual machine instances are complete.

VII. related extensions
Kvm implementation mechanism
Create a KVM host storage pool

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.