1.3-KVM Installation Preparation

Source: Internet
Author: User

To do this, we need the CPU support virtualization, some machine support but not in the BIOS, this need to be opened beforehand.


1. VMware installation centos6.6 64 bit (slightly)

Here are a few things to note:

A. Memory to 2g

B. Disk to 50g, or separate disk for storage of virtual machine files

C. The most critical step, when creating a virtual machine, the CPU needs to be configured virtualization (tick virtualization Intel vt-x/ept or Amd-v/rvi (V))


2. Pre-install KVM preparations

A. clear iptables rules

Service iptables stop; Service Iptables Save

B. turn off SELinux

Sed-i ' s/selinux=enforcing/selinux=disabled/'/etc/selinux/config

Setenforce 0


3. Start installing KVM

A. check if your system supports virtualization

Grep-ei ' VMX|SVM '/proc/cpuinfo (or cat/proc/cpuinfo |egrep--color ' VMX|SVM ')

Supported if output content, where Intel CPU support will have VMX,AMD CPU support will have SVM


B. installing a virtualized package with Yum

Yum install-y KVM virt-* libvirt bridge-utils qemu-img

Description

KVM: The package contains a KVM kernel module that provides the KVM hypervisor in the default Linux kernel

Libvirts: Install the Virtual Machine Management tool and use commands such as Virsh to manage and control the virtual machine.

Bridge-utils: Set up network card bridging.

virt-*: Create, clone virtual machine commands, and graphical management tools Virt-manager

QEMU-IMG: Installs the QEMU component, uses the QEMU command to create the disk, and so on.


C. check if the KVM module is loaded

Lsmod |grep--color KVM

The normal should be:

Kvm_intel 55496 3

KVM 337772 1 Kvm_intel


If not, you need to perform

Modprobe Kvm-intel

Try it again without restarting it.


1.3-KVM Installation Preparation

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.