Is it possible to use 'insmod command' for device driver loading inside VE ? [message #25409] |
Sun, 23 December 2007 08:05 |
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
|
|
|