Blobfuse2 on Ubuntu 24.04

Install Blobfuse2

sudo wget https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install libfuse3-dev fuse3
sudo apt-get install blobfuse2

Configure

blobfuse.yml:

allow-other: true

logging:
  type: syslog
  level: log_debug

components:
  - libfuse
  - file_cache
  - attr_cache
  - azstorage

libfuse:
  attribute-expiration-sec: 120
  entry-expiration-sec: 120
  negative-entry-expiration-sec: 240

file_cache:
  path: <local cache directory>
  timeout-sec: 120
  max-size-mb: 4096

attr_cache:
  timeout-sec: 7200

azstorage:
  type: block
  account-name: <account>
  account-key:  <key>
  endpoint: https://<account>.blob.core.windows.net
  mode: key
  container: <container>

Mount

mkdir /mnt/somedir
sudo blobfuse2 mount /mnt/somedir/ --config-file=./blobfuse.yml

Persist mount

edit /etc/fstab and add the following line to the end of the file

blobfuse2 /mnt/somedir fuse3 defaults,_netdev,--config-file=/absolute/path/to/blobfuse.yml,allow_other 0 0

Reboot and enjoy.


To contact me, send an email anytime or leave a comment below.