From owner-freebsd-questions@freebsd.org Thu Aug 13 07:44:54 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B9C9F99FD0C for ; Thu, 13 Aug 2015 07:44:54 +0000 (UTC) (envelope-from kevlo@ns.kevlo.org) Received: from ns.kevlo.org (220-135-115-6.HINET-IP.hinet.net [220.135.115.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ns.kevlo.org", Issuer "ns.kevlo.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 17DA2C78 for ; Thu, 13 Aug 2015 07:44:53 +0000 (UTC) (envelope-from kevlo@ns.kevlo.org) Received: from ns.kevlo.org (localhost [127.0.0.1]) by ns.kevlo.org (8.14.9/8.14.9) with ESMTP id t7D7iBbp097500 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 13 Aug 2015 15:44:11 +0800 (CST) (envelope-from kevlo@ns.kevlo.org) Received: (from kevlo@localhost) by ns.kevlo.org (8.14.9/8.14.9/Submit) id t7D7iAur097490; Thu, 13 Aug 2015 15:44:10 +0800 (CST) (envelope-from kevlo) Date: Thu, 13 Aug 2015 15:44:09 +0800 From: Kevin Lo To: "1214781328@qq.com" <1214781328@qq.com> Cc: freebsd-questions , discuss , Jesse Gross Subject: Re: [ovs-discuss] Questions about Openvswitch on FreeBSD 10.1 Release Message-ID: <20150813074409.GA97165@ns.kevlo.org> References: <201508121416161460122@qq.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Aug 2015 07:44:54 -0000 On Wed, Aug 12, 2015 at 09:36:53AM -0700, Jesse Gross wrote: > > On Tue, Aug 11, 2015 at 11:16 PM, 1214781328@qq.com <1214781328@qq.com> wrote: > > Hello: > > Sorry for bothering you, but I got a strange bug while trying to build a GRE > > tunnel using Openvswitch between 2 virtual machines based on KVM. The OS of > > 2 virtual machines are FreeBSD 10.1 Release, and the host OS is CentOS 6.3, > > Openvswitch version 2.3.2 on virtual machines. I’ll describe my bug in the > > following paragraphs. > > > > INSTALLATION: I checked all the optional modules while installing FreeBSD, > > and installed openvswitch 2.3.2 by typing “pkg install openvswitch” into > > FreeBSD’s console, then “pkg install python” because the console said some > > additional modules needs to be installed (2KB). > > > > CONFIGURATION: > > 1) “rm -f /var/db/openvswitch/conf.db” > > 2) “ovsdb-tool create /var/db/openvswitch/conf.db > > /usr/local/share/openvswitch/vswitch.ovsschema” > > 3) “ovsdb-server --remote=punix:/var/run/openvswitch/db.sock > > --remote=db.Open_vSwitch,manager_options --pidfile --detach” > > 4) “ovs-vsctl --no-wait init” > > 5) “ova-vswichd --pidfile --detach —mlockall > > NO ERROR during the procedures above. > > > > THEN COMES THE BUG: When I try to add a bridge “ovs-vsctl add-br br0", it > > said: "ovs-vsctl: Error detected while setting up 'br0'. See ovs-vswitchd > > log for details.” Then i tried “ovs-vswitchd log”: > > > > 2015-08-11T05:48:55Z|00001|reconnect|INFO|log: connecting... > > 2015-08-11T05:48:55Z|00002|reconnect|INFO|log: connection attempt failed > > (Address family not supported by protocol family) > > 2015-08-11T05:48:55Z|00003|reconnect|INFO|log: waiting 1 seconds before > > reconnect > > Tunnels, including GRE, are currently only supported on Linux. Besides, you should use service command for starting ovs on FreeBSD rather than starting ovs manually: service ovsdb_server onestart service ovs_vswitchd onestart Kevin