FreeNAS development system

Status
Not open for further replies.

Madevil

Cadet
Joined
Oct 26, 2014
Messages
3
Hi to all developer,

I have been trying for weeks now to get a working development system for FreeNAS plugins,
maybe someone can help me.

Goals:
  • a virtual image based FreeNAS development and build system
  • build FreeNAS images from github
  • build FreeNAS plugins
  • build custom ports

General Requirements:
  • must: FreeNAS 9.2 RELEASE
  • installation must have ZFS for chroot instead of UFS
  • pkg system is not migrated to new pkgng database

VM settings:
  • default image for FreeBSD 64bit system
  • memory 4 GB
  • harddisk 50 GB
  • bridged network

VM installation:
  • default installation with mfsbsd http://mfsbsd.vx.sk to (install FreeBSD 9.2 with ZFS as default)
  • check system is update-to-date: freebsd-update fetch install
  • check ports is update-to-date: portsnap fetch extract && portsnap upgrade
Sources:



Other guides:




lesson learned:

VM Images must have ZFS instead of UFS (for chroot plugin build system)
dont use FreeBSD Version higher than 9.2 (example 10 have problems with pbi_makeport)​


unanswered questions:


how to install pbi_manager on a blank FreeBSD 9.2 system to build plugins right?

successfully make port: devel/xdg-utils

make install clean from there only ?

https://github.com/freenas/freenas-plugins/tree/master/src/pbi-manager

whats up with this ?

https://github.com/freenas/freenas-plugins/tree/master/src/libsh
https://github.com/freenas/freenas-plugins/tree/master/src/pbi-wrapper


Any help in the right directions will help!

Best regards
 
Last edited:

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
No developers read the forums at all. You might want to try IRC to get ahold of a developer that might be willing to help you. Aside from that, you aren't going to find much help for your problem. Even I don't have all the answers for your problems. :(
 

Madevil

Cadet
Joined
Oct 26, 2014
Messages
3
No developers read the forums at all. You might want to try IRC to get ahold of a developer

but this is very sad, because a IRC chat will not help other people with the same problem, but thank you for your fast answer.
best regards
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
You could post the answer once you have it. I'd help but I don't have the answers. :(
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
not sure exactly what you are asking. but.. I basically do the following to build my plugins.

install freebsd 9.2 64bit (I run it in virtualbox)

install ports tree, you can't use the latest version anymore cause they dropped support for the old pkg tools which the pbi-manager uses. I use a svn snapshot from the commit before this happened (I think in 9/2014, read CHANGES). this causes issues sometimes and you need to update individual ports manually.

install pbi-manager

run command from my README to build individual pbi's

####

I'm not sure what the future holds for pbi's. hope we can get updated tools so that plugin development for freenas can continue
 

Madevil

Cadet
Joined
Oct 26, 2014
Messages
3
some time has passed to reask for the best FreeNAS plugin development environment system
  • base install image: freebsd 9.2, 9.3, 10.2 ?
  • pbi or other app solutions like appcafe, docker, ... ?
  • pbi-manager?
 

JustinClift

Patron
Joined
Apr 24, 2016
Messages
287
As a data point, the freenas-devel mailing list appears to be active again, with iXsystems developers communicating there. :)
 

zuzuzzzip

Dabbler
Joined
Apr 4, 2016
Messages
28
I'm also looking for a solution to build a FreeNAS plugin (madsonic), have tried PCBSD 10 and FreeBSD 10.
But indeed pbi_makeport is no longer available there since around 10.1(?).
Trying FreeBSD 9.2 now to try and build the plugin ...
 

JustinClift

Patron
Joined
Apr 24, 2016
Messages
287
I'm also looking for a solution to build a FreeNAS plugin (madsonic), have tried PCBSD 10 and FreeBSD 10.
But indeed pbi_makeport is no longer available there since around 10.1(?).
Trying FreeBSD 9.2 now to try and build the plugin ...

If you don't have success, trying asking for assistance on the freenas-devel mailing list. That's a channel the official developers use.
 
Status
Not open for further replies.
Top