Files
ubicloud/rhizome/host/lib/storage_path.rb
Hadi Moshayedi 5c2d0fc71c Rhizome: support Ubiblk backed storage.
If a storage volume's vhost_block_backend_version param is set, then a
Ubiblk installation is used instead of SPDK.

Let `storage-root=/var/storage/${vm_name}/$disk-index/`. Then:
- Ubiblk config is stored at `${storage-root}/vhost-backend.conf`.
- Ubiblk metadata is stored at `$storage-root/metadata`.
- A systemd-unit `${vm_name}-${disk-idx}-storage` is created to act as
  VM's storage device. It starts the Ubiblk's vhost-backend binary,
  stored at `/opt/vhost-block-backend/${version}/`.
- Key Encryption Key (KEK) is communicated to the storage service using
  a pipe created at `${storage-root$}/kek.pipe`.
- Storage service creates a vhost-user-blk socket at
  `${storage-root}/vhost.socket` which Cloud-Hypervisor connects to.
2025-06-13 13:31:22 -07:00

1.1 KiB