Virtualization-KVM-the latest RedHat virtualization technology

Source: Internet
Author: User
This section describes how to install and configure KVM. KVM is the latest Virtualization Technology launched in the red hat 5.4 release. It is strictly said to be a fully virtualized product, VMware and vpc, virtualbox and so on are all completely virtualized products, while xen is a semi-virtualized product. In terms of performance, semi-virtualization is much faster than full virtualization, but xen has a disadvantage, it is a heavyweight virtual machine, with a lot of kernel source code modified. Its guest machine must understand the xen-based hardware, that is to say, the xen can only run the system after the Red Hat 5,

This section describes how to install and configure KVM. KVM is the latest Virtualization Technology launched in the red hat 5.4 release. It is strictly said to be a fully virtualized product, VMware and vpc, virtualbox and so on are all completely virtualized products, while xen is a semi-virtualized product. In terms of performance, semi-virtualization is much faster than full virtualization, but xen has a disadvantage, it is a heavyweight virtual machine, with a lot of kernel source code modified. Its guest machine must understand the xen-based hardware, that is to say, the xen can only run the system after the Red Hat 5, later, RedHat modified a version in Release 4 to support xen. In addition, the full virtualization of Xen requires the VT technology of the hardware CPU, which is called vmx on the inter cpu, the AMD cpu is called svm. The full virtualization of xen can be said to be a failed product, and its operation efficiency cannot even catch up with VMware, and its operation interface is quite unfriendly, however, this does not deny the dominant position of xen in the semi-virtualization world. kvm is short for the kernel virtual module. In fact, kvm draws on the xen semi-Virtualization Many achievements: Although kvm is a fully virtualized product, it supports semi-virtualized virtio on key hard disks and NICs, which greatly improves performance. kvm is a representative of lightweight virtualization, hardware vt technology is also required. In addition, xen and kvm both use the virt-manager tool on the operating interface. The difference is not great, however, you cannot install and run Xen and KVM on the same machine. In addition, kvm can only run on the 5.4 64-bit Red Hat Enterprise Edition system, and selinux must be disabled...

1: Use the yum library to install the software required by kvm. If you enter the installation serial number when installing the system, you can check kvm and virtualization to install the software.

[Root @ jsb-ylw-5052 ~] # Yum-y install kvm-* etherboot-roms-kvm.x86_64 virt -*

2: Start the libmongod service and ensure that it will be automatically started next time.

[Root @ jsb-ylw-5052 ~] # Service libmongod start

Starting libmongod daemon: [OK]

[Root @ jsb-ylw-5052 ~] # Chkconfig libmongod on

3: Generation of the Bridge. After xen is installed, the bridge network virbr0 will be automatically created. kvm seems unfriendly at this point.

[Root @ jsb-ylw-5052 ~] # Cd/etc/sysconfig/network-scripts/

[Root @ jsb-ylw-5052 network-scripts] # cp ifcfg-eth0 ifcfg-br0

[Root @ jsb-ylw-5052 network-scripts] # cat ifcfg-eth0

# NVidia Corporation MCP77 Ethernet

DEVICE = eth0

BOOTPROTO = static

HWADDR = 90: E6: BA: 70: B2: 28

IPADDR = 192.168.50.24

NETMASK = 255.255.255.0

ONBOOT = yes

BRIDGE = br0 // link eth0 to br0

[Root @ jsb-ylw-5052 network-scripts] # cat ifcfg-br0

# NVidia Corporation MCP77 Ethernet

DEVICE = br0

BOOTPROTO = static

HWADDR = 90: E6: BA: 70: B2: 28

IPADDR = 192.168.50.24

NETMASK = 255.255.255.0

ONBOOT = yes

TYPE = Bridge // br0 is a Bridge

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.