OnePK EFT Virtual Machine - supported Linux distributions

Document created by cdnadmin on Jan 25, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: Viktor S. Wold Eide on 07-02-2013 10:08:13 AM
Hi,
Currently, we are using the onePK EFT Virtual Machine and SDK Package. However, the VM image is based on Fedora 14, which reached so-called End Of Life quite some time ago, in late 2011. The mirrors hosting the Fedora 14 software have been moved to archives - http://archives.fedoraproject.org
We have heard that it is possible to use Ubuntu 12.04 instead, which is also a so-called long term support release. A HOWTO for such a setup would be highly appreciated.

From what we understand, only 32 bit Linux VM is supported as of now. Please let us know if and when x86_64 will be supported. Thanks

Subject: RE: OnePK EFT Virtual Machine - supported Linux distributions
Replied by: Karen Cadora on 07-02-2013 11:56:18 AM
Hi, Viktor.

Are you specifically interested in the SDK itself or in IOL as well? 
Thanks,
Shelly

Subject: RE: OnePK EFT Virtual Machine - supported Linux distributions
Replied by: Viktor S. Wold Eide on 08-02-2013 06:27:31 AM
Hi Shelly,

We currently use a Linux virtual machine (VM) with onePK software. This VM also includes virtual IOS on Linux (IOL) routers. As already mentioned, we would like to use a supported and more recent Linux distribution, preferably Ubuntu 12.04. From what we understand, this is possible. Given a HOWTO, we should be able to install and setup the required software.
Best regards
Viktor

Subject: RE: OnePK EFT Virtual Machine - supported Linux distributions
Replied by: Karen Cadora on 08-02-2013 02:15:24 PM
Hi, Viktor.

If you just want to install the SDK (C and Java libraries and documentation) on Ubuntu 12.04 so you can use a development environment there, you should be able to do that following the instructions on page 19 of the Getting Started guide.

IOL, I'm sorry to say, is only currently supported on the Fedora 14 VM.  You can run your applicaton on Ubuntu 12.04 and test against the IOL running on the Fedora 14 VM, using "iol bridge."   I will post instructions on how to do this if that will help you.
We're working on a more modern OS for the GA release of the SDK.

Thanks,
Shelly
 
Thanks,
Shelly

Subject: RE: OnePK EFT Virtual Machine - supported Linux distributions
Replied by: Chris Lauwers on 09-02-2013 07:41:28 PM
I've been able to get the onePK SDK as well as IOL to work on Fedora 18. I use the Java version of the SDK and for a number of reasons need to use Java 7 which isn't supported on Fedora 14.
Unfortunately, Fedora 18 is somewhat sluggish on VMware Player/Workstation (since you need to turn 3D graphics acceleration off just to get it to work). As a result, I tend to do much of the development on Ubuntu 12.04, and then test on Fedora 18. I've been tempted to try to install onePK on Ubuntu, but haven't gotten around to it yet.
 
Chris

Subject: RE: OnePK EFT Virtual Machine - supported Linux distributions
Replied by: Viktor S. Wold Eide on 12-02-2013 08:32:09 AM
Hi again Shelly,

Ideally, we would like to have everything including IOL on a new/recent Linux distribution (Ubuntu 12.04). However, bridging as you mention is also relevant and some instructions for setup would be helpful.  We have received the "IOL for Connected Apps, User Guide" document, as part of the Fedora 14 VM, but I'm not sure whether that covers everything you had in mind.

Best regard
Viktor

Subject: RE: OnePK EFT Virtual Machine - supported Linux distributions
Replied by: Viktor S. Wold Eide on 12-02-2013 08:45:25 AM
That's certainly good news Chris,

We also have problems with old software on Fedora 14, which makes development inconvenient. Some info for setup on Fedora 18 would be helpful, and info for a full install including IOL on Ubuntu 12.04 would be great.

Best regards
Viktor

Subject: RE: OnePK EFT Virtual Machine - supported Linux distributions
Replied by: Karen Cadora on 12-02-2013 09:02:36 AM
Hi, Viktor.
Does your vm have a ~/networks/1b directory?  If so, you can do "oru run ~/networks/1b" to start a single instance of IOL that is bridged to the first ethernet interface of the VM.  If that interface is bridged to the outside world and you assign the router a valid address on that subnet, then you should be able to bridge from IOL to your development environment.
Let me know if that works for you.  From there, you can build more complicated topologies.

Shelly

Subject: Re: New Message from Viktor S. Wold Eide in onePK - Emulator installation:
Replied by: Nathan Sowatskey on 12-02-2013 09:28:09 AM
Hi Viktor

We only support installation of IOL on the Fedora 14 VM for the EFT.

Using Shelly's advice you can create a bridged network from the Fedora 14 VM to the host environment, and develop applications in the host environment that connect to the IOL network running on the Fedora 14 VM.

Within the next few days we will upload a tool and network configuration that you can use to create a 5 node bridged network.

Regards

Nathan
--
Nathan Sowatskey (nsowatsk@cisco.com) - @NathanDotTo - www.cisco.com/go/onepk - +34-638-083-675

On 12 Feb 2013, at 15:45, Cisco Developer Community Forums <cdicuser@developer.cisco.com>
wrote:

> Viktor S. Wold Eide has created a new message in the forum "Emulator installation": -------------------------------------------------------------- That's certainly good news Chris,
>
> We also have problems with old software on Fedora 14, which makes development inconvenient. Some info for setup on Fedora 18 would be helpful, and info for a full install including IOL on Ubuntu 12.04 would be great.
>
> Best regards
> Viktor
> --
> To respond to this post, please click the following link: http://developer.cisco.com/web/onepk/community/-/message_boards/view_message/11847487 or simply reply to this email.

Subject: RE: OnePK EFT Virtual Machine - supported Linux distributions
Replied by: Viktor S. Wold Eide on 12-02-2013 09:36:12 AM
Karen Cadora:
Hi, Viktor.
Does your vm have a ~/networks/1b directory?
Shelly

No ~/networks/1b, just the ~cisco/networks/5star directory.
Viktor

Subject: RE: New Message from Viktor S. Wold Eide in onePK - Emulator installation:
Replied by: Chris Lauwers on 12-02-2013 10:19:09 AM
Hi Viktor,

I’ll write up instructions later today, and I’ll try them on Ubuntu in the process.

Chris

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, February 12, 2013 6:45 AM
To: cdicuser@developer.cisco.com
Subject: New Message from Viktor S. Wold Eide in onePK - Emulator installation: RE: OnePK EFT Virtual Machine - supported Linux distributions

Viktor S. Wold Eide has created a new message in the forum "Emulator installation": -------------------------------------------------------------- That's certainly good news Chris,

We also have problems with old software on Fedora 14, which makes development inconvenient. Some info for setup on Fedora 18 would be helpful, and info for a full install including IOL on Ubuntu 12.04 would be great.

Best regards
Viktor
--
To respond to this post, please click the following link: http://developer.cisco.com/web/onepk/community/-/message_boards/view_message/11847487 or simply reply to this email.

Subject: RE: New Message from Viktor S. Wold Eide in onePK - Emulator installation:
Replied by: Chris Lauwers on 12-02-2013 02:23:43 PM
Hi Viktor,

Here are the steps I took to get onePK and IOL to run on Fedora 18:


1. Copy the onePK SDK

----------------

Start by moving the SDK and related files from the /home/cisco directory in the EFT VM. This is the easy part. I usually use tar to copy directories between machines. In my configuration, the onePK EFT VM has IP address 192.168.10.128,so I do the following:



# ssh cisco@192.168.10.128 "(cd /home/cisco; tar cf - onePK-sdk-c-rel-0.6.0.5 onePK-sdk-java-rel-0.6.0.5 networks)" | tar xf -



You'll be prompted for the cisco password.



2. Copy IOL

--------------

Start by copying IOL-related files. These are in /opt/cisco, so copy them over as follows:



# cd /opt

# ssh cisco@192.168.10.128<mailto:cisco@192.168.10.128> \

"(cd /opt; tar cf - cisco)" | sudo tar xf -



You'll be prompted for the cisco password on the EFT VM as well as for the sudo password on your Ubuntu machine. You may also get an ssh warning saying "authenticity of host '192.168.10.128' can't be established". Proceed anyway.



Next, run the IOL installer script:



# cd /opt/cisco/iol/scripts

# sudo ./install-script 1



The argument "1" indicates that this is a new install.



3. Fix /etc/rc.d/rc.local

------------------------------

Fedora 18 expects rc.local to be a sh script, so just add



#!/bin/sh



to the top of the rc.local file. This will allow the license daemon to start automatically when booting up.



By the way, I don’t believe there is a /etc/rc.d directory on Ubuntu. Instead, there is a /etc/rc.local file. You can just add the appropriate lines to that file.



4. Copy IOL license store

--------------------------------



The IOL license daemon won't start without /etc/cisco being present, and the installer doesn't seem to create it, so I just copied the whole thing:



# cd /etc

# ssh root@192.168.10.128 "(cd /etc; tar cf - cisco)" | sudo tar xf -



You’ll be prompted for the root password on the EFT VM and the sudo password on your machine.



You can then get a license key from cisco.



5. Copy and install oru

-----------------------------

oru is a Ruby app, so you need to make sure your Linux distribution has ruby installed. You can then add the oru gem file, which you can find in /home/cisco/Downloads. Then use the "gem" tool to install oru



# ssh cisco@192.168.10.128 "(cd /home/cisco/Downloads; tar cf - oru-0.0.6.gem)" | tar xf –

# gem install oru-0.0.6.ge


Unfortunately, I just tried these instructions on my 64bit Ubuntu 12.04 image, and things didn’t work correctly. I got the following error while trying to run the IOL install script:

# bash: /opt/cisco/iol/util/ioltuncfg: file not found

Not sure if this is a 64 bit vs. 32 bit issue, a problem finding a dynamically linked library, or something else. I haven’t had time to investigate. Let me know if you have more luck.

Best regards,

Chris

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, February 12, 2013 6:45 AM
To: cdicuser@developer.cisco.com
Subject: New Message from Viktor S. Wold Eide in onePK - Emulator installation: RE: OnePK EFT Virtual Machine - supported Linux distributions

Viktor S. Wold Eide has created a new message in the forum "Emulator installation": -------------------------------------------------------------- That's certainly good news Chris,

We also have problems with old software on Fedora 14, which makes development inconvenient. Some info for setup on Fedora 18 would be helpful, and info for a full install including IOL on Ubuntu 12.04 would be great.

Best regards
Viktor
--
To respond to this post, please click the following link: http://developer.cisco.com/web/onepk/community/-/message_boards/view_message/11847487 or simply reply to this email.

Subject: RE: New Message from Chris Lauwers in onePK - Emulator installation: RE: Ne
Replied by: Chris Lauwers on 12-02-2013 05:01:43 PM
It turns out I didn’t have 32 bit libraries installed on my 64 bit Ubuntu.


                    # sudo apt-get install ia32-libs

did the trick. It looks like everything is now installed OK.

However, when I “oru start networks/5star”, I get the following error:

netio error: sock lock: Permission denied

If I recall correctly, this may be due to the fact that the IOL license daemon expects to lock /dev/eth0, which doesn’t exist on Ubuntu. Not sure how to proceed from here.

Chris


From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, February 12, 2013 12:24 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Chris Lauwers in onePK - Emulator installation: RE: New Message from Viktor S. Wold Eide in onePK - Emulator installation:

Chris Lauwers has created a new message in the forum "Emulator installation": -------------------------------------------------------------- Hi Viktor,

Here are the steps I took to get onePK and IOL to run on Fedora 18:


1. Copy the onePK SDK

----------------

Start by moving the SDK and related files from the /home/cisco directory in the EFT VM. This is the easy part. I usually use tar to copy directories between machines. In my configuration, the onePK EFT VM has IP address 192.168.10.128,so I do the following:



# ssh cisco@192.168.10.128<mailto:cisco@192.168.10.128> "(cd /home/cisco; tar cf - onePK-sdk-c-rel-0.6.0.5 onePK-sdk-java-rel-0.6.0.5 networks)" | tar xf -



You'll be prompted for the cisco password.



2. Copy IOL

--------------

Start by copying IOL-related files. These are in /opt/cisco, so copy them over as follows:



# cd /opt

# ssh cisco@192.168.10.128<mailto:cisco@192.168.10.128<mailto:cisco@192.168.10.128%3cmailto:cisco@192.168.10.128>> \

"(cd /opt; tar cf - cisco)" | sudo tar xf -



You'll be prompted for the cisco password on the EFT VM as well as for the sudo password on your Ubuntu machine. You may also get an ssh warning saying "authenticity of host '192.168.10.128' can't be established". Proceed anyway.



Next, run the IOL installer script:



# cd /opt/cisco/iol/scripts

# sudo ./install-script 1



The argument "1" indicates that this is a new install.



3. Fix /etc/rc.d/rc.local

------------------------------

Fedora 18 expects rc.local to be a sh script, so just add



#!/bin/sh



to the top of the rc.local file. This will allow the license daemon to start automatically when booting up.



By the way, I don’t believe there is a /etc/rc.d directory on Ubuntu. Instead, there is a /etc/rc.local file. You can just add the appropriate lines to that file.



4. Copy IOL license store

--------------------------------



The IOL license daemon won't start without /etc/cisco being present, and the installer doesn't seem to create it, so I just copied the whole thing:



# cd /etc

# ssh root@192.168.10.128<mailto:root@192.168.10.128> "(cd /etc; tar cf - cisco)" | sudo tar xf -



You’ll be prompted for the root password on the EFT VM and the sudo password on your machine.



You can then get a license key from cisco.



5. Copy and install oru

-----------------------------

oru is a Ruby app, so you need to make sure your Linux distribution has ruby installed. You can then add the oru gem file, which you can find in /home/cisco/Downloads. Then use the "gem" tool to install oru



# ssh cisco@192.168.10.128<mailto:cisco@192.168.10.128> "(cd /home/cisco/Downloads; tar cf - oru-0.0.6.gem)" | tar xf –

# gem install oru-0.0.6.ge


Unfortunately, I just tried these instructions on my 64bit Ubuntu 12.04 image, and things didn’t work correctly. I got the following error while trying to run the IOL install script:

# bash: /opt/cisco/iol/util/ioltuncfg: file not found

Not sure if this is a 64 bit vs. 32 bit issue, a problem finding a dynamically linked library, or something else. I haven’t had time to investigate. Let me know if you have more luck.

Best regards,

Chris

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, February 12, 2013 6:45 AM
To: cdicuser@developer.cisco.com<mailto:cdicuser@developer.cisco.com>
Subject: New Message from Viktor S. Wold Eide in onePK - Emulator installation: RE: OnePK EFT Virtual Machine - supported Linux distributions

Viktor S. Wold Eide has created a new message in the forum "Emulator installation": -------------------------------------------------------------- That's certainly good news Chris,

We also have problems with old software on Fedora 14, which makes development inconvenient. Some info for setup on Fedora 18 would be helpful, and info for a full install including IOL on Ubuntu 12.04 would be great.

Best regards
Viktor
--
To respond to this post, please click the following link: http://developer.cisco.com/web/onepk/community/-/message_boards/view_message/11847487 or simply reply to this email.
--
To respond to this post, please click the following link: http://developer.cisco.com/web/onepk/community/-/message_boards/view_message/11862466 or simply reply to this email.

Subject: RE: OnePK EFT Virtual Machine - supported Linux distributions
Replied by: Karen Cadora on 13-02-2013 11:05:55 AM
Viktor S. Wold Eide:
Karen Cadora: Hi, Viktor. Does your vm have a ~/networks/1b directory? Shelly No ~/networks/1b, just the ~cisco/networks/5star directory. Viktor

Ok, we must have added that afterwards.  If you want to experiment, download the attached file and untar it in your ~/networks directory.  Then try "oru run ~/networks/5star-1b".  This should set up a bridge between eth1/1 on the "hub" router to the first ethernet interface in your VM, which you then need to bridge out to your physical network via your host operating system.  Eth1/1 will then need to be configured with a valid address on your physical network.
Shelly

Subject: Re: New Message from Karen Cadora in onePK - Emulator installation: RE: One
Replied by: Nathan Sowatskey on 13-02-2013 12:20:26 PM
Hi

You will find a tool called ORU (onePK Runtime Utility) here:

http://developer.cisco.com/web/onepk/downloads?p_p_id=110_INSTANCE_z2NmhnjwPPHA&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_pos=1&p_p_col_count=2&_110_INSTANCE_z2NmhnjwPPHA_struts_action=%2Fdocument_library_display%2Fview_file_entry&_110_INSTANCE_z2NmhnjwPPHA_redirect=http%3A%2F%2Fdeveloper.cisco.com%2Fweb%2Fonepk%2Fdownloads%3Fp_p_id%3D110_INSTANCE_z2NmhnjwPPHA%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-1%26p_p_col_pos%3D1%26p_p_col_count%3D2&_110_INSTANCE_z2NmhnjwPPHA_fileEntryId=11897360

You can install that on the Fedora 14 VM like this:

$ tar xf ORU.tar
$ sudo gem install oru-0.11.gem

Having installed the latest version of ORU, you can now generate 5star-1bridge network like this:

1 - Configure the Linux VM network settings to share the network connection with the host. This helps ensure that the IP address of the Linux VM remains constant.

2 - Use ifconfig on the Linux VM to find out the IP address of the Linux OS instance:

$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:29:d7:99:30 
         inet addr:192.168.255.195  Bcast:192.168.255.255  ...

3 - Note the address that the OS instance has, and use an address on the same subnet when generating the configuration for the 5star-1bridge network like this:

$ oru generate 5star-1bridge 5star-1bridge 192.168.255.197 255.255.255.0

4 - Start the 5star-1bridge network like this:

$ sudo oru run 5star-1bridge.net/

5 - Applications on the host OS, e.g. OSX, can now connect to the central network element of the 5star network at the IP address 192.168.255.197.

Regards

Nathan
--
Nathan Sowatskey (nsowatsk@cisco.com) - @NathanDotTo - www.cisco.com/go/onepk - +34-638-083-675

On 13 Feb 2013, at 18:06, Cisco Developer Community Forums <cdicuser@developer.cisco.com>
wrote:

> Karen Cadora has created a new message in the forum "Emulator installation": --------------------------------------------------------------
> Viktor S. Wold Eide:
> Karen Cadora: Hi, Viktor. Does your vm have a ~/networks/1b directory? Shelly No ~/networks/1b, just the ~cisco/networks/5star directory. Viktor
>
> Ok, we must have added that afterwards.  If you want to experiment, download the attached file and untar it in your ~/networks directory.  Then try "oru run ~/networks/5star-1b".  This should set up a bridge between eth1/1 on the "hub" router to the first ethernet interface in your VM, which you then need to bridge out to your physical network via your host operating system.  Eth1/1 will then need to be configured with a valid address on your physical network.
> Shelly
> --
> To respond to this post, please click the following link: http://developer.cisco.com/web/onepk/community/-/message_boards/view_message/11897355 or simply reply to this email.

Subject: RE: New Message from Nathan Sowatskey in onePK - Emulator installation: Re:
Replied by: Chris Lauwers on 13-02-2013 12:45:26 PM
Hi Nathan,

Does this network configuration require oru-0.11, or will it also work with oru-0.0.6 (which is the version that comes with the EFT VM)?

Thanks,

Chris

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Wednesday, February 13, 2013 10:20 AM
To: cdicuser@developer.cisco.com
Subject: New Message from Nathan Sowatskey in onePK - Emulator installation: Re: New Message from Karen Cadora in onePK - Emulator installation: RE: One

Nathan Sowatskey has created a new message in the forum "Emulator installation": -------------------------------------------------------------- Hi

You will find a tool called ORU (onePK Runtime Utility) here:

http://developer.cisco.com/web/onepk/downloads?p_p_id=110_INSTANCE_z2NmhnjwPPHA&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_pos=1&p_p_col_count=2&_110_INSTANCE_z2NmhnjwPPHA_struts_action=%2Fdocument_library_display%2Fview_file_entry&_110_INSTANCE_z2NmhnjwPPHA_redirect=http%3A%2F%2Fdeveloper.cisco.com%2Fweb%2Fonepk%2Fdownloads%3Fp_p_id%3D110_INSTANCE_z2NmhnjwPPHA%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-1%26p_p_col_pos%3D1%26p_p_col_count%3D2&_110_INSTANCE_z2NmhnjwPPHA_fileEntryId=11897360

You can install that on the Fedora 14 VM like this:

$ tar xf ORU.tar
$ sudo gem install oru-0.11.gem

Having installed the latest version of ORU, you can now generate 5star-1bridge network like this:

1 - Configure the Linux VM network settings to share the network connection with the host. This helps ensure that the IP address of the Linux VM remains constant.

2 - Use ifconfig on the Linux VM to find out the IP address of the Linux OS instance:

$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:29:d7:99:30
inet addr:192.168.255.195 Bcast:192.168.255.255 ...

3 - Note the address that the OS instance has, and use an address on the same subnet when generating the configuration for the 5star-1bridge network like this:

$ oru generate 5star-1bridge 5star-1bridge 192.168.255.197 255.255.255.0

4 - Start the 5star-1bridge network like this:

$ sudo oru run 5star-1bridge.net/

5 - Applications on the host OS, e.g. OSX, can now connect to the central network element of the 5star network at the IP address 192.168.255.197.

Regards

Nathan
--
Nathan Sowatskey (nsowatsk@cisco.com<mailto:nsowatsk@cisco.com>) - @NathanDotTo - www.cisco.com/go/onepk<http://www.cisco.com/go/onepk> - +34-638-083-675

On 13 Feb 2013, at 18:06, Cisco Developer Community Forums <cdicuser@developer.cisco.com<mailto:cdicuser@developer.cisco.com>>
wrote:

> Karen Cadora has created a new message in the forum "Emulator installation": --------------------------------------------------------------
> Viktor S. Wold Eide:
> Karen Cadora: Hi, Viktor. Does your vm have a ~/networks/1b directory? Shelly No ~/networks/1b, just the ~cisco/networks/5star directory. Viktor
>
> Ok, we must have added that afterwards. If you want to experiment, download the attached file and untar it in your ~/networks directory. Then try "oru run ~/networks/5star-1b". This should set up a bridge between eth1/1 on the "hub" router to the first ethernet interface in your VM, which you then need to bridge out to your physical network via your host operating system. Eth1/1 will then need to be configured with a valid address on your physical network.
> Shelly
> --
> To respond to this post, please click the following link: http://developer.cisco.com/web/onepk/community/-/message_boards/view_message/11897355 or simply reply to this email.
--
To respond to this post, please click the following link: http://developer.cisco.com/web/onepk/community/-/message_boards/view_message/11900752 or simply reply to this email.

Subject: Re: New Message from Chris Lauwers in onePK - Emulator installation: RE: Ne
Replied by: Nathan Sowatskey on 13-02-2013 01:07:26 PM
This 5star-1bridge is only included in ORU 0.11, so you need ORU 0.11 to generate the configuration.

I have not tested whether ORU 0.6 will run the configuration once generated.

Regards

Nathan
--
Nathan Sowatskey (nsowatsk@cisco.com) - @NathanDotTo - www.cisco.com/go/onepk - +34-638-083-675

On 13 Feb 2013, at 19:45, Cisco Developer Community Forums <cdicuser@developer.cisco.com>
wrote:

> Chris Lauwers has created a new message in the forum "Emulator installation": -------------------------------------------------------------- Hi Nathan,
>
> Does this network configuration require oru-0.11, or will it also work with oru-0.0.6 (which is the version that comes with the EFT VM)?
>
> Thanks,
>
> Chris
>
> From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
> Sent: Wednesday, February 13, 2013 10:20 AM
> To: cdicuser@developer.cisco.com
> Subject: New Message from Nathan Sowatskey in onePK - Emulator installation: Re: New Message from Karen Cadora in onePK - Emulator installation: RE: One
>
> Nathan Sowatskey has created a new message in the forum "Emulator installation": -------------------------------------------------------------- Hi
>
> You will find a tool called ORU (onePK Runtime Utility) here:
>
> http://developer.cisco.com/web/onepk/downloads?p_p_id=110_INSTANCE_z2NmhnjwPPHA&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_pos=1&p_p_col_count=2&_110_INSTANCE_z2NmhnjwPPHA_struts_action=%2Fdocument_library_display%2Fview_file_entry&_110_INSTANCE_z2NmhnjwPPHA_redirect=http%3A%2F%2Fdeveloper.cisco.com%2Fweb%2Fonepk%2Fdownloads%3Fp_p_id%3D110_INSTANCE_z2NmhnjwPPHA%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-1%26p_p_col_pos%3D1%26p_p_col_count%3D2&_110_INSTANCE_z2NmhnjwPPHA_fileEntryId=11897360
>
> You can install that on the Fedora 14 VM like this:
>
> $ tar xf ORU.tar
> $ sudo gem install oru-0.11.gem
>
> Having installed the latest version of ORU, you can now generate 5star-1bridge network like this:
>
> 1 - Configure the Linux VM network settings to share the network connection with the host. This helps ensure that the IP address of the Linux VM remains constant.
>
> 2 - Use ifconfig on the Linux VM to find out the IP address of the Linux OS instance:
>
> $ ifconfig
> eth0 Link encap:Ethernet HWaddr 00:0c:29:d7:99:30
> inet addr:192.168.255.195 Bcast:192.168.255.255 ...
>
> 3 - Note the address that the OS instance has, and use an address on the same subnet when generating the configuration for the 5star-1bridge network like this:
>
> $ oru generate 5star-1bridge 5star-1bridge 192.168.255.197 255.255.255.0
>
> 4 - Start the 5star-1bridge network like this:
>
> $ sudo oru run 5star-1bridge.net/
>
> 5 - Applications on the host OS, e.g. OSX, can now connect to the central network element of the 5star network at the IP address 192.168.255.197.
>
> Regards
>
> Nathan
> --
> Nathan Sowatskey (nsowatsk@cisco.com<mailto:nsowatsk@cisco.com>) - @NathanDotTo - www.cisco.com/go/onepk<http://www.cisco.com/go/onepk> - +34-638-083-675
>
> On 13 Feb 2013, at 18:06, Cisco Developer Community Forums <cdicuser@developer.cisco.com<mailto:cdicuser@developer.cisco.com>>
> wrote:
>
> > Karen Cadora has created a new message in the forum "Emulator installation": --------------------------------------------------------------
> > Viktor S. Wold Eide:
> > Karen Cadora: Hi, Viktor. Does your vm have a ~/networks/1b directory? Shelly No ~/networks/1b, just the ~cisco/networks/5star directory. Viktor
> >
> > Ok, we must have added that afterwards. If you want to experiment, download the attached file and untar it in your ~/networks directory. Then try "oru run ~/networks/5star-1b". This should set up a bridge between eth1/1 on the "hub" router to the first ethernet interface in your VM, which you then need to bridge out to your physical network via your host operating system. Eth1/1 will then need to be configured with a valid address on your physical network.
> > Shelly
> > --
> > To respond to this post, please click the following link: http://developer.cisco.com/web/onepk/community/-/message_boards/view_message/11897355 or simply reply to this email.
> --
> To respond to this post, please click the following link: http://developer.cisco.com/web/onepk/community/-/message_boards/view_message/11900752 or simply reply to this email.
> --
> To respond to this post, please click the following link: http://developer.cisco.com/web/onepk/community/-/message_boards/view_message/11901053 or simply reply to this email.

Subject: RE: New Message from Chris Lauwers in onePK - Emulator installation: RE: Ne
Replied by: Chris Lauwers on 13-02-2013 03:40:26 PM
I believe I now have IOL running correctly on 64 bit Ubuntu 12.04-LTS. It turns out that

                /opt/cisco/iol/scripts/install-script

has a kernel version check to see if “setcap” is supported. However, this version check is not correct on Ubuntu, so as a result “setcap” isn’t called, and instead it will “chmod” on the tunnel and bridge-related utilities in /opt/cisco/iol/util. I believe that was creating my “no permission” problems. I undid the “chmod” modifications and called the appropriate “setcap” instead, which seems to have corrected things.

Now back to doing real work ☺

Chris


From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, February 12, 2013 3:02 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Chris Lauwers in onePK - Emulator installation: RE: New Message from Chris Lauwers in onePK - Emulator installation: RE: Ne

Chris Lauwers has created a new message in the forum "Emulator installation": -------------------------------------------------------------- It turns out I didn’t have 32 bit libraries installed on my 64 bit Ubuntu.


# sudo apt-get install ia32-libs

did the trick. It looks like everything is now installed OK.

However, when I “oru start networks/5star”, I get the following error:

netio error: sock lock: Permission denied

If I recall correctly, this may be due to the fact that the IOL license daemon expects to lock /dev/eth0, which doesn’t exist on Ubuntu. Not sure how to proceed from here.

Chris

Subject: Re: New Message from Chris Lauwers in onePK - Emulator installation: RE: Ne
Replied by: Viktor S. Wold Eide on 20-02-2013 01:25:14 PM
Hi again,

I can confirm that we've managed to get IOL running on Ubuntu 12.04 x86_64.
Thanks a lot Chris, for providing the detailed instructions.

Best regards
Viktor

2013/2/13 Cisco Developer Community Forums <cdicuser@developer.cisco.com>

> Chris Lauwers has created a new message in the forum "Emulator
> installation":
> -------------------------------------------------------------- I believe I
> now have IOL running correctly on 64 bit Ubuntu 12.04-LTS. It turns out that
>
> /opt/cisco/iol/scripts/install-script
>
> has a kernel version check to see if “setcap” is supported. However, this
> version check is not correct on Ubuntu, so as a result “setcap” isn’t
> called, and instead it will “chmod” on the tunnel and bridge-related
> utilities in /opt/cisco/iol/util. I believe that was creating my “no
> permission” problems. I undid the “chmod” modifications and called the
> appropriate “setcap” instead, which seems to have corrected things.
>
> Now back to doing real work ☺
>
>
> Chris
>

Subject: RE: New Message from Viktor S. Wold Eide in onePK - Emulator installation:
Replied by: Chris Lauwers on 21-02-2013 10:20:14 AM
Good to hear Viktor. By the way, did you try version 0.11 of ORU that supports the bridged network (the one posted by Shelly on Feb. 13) or are you still using version 0.0.6 (the one that came with the first version of the SDK)?

Thanks,

Chris

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Wednesday, February 20, 2013 11:25 AM
To: cdicuser@developer.cisco.com
Subject: New Message from Viktor S. Wold Eide in onePK - Emulator installation: Re: New Message from Chris Lauwers in onePK - Emulator installation: RE: Ne

Viktor S. Wold Eide has created a new message in the forum "Emulator installation": -------------------------------------------------------------- Hi again,

I can confirm that we've managed to get IOL running on Ubuntu 12.04 x86_64.
Thanks a lot Chris, for providing the detailed instructions.

Best regards
Viktor

2013/2/13 Cisco Developer Community Forums <cdicuser@developer.cisco.com<mailto:cdicuser@developer.cisco.com>>

> Chris Lauwers has created a new message in the forum "Emulator
> installation":
> -------------------------------------------------------------- I believe I
> now have IOL running correctly on 64 bit Ubuntu 12.04-LTS. It turns out that
>
> /opt/cisco/iol/scripts/install-script
>
> has a kernel version check to see if “setcap” is supported. However, this
> version check is not correct on Ubuntu, so as a result “setcap” isn’t
> called, and instead it will “chmod” on the tunnel and bridge-related
> utilities in /opt/cisco/iol/util. I believe that was creating my “no
> permission” problems. I undid the “chmod” modifications and called the
> appropriate “setcap” instead, which seems to have corrected things.
>
> Now back to doing real work ☺
>
>
> Chris
>
--
To respond to this post, please click the following link: http://developer.cisco.com/web/onepk/community/-/message_boards/view_message/12176022 or simply reply to this email.

Subject: Re: New Message from Chris Lauwers in onePK - Emulator installation: RE: Ne
Replied by: Viktor S. Wold Eide on 22-02-2013 02:37:35 AM
So far we have not tried the 0.11 version of ORU. We might do that shortly,
but we are still using the 0.0.6 version.

Best regards
Viktor

2013/2/21 Cisco Developer Community Forums <cdicuser@developer.cisco.com>

> Chris Lauwers has created a new message in the forum "Emulator
> installation":
> -------------------------------------------------------------- Good to hear
> Viktor. By the way, did you try version 0.11 of ORU that supports the
> bridged network (the one posted by Shelly on Feb. 13) or are you still
> using version 0.0.6 (the one that came with the first version of the SDK)?
>
> Thanks,
>
> Chris
>
> From: Cisco Developer Community Forums [mailto:
> cdicuser@developer.cisco.com]
> Sent: Wednesday, February 20, 2013 11:25 AM
> To: cdicuser@developer.cisco.com
> Subject: New Message from Viktor S. Wold Eide in onePK - Emulator
> installation: Re: New Message from Chris Lauwers in onePK - Emulator
> installation: RE: Ne
>
> Viktor S. Wold Eide has created a new message in the forum "Emulator
> installation":
> -------------------------------------------------------------- Hi again,
>
> I can confirm that we've managed to get IOL running on Ubuntu 12.04 x86_64.
> Thanks a lot Chris, for providing the detailed instructions.
>
> Best regards
> Viktor
>
> 2013/2/13 Cisco Developer Community Forums <cdicuser@developer.cisco.com
> <mailto:cdicuser@developer.cisco.com>>
>
> > Chris Lauwers has created a new message in the forum "Emulator
> > installation":
> > -------------------------------------------------------------- I believe
> I
> > now have IOL running correctly on 64 bit Ubuntu 12.04-LTS. It turns out
> that
> >
> > /opt/cisco/iol/scripts/install-script
> >
> > has a kernel version check to see if “setcap” is supported. However, this
> > version check is not correct on Ubuntu, so as a result “setcap” isn’t
> > called, and instead it will “chmod” on the tunnel and bridge-related
> > utilities in /opt/cisco/iol/util. I believe that was creating my “no
> > permission” problems. I undid the “chmod” modifications and called the
> > appropriate “setcap” instead, which seems to have corrected things.
> >
> > Now back to doing real work ☺
> >
> >
> > Chris
> >
> --
> To respond to this post, please click the following link:
> http://developer.cisco.com/web/onepk/community/-/message_boards/view_message/12176022or simply reply to this email.
> --
> To respond to this post, please click the following link:
> http://developer.cisco.com/web/onepk/community/-/message_boards/view_message/12219835or simply reply to this email.




--
Viktor S. Wold Eide
CEO - Lividi AS
Lividi co/Simula Innovation AS
P.O. Box 134 NO-1325 Lysaker, Norway
+47 9775 9449
viktor@lividi.com
http://www.lividi.com

Subject: RE: OnePK EFT Virtual Machine - supported Linux distributions
Replied by: Mohan Kumar on 04-06-2013 08:20:00 AM
Karen Cadora:
Hi, Viktor.

Are you specifically interested in the SDK itself or in IOL as well? 
Thanks,
Shelly

Hello,
I have just started on installation of OnePK SDK on Ubuntu 12.04LTS. I have been only provided with the SDK but not the OnePK EFT VM. Just wondering if i have to request access to the OnePK EFT VM as well.

Thanks and Regards,
Mohan

Subject: RE: OnePK EFT Virtual Machine - supported Linux distributions
Replied by: Joseph Clarke on 04-06-2013 09:29:16 AM
We have not yet refreshed the VM for the controlled availability release.  Stay tuned, we will be providing virtual OS instances for testing.  In the meantime, the CA release (API 0.7.0.503g) will work with real ISR G2 routers (i.e., the 2900 and 3900 series) running 15.3(2)T.

Subject: RE: New Message from Mohan Kumar in onePK Developer - Emulator installation
Replied by: Zach Seils on 28-07-2013 05:58:10 PM
Can you confirm with echo $ONEP_SDK that the path is set correctly?

Zach


From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Sunday, July 28, 2013 6:53 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Mohan Kumar in onePK Developer - Emulator installation: RE: Re: New Message from Chris Lauwers in onePK - Emulator installation: RE

Mohan Kumar has created a new message in the forum "Emulator installation": -------------------------------------------------------------- Hi Joseph,
Thanks for the update and  i have installed the 32 bit version of OnePK SDK on Ubuntu 12.04 LTS(VMware workstation on Windows 7 OS Host) and everything goes fine,but when i try to compile any of the sample apps with the make command, the following message is seen:
Makefile:8: *** Please ensure ONEP_SDK points to <sdk location> prior to running make. Example: export ONEP_SDK=/opt/cisco/onep/c32/sdk-c32-0.7.0.503.  Stop.
I have also tried to execute this on C shell with similar results.

The following mappings are in place as per the instrcutions in the One PK guide:
setenv LD_LIBRARY_PATH /<path_to_SDK>/c/lib
or
export LD_LIBRARY_PATH=/<path_to_SDK>/c/lib

Thanks and Regards,
Mohan
--
To respond to this post, please click the following link: http://developer.cisco.com/web/onepk-developer/forum/-/message_boards/view_message/17722286 or simply reply to this email.

Subject: RE: Re: New Message from Chris Lauwers in onePK - Emulator installation: RE
Replied by: Mohan Kumar on 28-07-2013 05:52:50 PM
Hi Joseph,
Thanks for the update and  i have installed the 32 bit version of OnePK SDK on Ubuntu 12.04 LTS(VMware workstation on Windows 7 OS Host) and everything goes fine,but when i try to compile any of the sample apps with the make command, the following message is seen:
Makefile:8: *** Please ensure ONEP_SDK points to <sdk location> prior to running make. Example: export ONEP_SDK=/opt/cisco/onep/c32/sdk-c32-0.7.0.503.  Stop.
I have also tried to execute this on C shell with similar results.

The following mappings are in place as per the instrcutions in the One PK guide:
setenv LD_LIBRARY_PATH /<path_to_SDK>/c/lib
or
export LD_LIBRARY_PATH=/<path_to_SDK>/c/lib

Thanks and Regards,
Mohan

Subject: RE: Re: New Message from Chris Lauwers in onePK - Emulator installation: RE
Replied by: Mohan Kumar on 28-07-2013 06:50:04 PM
Hi Zack,
Thanks for your quick response and yes it is

echo $ONEP_SDK
/opt/cisco/onep/c32/

Subject: RE: Re: New Message from Chris Lauwers in onePK - Emulator installation: RE
Replied by: Joseph Clarke on 28-07-2013 07:19:03 PM
You have to make sure the ONEP_SDK environment variable points to the root of the C SDK directory (i.e., to the place where you would find a "c" directory.  In that C directory will be an "include" directory.  For example, your ONEP_SDK variable value may be /opt/cisco/onep/c32/sdk-c32-0.7.0.503.  The contents of that directory might look like:

1c  EndUserLicenseAgreement  README  ReleaseNotes
And the contents of the "c" subdirectory would be:

1bin  doc  include  lib  README  sample-apps  tutorials  tutorials-html


Subject: RE: Re: New Message from Chris Lauwers in onePK - Emulator installation: RE
Replied by: Joseph Clarke on 28-07-2013 07:20:02 PM
This is likely wrong.  You need to specify one more directory component such as sdk-c32-0.7.0.503 in that variable value.  See my previous post.

Subject: RE: Re: New Message from Chris Lauwers in onePK - Emulator installation: RE
Replied by: Mohan Kumar on 28-07-2013 07:23:30 PM
Hi Zack,

Did the mapping again and here is what i get when i try to make.

make
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found

Please let me know where i should add the glib-2.0 reference to the PKG

Here is a locate on PKG path:

locate pkg-config
/etc/bash_completion.d/pkg-config
/usr/bin/pkg-config
/usr/share/pkg-config-crosswrapper
/usr/share/doc/pkg-config
/usr/share/doc/pkg-config/AUTHORS
/usr/share/doc/pkg-config/NEWS.gz
/usr/share/doc/pkg-config/README
/usr/share/doc/pkg-config/changelog.Debian.gz
/usr/share/doc/pkg-config/copyright
/usr/share/doc/pkg-config/pkg-config-guide.html
/usr/share/man/man1/pkg-config.1.gz
/var/lib/dpkg/info/pkg-config.list
/var/lib/dpkg/info/pkg-config.md5sums

Subject: RE: Re: New Message from Chris Lauwers in onePK - Emulator installation: RE
Replied by: Joseph Clarke on 28-07-2013 07:26:08 PM
You need the Glib-2.0 development headers installed.  If you do:

sudo apt-get install glib2.0

That will give you everything you need.

Subject: RE: Re: New Message from Chris Lauwers in onePK - Emulator installation: RE
Replied by: Mohan Kumar on 28-07-2013 07:53:17 PM
Hi Joseph,

Thanks for your message
Yes glib2.0 is installed and also the environment variable is set to the correct sub dir
mohan@ubuntu:/opt/cisco/onep/c32/sdk-c32-0.7.0.503g/c/sample-apps/HelloNetwork$ echo $ONEP_SDK
/opt/cisco/onep/c32/sdk-c32-0.7.0.503

but still getting the following error message

mohan@ubuntu:/opt/cisco/onep/c32/sdk-c32-0.7.0.503g/c/sample-apps/HelloNetwork$ make
mkdir: cannot create directory `obj': Permission denied
make: ***  Error 1

Changing the ownership to myself doesn't either.

Best

Subject: RE: Re: New Message from Chris Lauwers in onePK - Emulator installation: RE
Replied by: Mohan Kumar on 28-07-2013 10:38:59 PM
The permissions were messed up and i have tried "chowning" to myself and running make invokes the compiler now.However  complains "onep_core_services.h" missing file.Just trying to figure out ...Many thanks again.

mohan@ubuntu:/opt/cisco/onep/c32/sdk-c32-0.7.0.503g/c/sample-apps/HelloPacket$ sudo chown mohan ./
mohan@ubuntu:/opt/cisco/onep/c32/sdk-c32-0.7.0.503g/c/sample-apps/HelloPacket$ make
Building file: src/HelloPacket.c
Invoking: GCC C Compiler
gcc -I/opt/cisco/onep/c32/sdk-c32-0.7.0.503g/c/c/include  -Wall -c -fPIC -m32  -MMD -MP \
                -MF"obj/HelloPacket.d" -MT"obj/HelloPacket.d" -o"obj/HelloPacket.o" "src/HelloPacket.c"
src/HelloPacket.c:32:32: fatal error: onep_core_services.h: No such file or directory
compilation terminated.

Subject: RE: Re: New Message from Chris Lauwers in onePK - Emulator installation: RE
Replied by: Joseph Clarke on 29-07-2013 12:32:58 AM
It looks like ONEP_SDK has been set to /opt/cisco/onep/c32/sdk-c32-0.7.0.503g/c.  It should have been set to
/opt/cisco/onep/c32/sdk-c32-0.7.0.503g.  Try this:

export ONEP_SDK=/opt/cisco/onep/c32/sdk-c32-0.7.0.503g

Then redo the make command.

Subject: RE: Re: New Message from Chris Lauwers in onePK - Emulator installation: RE
Replied by: Mohan Kumar on 29-07-2013 12:42:06 AM
Perfect!! i was thinking that the mapping is pointing to where the <include? files are , anyway all GOOD and thanks very much indeed!

Attachments

    Outcomes