Open vSwitch インストール
Open vSwitch 1.3 をインストールするまで
面倒なのでコピペ用にコマンド貼っとく
CentOS 6.1 でインスコ時に仮想化グループのパッケージのみ入れた状態
# prepare required packages yum install gcc make autoconf rpm-build redhat-rpm-config kernel-devel openssl-devel # version 2.64 autoconf is required ... wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.64.tar.gz tar -xzf ./autoconf-2.64.tar.gz pushd autoconf-2.64 ./configure make make install popd # get open vswitch src wget http://openvswitch.org/releases/openvswitch-1.3.0.tar.gz tar -xzf openvswitch-1.3.0.tar.gz pushd openvswitch-1.3.0 # should do below # git clone git://openvswitch.org/openvswitch # pushd openvswitch # build ./boot.sh ./configure --with-linux=/lib/modules/`uname -r`/build make dist # make rpm packages rpmdir=$HOME/rpmbuild if [ ! -d $rpmdir/SOURCES ];then mkdir -p $rpmdir/SOURCES fi mv ./openvswitch-*.tar.gz $rpmdir/SOURCES/ rpmbuild -bb --target=x86_64 rhel/openvswitch-kmod-rhel6.spec rpmbuild -bb --target=x86_64 rhel/openvswitch.spec cd $rpmdir/RPMS/x86_64/ rpm -ivh ./kmod-openvswitch-*.x86_64.rpm rpm -ivh ./openvswitch-*.x86_64.rpm rpm -ivh ./openvswitch-debuginfo-*.x86_64.rpm reboot # bridge compatible due to libvirt attachment modprobe -a brcompat_mod ovs-brcompatd --pidfile --detach
INSTALL.Linux では構成DBのスキーマ初期化したり、
内容初期化してたりするけど、
# TODO: insert above bridge compatible mode command to init.d/openvswitch