insmod problem [message #29812] |
Fri, 25 April 2008 08:42 |
danielcamara
Messages: 8 Registered: July 2007 Location: France
|
Junior Member |
|
|
Hi people,
I am having a problem inserting a module in a Virtual Machine here...
I need to install the module in a series of VMs. It is required for each machine to have its own instance of the module installed. However, I am having an "Operation not permitted" problem, though the capability SYS_MODULE is on.
The error I am getting when I try to insert a module, when the module is not in the real machine, is:
node_104 # insmod nasmesh.ko nas_is_clusterhead=0
insmod: error inserting 'nasmesh.ko': -1 Operation not permitted
The output of the lsmod shows no module inserted, as expected, given the permission error. However, another strange thing is that if I install the module in the real machine, the error inside the VM changes:
real_machine # insmod nasmesh.ko nas_is_clusterhead=0
real_machine # vzctl enter 104
VM_node_104 # insmod nasmesh.ko nas_is_clusterhead=0
insmod: error inserting 'nasmesh.ko': -1 File exists
Even the output at the lsmod being empty.
I found this discussion from the news (http://forum.openvz.org/index.php?t=msg&goto=25421&), that seems to be more or less the same problem... but I sincerely didn't understand the answer, nor if it is applicable for this case.
Any Ideas, for both problems (operation not permitted, and the File exists one)?!?!? i.e. if they are really two separated problems!
Best regards...
Daniel
---
Configuration :
-------------
OS Host machine: Ubuntu
Kernel Host machine: 2.6.18-028stab053
OpenVZ : kernel-patch-openvz-028.18.3
VM Template: debian-4.0-i386-minimal
lcap on the VM:
--------------
lcap
Current capabilities: 0x5DCDEEFF
0) *CAP_CHOWN 1) *CAP_DAC_OVERRIDE
2) *CAP_DAC_READ_SEARCH 3) *CAP_FOWNER
4) *CAP_FSETID 5) *CAP_KILL
6) *CAP_SETGID 7) *CAP_SETUID
8) CAP_SETPCAP 9) *CAP_LINUX_IMMUTABLE
10) *CAP_NET_BIND_SERVICE 11) *CAP_NET_BROADCAST
12) CAP_NET_ADMIN 13) *CAP_NET_RAW
14) *CAP_IPC_LOCK 15) *CAP_IPC_OWNER
16) *CAP_SYS_MODULE 17) CAP_SYS_RAWIO
18) *CAP_SYS_CHROOT 19) *CAP_SYS_PTRACE
20) CAP_SYS_PACCT 21) CAP_SYS_ADMIN
22) *CAP_SYS_BOOT 23) *CAP_SYS_NICE
24) *CAP_SYS_RESOURCE 25) CAP_SYS_TIME
26) *CAP_SYS_TTY_CONFIG 27) *CAP_MKNOD
28) *CAP_LEASE 29) CAP_AUDIT_WRITE
30) *CAP_AUDIT_CONTROL
* = Capabilities currently allowed
lsmod VM machine:
----------------
# lsmod
Module Size Used by
lsmod real machine:
----------------
# lsmod
Module Size Used by
nasmesh 34572 0
(.... Other modules)
|
|
|