OpenVZ Forum


Home » General » Support » Is it possible to use 'insmod command' for device driver loading inside VE ?
Is it possible to use 'insmod command' for device driver loading inside VE ? [message #25409] Sun, 23 December 2007 08:05 Go to next message
ssil is currently offline  ssil
Messages: 1
Registered: December 2007
Junior Member
Hi,

[test configuration]
-----------------------------------------------------------
OS : ubuntu edgy 6.1
Openvz kernel : 2.6.18-smp version
os template : debian-4.0-i386-minimal

HN(#insmod sensor-test.ko)-- VPS101 (#insmod sensor-test.ko)
HN:sensor is good working VPS:Operation not permitted
------------------------------------------------------------

I tried 'insmod sensor-test.ko' on HN
and I could see 'sensor-test' message with 'lsmod | grep sensor'
and sensor is working on HN.

so I tried 'insmod sensor-test.ko' inside VE.
vps101# insmod sensor.ko.
-> Operation not permitted.

After I see above the message of 'Operation not permitted'
I tried another method.
(on HN side)
#vzctl set 101 --device c:240:0:rw --save
#vzctl exec 101 mknod /dev/sensor-test c 240 0
#vzctl exec 101 chmod 666 /dev/sensor-test

(inside VPS)
# ls -al /dev/sensor-test
crw-rw-rw 1 root root 240, 0 /dev/sensor-test
# ls sensor-test.ko
# insmod sensor-test.ko
Operation not permitted.


I searched below same answers about loading device inside VE.
->It is prohibited to load/unload kernel modules inside VE.
So, kernel module should be loaded on HN! And then you can use appropriate tools inside VE.

but I would like to load/unload device driver inside VE.
How can I load/unload device driver inside VE?
How can use 'insmod command' without 'operation not permitted'inside VE?

Best regards,
SANG-IL, SON


[Updated on: Sun, 23 December 2007 08:51]

Report message to a moderator

Re: Is it possible to use 'insmod command' for device driver loading inside VE ? [message #25421 is a reply to message #25409] Mon, 24 December 2007 10:14 Go to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

per default in a VE loading kernel modules are not possible (see man page "Capability"), so load kernel module on Hardware and give VE access to devnodes on Hardware Node!

And read the warning in man page !!!!!!!

Previous Topic: Installation on VPS fails....
Next Topic: Connection to mysql-VE failed.
Goto Forum:
  


Current Time: Sat Jul 13 21:41:30 GMT 2024

Total time taken to generate the page: 0.02279 seconds