http://www.chenshake.com/install-on-ubuntu-12-04-open-vswitch/
http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/hypervisor/kvm.html#install-and-configure-the-agent
tip:
添加網橋
使用openvswitch建立網橋,kvm使用,命令如下:
建立網橋br
#ovs-vsctl add-br br0
把eth0(物理機上網的網卡)添加到br0
#ovs-vsctl add-port br0 eth0
如果不出意外的話現在機器就不能上網了,可以按照以下方法解決
刪除eth0的配置
#ifconfig eth0 0
為br0分配ip
#dhclient br0
因為我使用的是dhcp獲取ip的,所以執行了此命令,如果你的ip是自己手動配置的,請把eth0的配置寫到br0上。