Saturday, September 24, 2016

Configuring WSO2 ESB 4.8.1 with a Free NAS Server for file sharing ( Using SMB/CIFS Protocol ) - PART - 1

This article shows how to configure ESB and the Free NAS Server for file processing.
Free NAS is a open source storage operating system. For more information on Free NAS please refer http://www.freenas.org/

Setting Up Free NAS Server


Free NAS is operating system, so we need a Virtual Box to install the operating system. Here I'm using oracle virtual box. You can download it from https://www.virtualbox.org/.


To download the free NAS Server use the below link. Here I'm using current stable release of FreeNAS (9.10). 

Follow the below screens to install free NAS operating system in Oracle Virtual Box. Select Type as BSD and Version FreeBSD( 64-bit ).




Now double click on the created virtual disk and install the operating system. Follow the screens below.

When double click on the server, if you get any error like below. Execute the command provided.


ajanthan@ajanthan-ThinkPad-T440p:~$ sudo /sbin/rcvboxdrv setup
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMS ...done.
Starting VirtualBox kernel modules ...done.
ajanthan@ajanthan-ThinkPad-T440p:~$ 










Do a restart and remove the .iso file which we loaded into the storage.




If we successfully installed operating system, we can see an output like below.


You can see here that the management console ip is as 10.0.2.15 and it's not in our primary os ip range, this will make problem when we try connect to management console from browser. To overcome this we modify the Network of the VM to Bridge Adapter as below after shutdown the NAS Server.



Now after start the VM, you can see now it matches our ip range and able to access the management console using 192.168.1.7. Refer the below screen shots.



Use username as "root" and password as "Which specified on setup".



Now we need to add a storage disk. When you go to Storage -> View Disks, there will be no disks available.



Now we need to add a disk to create volumes to store data. Shutdown the NAS Server and go back to Oracle Virtual Machine. Follow the below screens to create a new disk and added to the NAS Server virtual disk.






Select above 2GB storage for the hard disk.



Now we can view the disk.





That's it. We have successfully setup a NAS Server for our file storage. Now we need to configure the Storage to load files and need to configure WSO2 ESB to access and process those files. Please refer my next blog ( Configuring WSO2 ESB 4.8.1 with a Free NAS Server for file sharing ( Using SMB/CIFS Protocol ) - PART - 2 ).




No comments:

Post a Comment