KVM Series notes (1)

Source: Internet
Author: User

Hello everyone, from today to write a KVM related notes, on the one hand is to summarize, and second as a lecturer, I also hope to write some notes for your reference, limited capacity, a lot of advice.

KVM series of notes Ignore most of the principle of knowledge, directly from the experimental aspects, if you want to know more about KVM or virtualization-related theoretical knowledge, you can refer to the Red Hat official website or other forum experts in the explanation, here is not more time, I all the text and all in their own notebook made out, Just write out the principle, so may update will be a bit slow, forgive me, if there is a problem, can leave a message or Q I (83193100).

No more nonsense, KVM Series notes (1) Start with the installation, the lab environment is VMWORKSTATION11, the Redhat version of the OS is installed, and remember that because we are building VMS inside the VM, VMS must turn on virtualization support

650) this.width=650; "Width=" 272 "height=" "title=" QQ picture 20141229122428.jpg "style=" WIDTH:351PX;HEIGHT:77PX; "src=" Http://s3.51cto.com/wyfs02/M00/57/A2/wKiom1Sg1-agXWH4AACzULzujz8287.jpg "alt=" Wkiom1sg1-agxwh4aaczulzujz8287.jpg "/>

After entering the newly installed Redhat system (the process of installing the system is not much written), open the command line terminal to see if the CPU supports the virtualization grep "VMX"/proc/cpuinfo if this tag is representative of the virtualization function, otherwise it will not play.

Before installing KVM, we first make a bridge network card, this bridge network card is used for the GUESTVM machine can communicate with the physical machine host directly, about the KVM network mode we have to write a separate article in detail under the understanding.

650) this.width=650; "Width=" 629 "height=" "title=" QQ picture 20141229124443.jpg "style=" width:280px;height:33px; "src=" Http://s3.51cto.com/wyfs02/M02/57/A2/wKiom1Sg3BrC3CHHAACF6DeA0JE743.jpg "alt=" Wkiom1sg3brc3chhaacf6dea0je743.jpg "/>//Copy a BR0 profile

Vim Ifcfg-br0

650) this.width=650; "Width=" 418 "height=" 153 "title=" QQ picture 20141229124730.jpg "style=" width:277px;height:98px; "src=" Http://s3.51cto.com/wyfs02/M01/57/9F/wKioL1Sg3UiiuYX4AADoXIKy1kE342.jpg "alt=" Wkiol1sg3uiiuyx4aadoxiky1ke342.jpg "/>//don't forget to change device to Br0,type to bridge (uppercase B)

Vim Ifcfg-eth0

650) this.width=650; "Width=" 408 "height=" 137 "title=" QQ picture 20141229124947.jpg "style=" WIDTH:258PX;HEIGHT:96PX; "src=" Http://s3.51cto.com/wyfs02/M01/57/A2/wKiom1Sg3RmTzg4VAADMKWEBFm4539.jpg "alt=" Wkiom1sg3rmtzg4vaadmkwebfm4539.jpg "/>//add a row bridge=br0

Save exit restart NIC, if everyone fails to start, the NetworkManager service should be stopped

650) this.width=650; "Width=" 652 "height=" 186 "title=" QQ picture 20141229125120.png "style=" WIDTH:268PX;HEIGHT:109PX; "src= "Http://s3.51cto.com/wyfs02/M01/57/A2/wKiom1Sg3XbzAB2lAAIP7WJnNZM773.jpg" alt= " Wkiom1sg3xbzab2laaip7wjnnzm773.jpg "/>

By restarting the network card service, ifconfig see that Br0 has an IP on it ok.

Installing the KVM-related components below starts with the need for a Yum source, which is easy to install with Yum.

Yum install-y KVM Libvirt Virt-manager

Since I have installed the Virt-manager management tool for this graphical interface, I can directly perform the Virt-manager command

Image management tool, but will give an error.

650) this.width=650; "Width=" 427 "height=" 373 "title=" QQ picture 20141229130818.jpg "style=" width:278px;height:270px; "src= "Http://s3.51cto.com/wyfs02/M02/57/A2/wKiom1Sg4XOzQ7y9AAE8ukqB0yM725.jpg" alt= " Wkiom1sg4xozq7y9aae8ukqb0ym725.jpg "/>//error prompt is obvious, there is no expectation libvirt daemon

Service LIBVRITD Restart

Chkconfig LIBVRITD on can solve this problem.

Here, KVM installs successfully, and the next article will start to show you how to install a new guest OS on KVM.

KVM Series notes (1)

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.