On Fri, Aug 19, 2016 at 10:27 PM, Lance Richardson <lrich...@redhat.com>
wrote:

> > From: "Ben Pfaff" <b...@ovn.org>
> > To: "Martin Segeth" <m.seg...@gmail.com>
> > Cc: dev@openvswitch.org
> > Sent: Friday, August 19, 2016 3:52:05 PM
> > Subject: Re: [ovs-dev] Mac OS X?
> >
> > On Fri, Aug 19, 2016 at 09:44:50PM +0200, Martin Segeth wrote:
> > > I was trying to build OVS 2.5.0 on a Mac but get a few a errors. While
> > > researching on this topic I came across a previous thread on this dev
> > > mailing list where this was already discussed without having found a
> > > solution yet.
> > >
> > > Has anyone meanwhile managed to get it compiled on Mac OS X? If not, I
> > > guess it just does not work and would require some development work to
> get
> > > it ported, wouldn't it?
> >
> > I think that someone ported master to Mac OS.  Try building that.
>
> Travis does OS X builds as part of OVS CI for the master and 2.6 branches.
> See https://travis-ci.org/openvswitch/ovs/builds for examples. The
> necessary
> development tools can be installed for OS X using "brew".
>
> The last time I tried, "make check" mostly passed for OS X, failures were
> generally in test cases using netdev-dummy.
>

I managed to compile the master branch as suggested by Ben. The missing
development tools like autoconf and automake could indeed be installed with
brew.

Though, I am unable to create a bridge interface. The userspace
installation readme says the datapath type is to be changed to netdev as
opposed to system and FreeBSD/NetBSD requires the tap driver built into the
kernel or loaded as a module.

I found tuntaposx which is a tap driver for OS X and could load this module
successfully.

mbpro:~ root# kextstat | grep tun

  136    0 0xffffff7f80a2b000 0x7000     0x7000     net.sf.tuntaposx.tap
(1.0) 23FDB715-3D0D-3A26-ACBA-E3794C231CB7 <7 5 4 1>

  137    0 0xffffff7f80a21000 0x7000     0x7000     net.sf.tuntaposx.tun
(1.0) 95DD963D-E23D-3B0F-8DE8-A4D2F6BFA5CC <7 5 4 1>

When I follow the instructions in the readme to create a bridge interface I
get the below error messages.

/var/log/system.log:Aug 20 09:03:28 mbpro ovs-vsctl[2414]:
ovs|00001|vsctl|INFO|Called as ovs-vsctl add-br br0

/var/log/system.log:Aug 20 09:03:28 mbpro ovs-vswitchd[699]:
ovs|00011|ofproto|WARN|unknown datapath type system

/var/log/system.log:Aug 20 09:03:28 mbpro ovs-vswitchd[699]:
ovs|00012|ofproto|WARN|unknown datapath type system

/var/log/system.log:Aug 20 09:03:28 mbpro ovs-vswitchd[699]:
ovs|00013|ofproto|WARN|could not create datapath br0 of unknown type system

/var/log/system.log:Aug 20 09:03:28 mbpro ovs-vswitchd[699]:
ovs|00014|bridge|ERR|failed to create bridge br0: Address family not
supported by protocol family

/var/log/system.log:Aug 20 09:03:39 mbpro ovs-vsctl[2417]:
ovs|00001|vsctl|INFO|Called as ovs-vsctl set bridge br0 datapath_type=netdev

/var/log/system.log:Aug 20 09:03:39 mbpro ovs-vswitchd[699]:
ovs|00015|netdev|WARN|could not create netdev ovs-netdev of unknown type tap

/var/log/system.log:Aug 20 09:03:39 mbpro ovs-vswitchd[699]:
ovs|00016|dpif|WARN|failed to create datapath ovs-netdev: Address family
not supported by protocol family

/var/log/system.log:Aug 20 09:03:39 mbpro ovs-vswitchd[699]:
ovs|00017|ofproto_dpif|ERR|failed to open datapath of type netdev: Address
family not supported by protocol family

/var/log/system.log:Aug 20 09:03:39 mbpro ovs-vswitchd[699]:
ovs|00018|ofproto|ERR|failed to open datapath br0: Address family not
supported by protocol family

/var/log/system.log:Aug 20 09:03:39 mbpro ovs-vswitchd[699]:
ovs|00019|bridge|ERR|failed to create bridge br0: Address family not
supported by protocol family
The ovs-netdev does not seem to know the interface type "tap" according to
the error message.

Was that part not yet ported to OS X?
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to