Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 53C10E011C0 for ; Mon, 28 Jan 2013 03:01:28 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.5/8.14.3) with ESMTP id r0SB1QDI003600 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 28 Jan 2013 03:01:26 -0800 (PST) Received: from pek-lpgtest4.wrs.com (128.224.153.84) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.2.328.9; Mon, 28 Jan 2013 03:01:25 -0800 From: To: , Date: Mon, 28 Jan 2013 19:01:23 +0800 Message-ID: <1359370883-2033-1-git-send-email-lei.yang@windriver.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 Subject: [PATCH] openvswtich: start openvswitch at the boot time X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2013 11:01:28 -0000 Content-Type: text/plain From: Lei Yang When I define the bridge, I get below error root@intel_5500_server:~# ovs-vsctl add-br ovsbr0 Jan 25 17:34:07|00002|stream_unix|ERR|/tmp/stream-unix.1487.0: connection to /var/run/openvswitch/db.sock failed: No such file or directory ........ ........ This is becasue openvswitch isn't running,so we'd better start it at the boot time. Since openvswtich depends on openvswtich module,so auto load the kernel module too. Signed-off-by: Lei Yang Tested-by: Lei Yang --- recipes-kernel/linux/linux-yocto_3.4.bbappend | 2 +- .../openvswitch/openvswitch_1.4.3.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes-kernel/linux/linux-yocto_3.4.bbappend b/recipes-kernel/linux/linux-yocto_3.4.bbappend index 5b163ff..918302a 100644 --- a/recipes-kernel/linux/linux-yocto_3.4.bbappend +++ b/recipes-kernel/linux/linux-yocto_3.4.bbappend @@ -5,4 +5,4 @@ SRC_URI += "file://xt-checksum.scc \ file://vswitch.scc \ file://lxc.scc \ " - +module_autoload_openvswitch = "openvswitch" diff --git a/recipes-networking/openvswitch/openvswitch_1.4.3.bb b/recipes-networking/openvswitch/openvswitch_1.4.3.bb index 88f0114..6764073 100644 --- a/recipes-networking/openvswitch/openvswitch_1.4.3.bb +++ b/recipes-networking/openvswitch/openvswitch_1.4.3.bb @@ -7,7 +7,7 @@ LICENSE = "Apache-2" DEPENDS += "bridge-utils openssl python perl" RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid \ - python perl perl-module-strict" + python perl perl-module-strict ${PN}-switch ${PN}-controller" RDEPENDS_${PN}-controller = "${PN} lsb ${PN}-pki" RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen" RDEPENDS_${PN}-pki = "${PN}" -- 1.7.1