I'm trying to install and configure an OpenAFS server inside an OpenVZ container. However, when running afs-newcell, it complains that the AFS client cannot be started. It says "AFS module /lib/modules/2.6.32-5-openvz-amd64/fs/openafs.o does not exist."
In the host, I installed openafs-modules-2.6.32-5-openvz-amd6 (from MIT). Doing lsmod | grep afs on host works, and show that openafs module is loaded. Doing the same in the guest doesn't show the module.
I understand that modprobe cannot be run inside a container for stability and security reason, but is there any way of "sharing" some module with a specified guest?
The easiest solution is to stop using
afs-newcell
and just configure the AFS server manually.afs-newcell
wants your server to also be an AFS client. It's doing this because it's going to be helpful when setting up a brand new cell and create yourroot.afs
androot.cell
volumes and populateroot.afs
with the contents of yourCellServDB
file. But all of that is to some extent optional, and more to the point, can be done from some other AFS client. You don't need to do all of that inside your OpenVZ container, and probably don't want to go to the work of figuring out how to makeafs-newcell
believe that it's a client.The only really tricky thing that
afs-newcell
does is to runpt_util
to create the initialptserver
database. I would just follow the normal AFS server setup instructions rather than trying to use the script.Note that if this is a server for an existing cell, as opposed to setting up a brand new AFS cell, you don't want to be using
afs-newcell
at all. It's only for setting up the first server in a completely new cell.