Hi ONE community.
In my current multi-node deployment I have a combination of KVM and LXC hypervisor nodes and I am interested in providing them with storage via the ceph solution (image and system datastores). All the servers of my cluster have Debian 11 operating system installed.
By reading the documentation of how to configure the ceph storage (Ceph Datastore — OpenNebula 6.2.1 documentation) I noticed that during the installation of the ceph secret in the hypervisor nodes the tool named virsh of the libvirt library is used. Although in the installation of the KVM hypervisor node the libvirt comes with the package “opennebula-node-kvm”, the same doesn’t happen in terms of the “opennebula-node-lxc” package.
So I would like to know how I can configure ceph storage in LXC hypervisor nodes.
Should I install libvirt manually or even libvirt-daemon-driver-lxc package too?
In the above case should I also replace the URI “qemu:///system” with the URI “lxc:///system” when I use virsh command?
In the LXC node the requirement for the driver to operate with Ceph is to have the rbd-nbd utility installed. This utility depends on libvirt, so you should be good to go with having the node as a Ceph client, as mentioned in the datastore documentation you linked.
However, the opennebula-node-lxc package should have had that dependency referenced like the opennebula-node-lxd package.
The rbd-nbd package doesn’t have the libvirt as depedency (neither libvirt-client nor libvirt-daemon-system packages are listed). So how are they related?
root@node1:~$ apt show rbd-nbd
Package: rbd-nbd
Version: 16.2.7-1~bpo11+1
Priority: optional
Section: admin
Source: ceph
Maintainer: Ceph Maintainers <ceph-maintainers@lists.ceph.com>
Installed-Size: 513 kB
Depends: libc6 (>= 2.28), libgcc-s1 (>= 3.0), libnl-3-200 (>= 3.2.7), libnl-genl-3-200 (>= 3.2.21), librados2, librbd1, libstdc++6 (>= 9)
Homepage: http://ceph.com/
Download-Size: 153 kB
APT-Sources: https://download.ceph.com/debian-pacific bullseye/main amd64 Packages
Description: NBD-based rbd client for the Ceph distributed file system
Ceph is a massively scalable, open-source, distributed
storage system that runs on commodity hardware and delivers object,
block and file system storage. This is a
NBD-based client that allows one to map Ceph rbd images as local
block device.
.
NBD base client that allows one to map Ceph rbd images as local
block device.
N: There is 1 additional record. Please use the '-a' switch to see it```
I am sending the result of the proposed installation steps.
The lbvirt packages are not delivered.
root@node1:~$ apt-get install rbd-nbd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
rbd-nbd is already the newest version (14.2.21-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@node1:~$ apt-get install opennebula-node-lxc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
opennebula-node-lxc is already the newest version (6.2.0-1.ce).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@node1:~$ virsh -v
bash: virsh: command not found