OpenVZ Forum


Home » General » Support » *SOLVED* Missing Module vzdev, though selected in kernel config
*SOLVED* Missing Module vzdev, though selected in kernel config [message #13452] Sun, 27 May 2007 11:05 Go to next message
vipz is currently offline  vipz
Messages: 7
Registered: May 2007
Location: NL, Enschede
Junior Member
I'm new to openVZ and I'm trying it out following the howto's on: http://wiki.openvz.org/Installation_on_Debian and http://wiki.openvz.org/Debian_template_creation

First time I started the VE, I get:
~ # vzctl start 777
Starting VPS ...
VPS is mounted
Adding IP address(es): 192.168.1.28
Unable to add IP 192.168.1.28: Inappropriate ioctl for device
Unable to del IP 192.168.1.28: Inappropriate ioctl for device
VPS start failed
Stopping VPS ...
VPS was stopped
VPS is unmounted


Ok, got that fixed, some module was missing:

~ # lsmod|grep vz
vzethdev               10152  0 
vzmon                  40328  1 vzethdev
ipv6                  235456  15 vzmon

~ # modprobe vznetdev

~ # lsmod|grep vz    
vznetdev               16384  0 
vzethdev               10152  0 
vzmon                  40328  2 vznetdev,vzethdev
ipv6                  235456  15 vzmon


Second try:

~ # vzctl start 777  
Starting VPS ...
VPS is mounted
Adding IP address(es): 192.168.1.28
RTNETLINK answers: No such device
vps-net_add ERROR: Unable to add route /sbin/ip route add 192.168.1.28 dev venet0 src 192.168.1.27
VPS start failed
Stopping VPS ...
VPS was stopped
VPS is unmounted


Ok, another module is still missing, but I can't load it:

~ # modprobe vzdev
FATAL: Module vzdev not found.


The module simply isn't there:

~ # ls -la /lib/modules/2.6.18-2-openvz/kernel/kernel/ve/
total 68
drwxr-xr-x 2 root root  4096 2007-05-27 14:19 .
drwxr-xr-x 4 root root  4096 2007-05-27 14:19 ..
-rw-r--r-- 1 root root 48783 2007-05-27 14:16 vzmon.ko
-rw-r--r-- 1 root root 10133 2007-05-27 14:16 vzwdog.ko


Weird enough, I cannot select "CONFIG_VZ_DEV" via 'make menuconfig'. I adjusted it to "m" in the .config file, but this was ignored:

~ # grep -i vz /boot/config-2.6.18-2-openvz
# Linux kernel version: 2.6.18-2-openvz
CONFIG_VZ_QUOTA=y
CONFIG_VZ_QUOTA_UGID=y
# OpenVZ
CONFIG_VZ_GENCALLS=y
CONFIG_VZ_DEV=y
CONFIG_VZ_WDOG=m
CONFIG_VZ_CHECKPOINT=m



Anyone got a clue? I'm using Debian Etch's linux-sources and pathes.




[Updated on: Sun, 27 May 2007 13:10]

Report message to a moderator

Re: Missing Module vzdev, though selected in kernel config [message #13454 is a reply to message #13452] Sun, 27 May 2007 11:28 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Ahem... Why do you load modules by hand? Run `/etc/init.d/vz start` command. It'll load all necessary modules and produce necessary tuning.

HTH,
Vasily.
Re: Missing Module vzdev, though selected in kernel config [message #13455 is a reply to message #13454] Sun, 27 May 2007 11:35 Go to previous messageGo to next message
vipz is currently offline  vipz
Messages: 7
Registered: May 2007
Location: NL, Enschede
Junior Member
Vasily Tarasov wrote on Sun, 27 May 2007 13:28

Ahem... Why do you load modules by hand? Run `/etc/init.d/vz start` command. It'll load all necessary modules and produce necessary tuning.

HTH,
Vasily.


Sorry, forgot to write about that. It (also) doesn't work:

~ # /etc/init.d/vz start
Starting OpenVZ: ..failed

~ # tail /var/log/vzctl.log 
2007-05-27T14:38:11+0200 vzctl : VPS 777 : Starting VPS ...
2007-05-27T14:38:11+0200 vzctl : VPS 777 : VPS is mounted
2007-05-27T14:38:11+0200 vzctl : VPS 777 : Adding IP address(es): 192.168.1.28
2007-05-27T14:38:12+0200 vzctl : VPS 777 : VPS start failed
2007-05-27T14:38:12+0200 vzctl : VPS 777 : Stopping VPS ...
2007-05-27T14:38:13+0200 vzctl : VPS 777 : VPS was stopped
2007-05-27T14:38:13+0200 vzctl : VPS 777 : VPS is unmounted


I think the problem lies somewhere at the kernel patching/configuration/compilation. For some reasson it is not possible to set:

CONFIG_VZ_DEV=m


It keeps getting:

CONFIG_VZ_DEV=y


Even when I change it with an editor to "m".

[Updated on: Sun, 27 May 2007 11:36]

Report message to a moderator

Re: Missing Module vzdev, though selected in kernel config [message #13456 is a reply to message #13455] Sun, 27 May 2007 12:08 Go to previous messageGo to next message
vipz is currently offline  vipz
Messages: 7
Registered: May 2007
Location: NL, Enschede
Junior Member
Using 'make menuconfig' I don't have the option to set te VE device to module:

  | |                         [*] Virtual Environment support (NEW)                                                           | |  
  | |                         <M>   VE calls interface (NEW)                                                                  | |  
  | |                         <M> VE network device (NEW)                                                                     | |  
  | |                         <M> Virtual ethernet device (NEW)                                                               | |  
  | |                         --- VE device                                                                                   | |  
  | |                         [*] VE netfiltering (NEW)                                                                       | |  
  | |                         <M> VE watchdog module (NEW)                                                                    | |  
  | |                         <M> Checkpointing & restoring Virtual Environments (NEW)                                        | |


Help about "VE device" says:

  | CONFIG_VZ_DEV:                                                                                                              |  
  |                                                                                                                             |  
  | This option adds support of vzdev device, which is used by                                                                  |  
  | user-space applications to control Virtual Environments.                                                                    |  
  |                                                                                                                             |  
  | Symbol: VZ_DEV [=y]                                                                                                         |  
  | Prompt: VE device                                                                                                           |  
  |   Defined at kernel/Kconfig.openvz:48                                                                                       |  
  |   Location:                                                                                                                 |  
  |     -> OpenVZ                                                                                                               |  
  |   Selected by: VZ_QUOTA && QUOTA || VE_CALLS && VE || VE_NETDEV && VE_CALLS && NET || VE_ETHDEV && VE_CALLS && NET          |  


If I understand correctly "VZ_DEV" can't be made a module...

[Updated on: Sun, 27 May 2007 12:09]

Report message to a moderator

Re: Missing Module vzdev, though selected in kernel config [message #13457 is a reply to message #13456] Sun, 27 May 2007 12:12 Go to previous messageGo to next message
vipz is currently offline  vipz
Messages: 7
Registered: May 2007
Location: NL, Enschede
Junior Member
vipz wrote on Sun, 27 May 2007 14:08


If I understand correctly "VZ_DEV" can't be made a module...


Not fully true, when I deselect (no support) "Quota" under "File systems", VE device is available for selection as a module.

Since I'm using http://wiki.openvz.org/Installation_on_Debian#or_build_your_ own_kernel-image_.28debian_way.29 Quota support should be selected ... I'm lost..

[Updated on: Sun, 27 May 2007 12:13]

Report message to a moderator

Re: Missing Module vzdev, though selected in kernel config [message #13459 is a reply to message #13457] Sun, 27 May 2007 12:23 Go to previous messageGo to next message
vipz is currently offline  vipz
Messages: 7
Registered: May 2007
Location: NL, Enschede
Junior Member
Via http://blog.biondofu.net/?p=16 I found this config: http://netcorex.org/kernel/config-2.6.18-4-686-openvz

It seemed this person isn't having the same trouble I experience (he is using the same patches and kernel sources). So I inspected his config.
CONFIG_VZ_QUOTA=m
CONFIG_VZ_QUOTA_UNLOAD=y
CONFIG_VZ_QUOTA_UGID=y

...

#
# OpenVZ
#
CONFIG_VE=y
CONFIG_VE_CALLS=m
CONFIG_VZ_GENCALLS=y
CONFIG_VE_NETDEV=m
CONFIG_VE_ETHDEV=m
CONFIG_VZ_DEV=m
CONFIG_VE_IPTABLES=y
CONFIG_VZ_WDOG=m
CONFIG_VZ_CHECKPOINT=m



Hmmzz .. So he sets "CONFIG_VZ_QUOTA" to be a module instead of including it in the kernel. After that, the VZ device *is* available for module selection. Very Happy

See if this config will work, let's compile Smile
Re: Missing Module vzdev, though selected in kernel config [message #13461 is a reply to message #13459] Sun, 27 May 2007 12:44 Go to previous messageGo to next message
vipz is currently offline  vipz
Messages: 7
Registered: May 2007
Location: NL, Enschede
Junior Member
vipz wrote on Sun, 27 May 2007 14:23


Hmmzz .. So he sets "CONFIG_VZ_QUOTA" to be a module instead of including it in the kernel. After that, the VZ device *is* available for module selection.


Since I'm waiting for my kernel to compile, I can explain why I was somewhat staggered seeing that a working config had "CONFIG_VZ_QUOTA=m". The Howto I followed up ( http://wiki.openvz.org/Installation_on_Debian#or_build_your_ own_kernel-image_.28debian_way.29) said CONFIG_VZ_QUOTA should be included in the kernel .. is this a fault in the howto?

Hope to find out soon Smile
Re: Missing Module vzdev, though selected in kernel config [message #13462 is a reply to message #13461] Sun, 27 May 2007 13:09 Go to previous message
vipz is currently offline  vipz
Messages: 7
Registered: May 2007
Location: NL, Enschede
Junior Member
vipz wrote on Sun, 27 May 2007 14:44

vipz wrote on Sun, 27 May 2007 14:23


Hmmzz .. So he sets "CONFIG_VZ_QUOTA" to be a module instead of including it in the kernel. After that, the VZ device *is* available for module selection.


Since I'm waiting for my kernel to compile, I can explain why I was somewhat staggered seeing that a working config had "CONFIG_VZ_QUOTA=m". The Howto I followed up ( http://wiki.openvz.org/Installation_on_Debian#or_build_your_ own_kernel-image_.28debian_way.29) said CONFIG_VZ_QUOTA should be included in the kernel .. is this a fault in the howto?

Hope to find out soon Smile



Problem solved!

Linux server 2.6.18-3-openvz #1 SMP Sun May 27 16:02:08 CEST 2007 i686

~ # vzlist -a
     VPSID      NPROC STATUS  IP_ADDR         HOSTNAME                        
       777          - stopped 192.168.1.28    -                               

~ # lsmod|grep vz
vznetdev               16384  1 
vzethdev               10152  0 
vzrst                 118964  0 
ip_nat                 17712  1 vzrst
vzcpt                  95620  0 
ip_conntrack           56224  3 vzrst,ip_nat,vzcpt
vzdquota               36212  0 [permanent]
vzmon                  40328  4 vznetdev,vzethdev,vzrst,vzcpt
vzdev                   3588  4 vznetdev,vzethdev,vzdquota,vzmon
ipv6                  235424  17 vzrst,vzcpt,vzmon


Guess I should update the wiki Smile
Previous Topic: *SOLVED* strange mount/umount issues
Next Topic: *SOLVED* Working with vlan's?
Goto Forum:
  


Current Time: Sun Aug 04 09:14:37 GMT 2024

Total time taken to generate the page: 0.02648 seconds