Skip to content

Blobfuse Installation

Gauri Prasad edited this page Oct 12, 2022 · 1 revision

Option 1 - Install from Apt/Yum Package Repositories

blobfuse is currently available in the Microsoft product repositories for Ubuntu, SLES, Debian, CentOS/RedHat distros. Packages are only available for x86 platforms. For Kubernetes support, go here.

1. Configure the apt repository for Microsoft products following this guideline

Ex.1 Ubuntu

wget https://packages.microsoft.com/config/ubuntu/<ubuntu version 16.04 or 18.04 or 20.04>/packages-microsoft-prod.deb
For Ubuntu 16.04 your command will be below
wget https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update

Ex.2 RHEL 7

 sudo rpm -Uvh https://packages.microsoft.com/rhel/7.8/prod/blobfuse-1.4.1-RHEL-7.8-x86_64.rpm
 For RHEL 7.5 replace 7.8 in above command with 7.5
 For latest version replace 1.4.1 in above command with blobfuse version you intend to install

Kubernetes - go here

2. Install blobfuse

On Ubuntu:

sudo apt-get install blobfuse fuse

On RedHat/CentOS

sudo yum install blobfuse fuse

You're set to go! Now follow the Configuring and Running wiki to configure a temp location, as well as your credentials.

Option 2 - Build from source

Cloning this repo

git clone https://github.com/Azure/azure-storage-fuse/

If you do not have git, install git via sudo apt-get install git

Installing dependencies

Required dependencies to compile Blobfuse are: fuse-dev, libcurl-dev, gnutls-dev, libgcrypt-dev, uuid-dev.

CentOS instructions

sudo yum -y install epel-release
sudo yum install git cmake3 fuse-devel libcurl-devel gcc gcc-c++ gnutls-devel libgcrypt-devel libuuid-devel boost-devel fuse -y

RedHat instructions

sudo yum install git cmake fuse-devel libcurl-devel gcc gcc-c++ gnutls-devel libgcrypt-devel libuuid-devel boost-devel fuse -y

Ubuntu instructions

sudo apt-get install pkg-config libfuse-dev cmake libcurl4-gnutls-dev libgnutls28-dev uuid-dev libgcrypt20-dev libboost-all-dev gcc g++ -y

SLES 11/12/15 instructions

SUSEConnect -p sle-sdk/12.4/x86_64 ( this step may not be needed for SUSE 15)
zypper install git cmake fuse-devel libcurl-devel gcc gcc-c++ gnutls-devel libgcrypt-devel fuse libuuid-devel boost-devel

Building

Run the build script located in the root folder of the repository. This will build the Azure Storage C++ Light library along with Blobfuse.

./build.sh