Kvm bridget Configuration

Source: Internet
Author: User

In the past, the use of qemu-kvm to run virtual machines in the kvm bridget configuration basically adopts the nat mode. virtual machines can access the external network and basically meet their own requirements, but cannot access the Virtual Machine externally. Now, because we need to deploy the environment on the Virtual Machine for Virtual Network Management of openstack, we need the correct access between virtual machines and the ip address for external access.
Configuration hardware in www.2cto.com environment: cpu dual-core four-thread, memory 8GOS: ArchLinux 64 Note: the NetworkManager service may make the bridge unable to run normally. Disable the NetworkManager service before configuration, systemctl disable NetworkManager; systemctl stop NetworkManager manually configure the bridge www.2cto.com to install bridge-utils: pacman install bridge-utils first, and modify the ip address of the eth0 NIC: ifconfig eth0 0.0.0.0 (some system NICs may be named differently, such as em0 in pci operations) Nic binding: brctl addbr br0; brctl addif eth0; ifconfig br0 10.68.7.x up; /etc/qemu-ifup: Add tap0 to the bridge/etc/qemu-ifdown: delete tap0 from the bridge. In some cases, you need to modify your route: route add default gw 10.68.7.x modify resolv. conf file (other systems may be resolv) Start qemu-system-x86_64 -- enable-kvm-net nic-net tap, ifname = tap0-vnc: 1-m 2048-smp 2-hda fedora. img uses the configuration file to configure the bridge to install bridge-utils: pacman install bridge-utils to modify the NIC configuration file/etc/network/bridge (Other Nic managers may be under/etc/sysconfig/network-scripts)/etc/qemu-ifup: add tap0 to bridge/etc/qemu-ifdown: Remove tap0 from bridge startup qemu-system-x86_64 -- enable-kvm-net nic-net tap, ifname = tap0-vnc: 1-m 2048-smp 2-hda fedora. img-configured ifconfig-configured route

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.