[Click] Click + OpenVZ

Eric Keller ekeller at Princeton.EDU
Tue Mar 18 12:55:56 EDT 2008


Has anybody attempted to run click in kernel mode on a system with 
OpenVZ?  I want to run Click in kernel mode using the OpenVZ 2.6.18 
kernel. 

Starting with a pure 2.6.18 Linux kernel, I created a patch for the 
2.6.18 kernel based on the 2.6.19.2 patch that's in Click's CVS 
repository... there were a couple minor rejections, but I fixed those.  
I then had to modify the Click source in 3 locations:

In proclikefs.h (line 15) and proclikefs.c (line 118) - 
proclikefs_register_filesystem had a condition on the function interface 
using 2.6.19 (e.g. if LINUX_VERSION > KERNEL_VERSION(2,6,19)) as the 
test, I changed it to 2.6.18 to make it compile.  In clickfs.cc (line 
954) - handler_flush also had interface conditioned on 2.6.19, I changed 
to 2.6.18

That compiled and worked for a simple test (RatedSource->Print-Discard) 
in kernel mode, so my 2.6.18 patches work (at least for that test).  I 
applied that patch to the openvz kernel, which was clean, and recompiled 
Click.

I ran the simple test again in kernel mode (the openvz+click kernel) and 
got the following error:
click-install: cannot mount /click: No such device
click-install: cannot install Click module

The proclikefs module is loaded and click module is loaded and it looks 
like proclikefs initialized ok (e.g. register_filesystem did not return 
an error).

Any ideas?

Thanks,
Eric





More information about the click mailing list