Redhat KVM Network Configuration

Source: Internet
Author: User

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.

RHEL6 KVM virtualization creates a bridge NIC-Bridge

RedHat Linux KVM Virtual Machine bridging

Installation/bridging settings of KVM in CentOS 5.6/virtual machine creation and operation

The/bin/qemu-KVM problem cannot be found when the kvm virtual machine is installed with libvirt In Ubuntu.

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.