RedhatKVM Network Configuration

Source: Internet
Author: User
Note: kvm must be configured on the basis of RedHat6later and requires at least 4 GB of memory. The cpu supports virtualization, 25 GB disk space, and 1 Gbps network interface 1: Modify file 1: copy the file (because my public ip is set on eth2) # cp/etc/sysconfig/network-scripts/ifcfg-eth2/etc/sysconfig/network-scripts/ifcfg-br02: Repair

Note: kvm must be configured on the basis of RedHat 6 later and requires at least 4 GB of memory. The cpu supports virtualization, 25 GB disk space, and 1 Gbps network interfaces.

I. modifying files

1: copy the file (because my public ip address is set on eth2)

# Cp/etc/sysconfig/network-scripts/ifcfg-eth2/etc/sysconfig/network-scripts/ifcfg-br0


2: modifying ifcfg-eth2 files

# Vi/etc/sysconfig/network-scripts/ifcfg-eth2

DEVICE = "eth2"
NM_CONTROLLED = "no"
BOOTPROTO = static
HWADDR = "00: 22: 19: B8: D9: FE"
IPV6INIT = "yes"
MTU = "1500"
ONBOOT = yes
TYPE = "Ethernet"
NAME = "System eth2"
BRIDGE = "br0"
UUID = "f2f96e91-9957-43bf-97b7-0cd67d8bb1e2"

Remove the IP address and netmask. Change NM_controlled to no, indicating that the network does not need to be managed by networkmanager. Use network Management to add the red part.

3: Modify the ifcfg-br0 File

# Vi/etc/sysconfig/network-scripts/ifcfg-br0

DEVICE = "br0"
BOOTPROTO = static
IPV6INIT = "yes"
MTU = "1500"
NM_CONTROLLED = "no"
ONBOOT = yes
TYPE = "Bridge"
IPADDR = 10.200.117.95
GATEWAY = 10.200.117.1
NETMASK = 255.255.255.0
DNS1 = 10.200.117.18

Modify or add the red part

Ii. Restart the service

Because we changed network management to network (networkmanager management is used by default), now we restart the network service, service network restart.

Iii. Confirm Configuration

Ifconfig & brctl show

[Root @ cdsh2950b ~] # Brctl show
Bridge name bridge idSTP enabledinterfaces
Br0 8000.002219b8d9fenoeth2
Vnet0
Virbr0 8000.525400c835f0yesvirbr0-nic

4. Create a virtual machine through virt-manager. I installed the system through PXE on the network, so remember the mac address and register it on jumpstart auto install.

Related reading:

RHEL6 KVM virtualization creates bridging NICs-bridge http://www.linuxidc.com/Linux/2013-08/88517.htm

RedHat Linux KVM Virtual Machine bridging http://www.linuxidc.com/Linux/2013-02/79934.htm

KVM installation/bridging settings/virtual machine creation and running http://www.linuxidc.com/Linux/2012-12/76883.htm under CentOS 5.6

The/bin/qemu-KVM problem cannot be found while installing kvm Virtual Machine with libvirt in Ubuntu

For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10

Related Article

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.