ubuntu add bridge network with libvirt
来源:互联网 发布:淘宝4钻店铺值多少钱 编辑:程序博客网 时间:2024/06/02 00:13
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Host_Configuration_and_Guest_Installation_Guide/sect-Virtualization_Host_Configuration_and_Guest_Installation_Guide-Network_Configuration-Network_Configuration-Bridged_networking_with_libvirt.html
Bridged networking (also known as physical device sharing) is used to dedicate a physical device to a virtual machine. Bridging is often used for more advanced setups and on servers with multiple network interfaces.
To create a bridge (
br0
) based on the eth0
interface, execute the following command on the host:# virsh iface-bridge eth0 br0
Important
NetworkManager does not support bridging. NetworkManager must be disabled to use networking with the network scripts (located in the
/etc/sysconfig/network-scripts/
directory).# chkconfig NetworkManager off# chkconfig network on# service NetworkManager stop# service network start
If you do not want to disable NetworkManager entirely, add "
NM_CONTROLLED=no
" to the ifcfg-*
network script being used for the bridge.if there is error:
libvirtError: this function is not supported by the connection driver: virInterfaceDefineXML
That's because you've libvirt compiled with udev rather than netcf. The netcf is the only one backend that knows how to create a new interface.Install netcf and rebuild libvirt and you should be able to create interfaces via libvirt.
https://www.redhat.com/archives/libvirt-users/2014-March/msg00091.html
0 0
- ubuntu add bridge network with libvirt
- ubuntu add default network(nat) to libvirt
- ubuntu cannot access network using bridge to host windwos
- Network Analysis With Wireshark On Ubuntu 9.10
- Play with libvirt
- Linux network -- Bridge
- libvirt kvm 虚拟机上网 – Bridge桥接
- libvirt kvm 虚拟机上网 – Bridge桥接
- ubuntu下编译libvirt
- ubuntu安装libvirt
- ubuntu 14.04安装libvirt
- Ubuntu源码安装libvirt
- Use libvirt with Xen/xVM
- centos install network as bridge
- Xen的network-bridge模式
- QEMU KVM Libvirt手册(9): network
- QEMU KVM Libvirt手册(10):Managing Virtual Machines with libvirt
- Ubuntu下libvirt kvm配置
- Spring ApplicationContext的应用
- 游戏开发学习笔记-3.基本图元绘制
- 黑马程序员——java基础
- LightOJ 1047 - Neighbor House 【DP】
- Leetcode[162]-Find Peak Element
- ubuntu add bridge network with libvirt
- setprecision(int n)等格式函数用法
- 弹性布局
- mysql按照时间段内 每天统计
- ContentProvider
- 大量SYN_RECV,80端号占死(优秀)
- Android Java 程序员必备开发工具
- OpenCV归纳】5 图像处理
- ios-html-get/post的区别,一言以蔽之(MS)CheckST