[ovs-discuss] Fwd: Assistance with setting-up Open vSwitch

Ali Sydney asydney at k-state.edu
Mon Dec 21 19:57:55 PST 2009


All,
    I got the following details in the "config.log" file for the SSL error:

configure:5712: checking for SSL
configure:5720: $PKG_CONFIG --exists --print-errors "libssl"
Package libssl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libssl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libssl' found


However, the "libssl.pc" file is in the following locations on my system:

/usr/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig/libssl.pc
/usr/lib64/pkgconfig/libssl.pc

And here is my current search path:

#echo $PKG_CONFIG_PATH

/usr/lib64/pkgconfig:/usr/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig

However, I am still receiving the same errors.


Ali


----- Original Message -----
From: reid at nicira.com
To: "Ali Sydney" <asydney at k-state.edu>
Sent: Monday, December 21, 2009 10:13:31 PM GMT -05:00 US/Canada Eastern
Subject: Re: [ovs-discuss] Fwd: Assistance with setting-up Open vSwitch

Hi Sydney,

I also don't use fedora, but in my experiences with debian, I've found
that you can sometimes get the 'Cannot find libssl' error when you are
missing 'pkg-config'.  With lenny I just do 'apt-get install pkg-config',
google tells me there are RPM versions out there as well.  If you check in
config.log after a failed configuration you may be able to see clearer
explanations of what problems you are encountering.

  -Reid

> All,
>     For both openssl and the kernel-headers, I have the same versions
> installed as the ones given by the two links below and I'm still
> getting the same errors. I read somewhere online that the second error
> (the one where the "build" folder does not exist) occurs because I
> have not built my kernel.  Is that possible?
>
> --Sydney
>
>
>
> ----- Original Message -----
> From: "Justin Pettit" <jpettit at nicira.com>
> To: "Ali Sydney" <asydney at k-state.edu>
> Cc: "Openvswitch" <discuss at openvswitch.org>
> Sent: Monday, December 21, 2009 6:13:52 PM GMT -05:00 US/Canada Eastern
> Subject: Re: [ovs-discuss] Assistance with setting-up Open vSwitch
>
> On Dec 21, 2009, at 2:31 PM, Ali Sydney wrote:
>
> ERROR 1.
> checking for SSL... no
> configure: WARNING: Cannot find libssl:
>
> No package 'libssl' found
>
> OpenFlow connections over SSL will not be supported.
>
> ERROR 2.
> checking for /lib/modules/2.6.27.41-170.2.117.fc10.x86_64/build
> directory... no
> configure: error: source dir
> /lib/modules/2.6.27.41-170.2.117.fc10.x86_64/build doesn't exist
>
> Now I know that OpenSSL (The package which contains libssl) is installed
> (because I have checked on the installed version "OpenSSL 0.9.8g 19 Oct
> 2007"). Can you please provide some idea as to why I would be encountering
> this problem? Also, is it a MUST to install a "kernel" based switch to
> obtain MAXIMUM switch performance?
>
> My guess is that you don't have the OpenSSL development package installed
> (this contains headers and libraries that we need to link against).  I
> don't use Fedora, but a quick search indicates that the package is called
> "openssl-devel".  This may be the one you want:
>
>          http://tinyurl.com/yjdyrcy
>
> On the kernel issue, my guess is that you don't have the kernel headers
> installed.  I think this is the package you likely want:
>
>          http://tinyurl.com/yzqh5of
>
> For maximum performance, you do need the kernel-based switch.  If you run
> it from userspace, then every packet has to make the kernel/userspace
> transition.
>
>  4. To bypass these 2 errors, I simply run "./configure," then "make," and
> "make install." Everything seems to have worked fine.
>
>  Right, this bypasses building the kernel module and SSL support...
>
>  5. Now, I have setup a simple configuration file with a bridge named
> "lucia" which has three external ports.
>
>  bridge.lucia.port=eth0
>  bridge.lucia.port=eth1
>  bridge.lucia.port=eth2
>
> If you're not going to use the kernel module, you need to use a slightly
> different configuration.  It's described below:
>
>          http://tinyurl.com/yfu7abw
>
> Note that you need to be working from the master branch in order to have
> userspace support.  The tarballs we've been putting up on the site are
> from the "citrix" branch.  You can get a snapshot of the master branch by
> clicking here:
>
>          http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=snapshot;sf=tgz
>
>  6. Below is the 4 final lines in the output of the command
> "#ovs-vswitchd":
>
>  Dec 21 16:14:46|00514|dpif|WARN|/dev/net/dp255: open failed (No such
> device or address)
>  Dec 21 16:14:46|00515|bridge|ERR|failed to delete datapath dp255: No such
> device or address
>  Dec 21 16:14:46|00516|dpif|WARN|/dev/net/dp0: open failed (No such device
> or address)
>  Dec 21 16:14:46|00517|bridge|ERR|failed to create datapath lucia: No such
> device or address
>
>  How do I define the device/bridge "lucia" and its 3 external ports (eth0,
> eth1, eth2)?
>
>  If you follow those userspace instructions (or build the kernel module),
> you shouldn't see these errors.
>
> --Justin
>
>
>
>
>
>
> ----- Forwarded Message -----
> From: "Ali Sydney" <asydney at k-state.edu>
> To: "Openvswitch" <discuss at openvswitch.org>
> Sent: Monday, December 21, 2009 5:31:57 PM GMT -05:00 US/Canada Eastern
> Subject: Assistance with setting-up Open vSwitch
>
> All,
>    I have just started experimenting with open vswitch and my objective is
> to use a linux host as an openflow switch and manage this switch using
> an openflow controller. However, I am having difficulties building the
> switch. Please take note of the following 6 points and I would
> appreciate it if you could provide responses accordingly:
>
> Note: All points are related to the document "INSTALL.Linux" found in
> openvswitch-0.90.7.tar.gz file.
>
> 1. I am running Fedora 10 (2.6.27.41-170.2.117.fc10.x86_64)
> 2. I am pretty sure that I have all the requirements from the
> "INSTALL.Linux" file
> 3. From the "Building and Installing Open vSwitch for Linux" section I
> attempted to run the following configuration command:
>
> ./configure --with-l26=/lib/modules/`uname -r`/build --enable-ssl=yes
>
> I am assuming that this command allows me to obtain a kernel based switch
> which will be managed by an openflow controller.  However, below is a
> snapshot of the 2 errors obtained:
>
> ERROR 1.
> checking for SSL... no
> configure: WARNING: Cannot find libssl:
>
>    No package 'libssl' found
>
>    OpenFlow connections over SSL will not be supported.
>
> ERROR 2.
> checking for /lib/modules/2.6.27.41-170.2.117.fc10.x86_64/build
> directory... no
> configure: error: source dir
> /lib/modules/2.6.27.41-170.2.117.fc10.x86_64/build doesn't exist
>
> Now I know that OpenSSL (The package which contains libssl) is installed
> (because I have checked on the installed version "OpenSSL 0.9.8g 19 Oct
> 2007"). Can you please provide some idea as to why I would be encountering
> this problem? Also, is it a MUST to install a "kernel" based switch to
> obtain MAXIMUM switch performance?
>
> 4. To bypass these 2 errors, I simply run "./configure," then "make," and
> "make install." Everything seems to have worked fine.
>
> 5. Now, I have setup a simple configuration file with a bridge named
> "lucia" which has three external ports.
>
> bridge.lucia.port=eth0
> bridge.lucia.port=eth1
> bridge.lucia.port=eth2
>
> 6. Below is the 4 final lines in the output of the command
> "#ovs-vswitchd":
>
> Dec 21 16:14:46|00514|dpif|WARN|/dev/net/dp255: open failed (No such
> device or address)
> Dec 21 16:14:46|00515|bridge|ERR|failed to delete datapath dp255: No such
> device or address
> Dec 21 16:14:46|00516|dpif|WARN|/dev/net/dp0: open failed (No such device
> or address)
> Dec 21 16:14:46|00517|bridge|ERR|failed to create datapath lucia: No such
> device or address
>
> How do I define the device/bridge "lucia" and its 3 external ports (eth0,
> eth1, eth2)?
>
> Thanks for your assistance.
>
> Best Regards,
> Sydney
>
>
>
>
>
>
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org
>






More information about the discuss mailing list