Downloads

Recommended and suitable for your needs releases can be found here.

Always cryptographically verify downloaded image files.

Each release directory contains several files:

Checking distribution integrity

wget -O - http://www.opensan.org/trac/wiki/Publickey | gpg --import

gpg --verify checksums.sha256.asc

sha256sum IMAGE

Building from source code

Source code is always available on Git-repository. You can clone it using following command:

git clone git://github.com/astor2-team/astor2.git astor2

You will require following dependencies necessary for building OpenSAN image:

Under Debian/Ubuntu distributions you can install everything of this by single command:

apt-get install build-essential bash binutils bzip2 flex g++ gcc \

 gawk intltool zlib1g-dev make libncurses5-dev libssl-dev patch \

 perl-modules unzip

After sourcecode is got and dependencies are met, you should change you directory to openwrt and execute following:

./scripts/feeds update

./scripts/feeds install -a

make defconfig

make

Some packages may grow old and links to them can die, so we provide our cached download directory of all those packages. Use it, if something is not available. However we try to keep an eye on them. Contents of that download directory must be placed into openwrt/dl.

Ready to use images after build are in openwrt/bin/x86*.

Running under virtual machine

KVM

You should configure disk and network subsystems to be able to use OpenSAN.

dd if=/dev/zero of=disk1.raw bs=1G count=SIZE

dd if=/dev/zero of=disk2.raw bs=1G count=SIZE

dd if=/dev/zero of=disk3.raw bs=1G count=SIZE

gunzip openwrt-x86*-astor2-combined-ext4.img.gz

kvm -m 256 -hda openwrt-x86*-astor2-combined-ext4.img \

 -hdb disk1.raw -hdc disk2.raw -hdd disk3.raw \

 -net nic -net tap

ip link set up dev tap0

ip addr add 192.168.1.2/30 dev tap0

VirtualBox OSE

mkdir -p $HOME/.VirtualBox/Machines

VBoxManage createvm --name opensan --ostype Ubuntu_64 \

 --basefolder $HOME/.VirtualBox/Machines --register

VBoxManage modifyvm opensan --memory 256 --cpus 1 --hwvirtex on

VBoxManage hostonlyif create

VBoxManage list hostonlyifs

VBoxManage modifyvm opensan --nic1 hostonly \

 --nictype1 82540EM --cableconnected1 on \

 --hostonlyadapter1 vboxnet0

VBoxManage storagectl opensan --name sata-controller \

 --add sata --controller IntelAhci --sataportcount 4

mv openwrt-x86_64-astor2-combined-ext4.img openwrt-x86_64-astor2-combined-ext4.hdd

dd if=/dev/zero of=disk1.hdd bs=1G count=SIZE

dd if=/dev/zero of=disk2.hdd bs=1G count=SIZE

dd if=/dev/zero of=disk3.hdd bs=1G count=SIZE

VBoxManage storageattach opensan --storagectl sata-controller \

 --port 0 --device 0 --type hdd \

 --medium $HOME/openwrt-x86_64-astor2-combined-ext4.hdd

VBoxManage storageattach opensan --storagectl sata-controller \

 --port 1 --device 0 --type hdd --medium $HOME/disk1.hdd

VBoxManage storageattach opensan --storagectl sata-controller \

 --port 2 --device 0 --type hdd --medium $HOME/disk2.hdd

VBoxManage storageattach opensan --storagectl sata-controller \

 --port 3 --device 0 --type hdd --medium $HOME/disk3.hdd

VBoxManage modifyvm opensan --boot1 disk --boot2 none \

 --boot3 none --boot4 none

VBoxManage startvm opensan