To use the REDHAT7 server as a virtualized host, you need to install the KVM service to create the virtual machine, and to bridge the network adapter to enable the virtual machine to communicate with the external network. This article describes the installation and bridging configuration of KVM.
The original source of this article: Jiangjianrong Technical Blog http://jiangjianlong.blog.51cto.com/3735273/1791666
Installing KVM
First we install the KVM via Yum, and the virtualization host listed in theyum grouplist command is the component we need
650) this.width=650; "title=" 01.png "style=" Float:none; "alt=" wkiol1dqb0cdqm_zaabol5kwghw352.png "src=" http:/ S5.51cto.com/wyfs02/m02/83/0f/wkiol1dqb0cdqm_zaabol5kwghw352.png "/>
Install Virtualization Host:yum Groupinstll "Virtualization Host"
To see if the required packages are installed, you can see that both the QEMU-KVM and Libvirt packages have been installed.
650) this.width=650; "title=" 02.png "style=" Float:none; "alt=" wkiom1dqb0dwzg8kaaagulou_c8988.png "src=" http:/ S5.51cto.com/wyfs02/m02/83/10/wkiom1dqb0dwzg8kaaagulou_c8988.png "/>
Also manually install additional required packages Virt-manager:yum install virt-manager
650) this.width=650; "title=" 03.png "style=" Float:none; "alt=" wkiol1dqb0gjcxspaaa5psgtyx0162.png "src=" http:/ S3.51cto.com/wyfs02/m00/83/0f/wkiol1dqb0gjcxspaaa5psgtyx0162.png "/>
Install additional required packages manually Virt-install:yum install virt-install
650) this.width=650; "title=" 04.png "style=" Float:none; "alt=" wkiom1dqb0hg4wjjaaapp0xojr8638.png "src=" http:/ S3.51cto.com/wyfs02/m02/83/10/wkiom1dqb0hg4wjjaaapp0xojr8638.png "/>
Open the graphical management interface, create a new virtual machine, follow the wizard step by step to complete the virtual machine creation
650) this.width=650; "title=" 05.png "style=" Float:none; "alt=" wkiom1dqb0htag7baaa1zt98em8172.png "src=" http:/ S3.51cto.com/wyfs02/m00/83/10/wkiom1dqb0htag7baaa1zt98em8172.png "/>
A virtual machine has been created and the operating system installation process is slightly.
650) this.width=650; "title=" 06.png "style=" Float:none; "alt=" wkiol1dqb0kbhum3aaa_kqhjx1a909.png "src=" http:/ S5.51cto.com/wyfs02/m01/83/0f/wkiol1dqb0kbhum3aaa_kqhjx1a909.png "/>
To configure bridging:
First check the network card binding situation, is two network cards to do an adaptive load-balanced binding, on this basis to configure the bridge
650) this.width=650; "title=" Bridging 01.png "style=" Float:none; "alt=" wkiol1dqcderw_ieaacc36nubrk359.png "src=" http:/ S1.51cto.com/wyfs02/m01/83/0f/wkiol1dqcderw_ieaacc36nubrk359.png "/>
Edit the bond0 configuration file, comment out the IP address and mask, Gator one line: bridge=brbond0
650) this.width=650; "title=" Bridging 02.png "style=" Float:none; "alt=" wkiol1dqcdftexh4aaazs7sxnfi004.png "src=" http:/ S5.51cto.com/wyfs02/m01/83/0f/wkiol1dqcdftexh4aaazs7sxnfi004.png "/>
Create the Brbond0 configuration file and fill in the following:
650) this.width=650; "title=" Bridging 03.png "style=" Float:none; "alt=" wkiom1dqcdfyvjwzaaawyhhcw5g999.png "src=" http:/ S5.51cto.com/wyfs02/m01/83/10/wkiom1dqcdfyvjwzaaawyhhcw5g999.png "/>
Restart Web service:systemctl restart Network
View NIC information: IP addr, you can see that the bridging brond0 is in effect
650) this.width=650; "Width=" 988 "height=" 413 "title=" Bridging 04.png "style=" Width:745px;height:293px;float:none; "alt=" Wkiom1dqcdjgmimbaaexndnyadw368.png "src=" Http://s5.51cto.com/wyfs02/M01/83/10/wKiom1dqCdjgmimbAAExnDnYAdw368.png "/>
View Bridge:Brctl show, Bridge is configured
650) this.width=650; "title=" Bridging 05.png "style=" Float:none; "alt=" wkiol1dqcdjt9z0laaafbsh0y8s485.png "src=" http:/ S5.51cto.com/wyfs02/m02/83/0f/wkiol1dqcdjt9z0laaafbsh0y8s485.png "/>
Connect the virtual machine's NIC to the bridge, note that unlike the Redhat 6, which can be directly selected for bridging, REDHAT7 must select Specify shared device name, and then manually fill in Bridge name for the bridged brbond0 configured above, The virtual machine then configures the IP address of the same network segment as the host, and it can communicate with the external
650) this.width=650; "title=" 07.png "alt=" Wkiom1dqc12jgwl7aadm-oxz9si436.png "src=" http://s5.51cto.com/wyfs02/M01/ 83/10/wkiom1dqc12jgwl7aadm-oxz9si436.png "/>
This article is from the "Jiangjianrong Technology blog" blog, make sure to keep this source http://jiangjianlong.blog.51cto.com/3735273/1791666
RedHat 7 Configuring KVM and bridging