[Users] Problem with /proc/vz/veinfo

Kir Kolyshkin kir at openvz.org
Thu Jul 6 05:43:46 EDT 2006


So, this time when the module is loaded there is no more "Unable to add 
IP 192.168.2.1: Inappropriate ioctl for device" error. So make sure this 
module is loaded.

This time there is no error, but a warning: "veth feature is not 
supported by kernel, skipped veth configure". If you really need veth 
functionality, check that vzethdev module is loaded:
lsmod | grep vzeth

If it is not loaded, load it.

PS You might want to check /etc/init.d/vz and make sure vznetdev (and 
vzethdev -- if you need it) are in.

Rachid Abdoun wrote:
> I don't think :
>
> phoenix:~# lsmod | grep vz
> vzrst 122992 0
> ip_nat 14644 1 vzrst
> vzcpt 99392 0
> ip_conntrack 49448 3 vzrst,ip_nat,vzcpt
> vzdquota 39028 0 [permanent]
> vzmon 45984 2 vzrst,vzcpt
> vzdev 2468 2 vzdquota,vzmon
>
> phoenix:~# modprobe vznetdev
>
> phoenix:~# lsmod | grep vz
> vznetdev 13856 0
> vzrst 122992 0
> ip_nat 14644 1 vzrst
> vzcpt 99392 0
> ip_conntrack 49448 3 vzrst,ip_nat,vzcpt
> vzdquota 39028 0 [permanent]
> vzmon 45984 3 vznetdev,vzrst,vzcpt
> vzdev 2468 3 vznetdev,vzdquota,vzmon
>
> phoenix:~# vzctl start 101
> Starting VPS ...
> VPS is mounted
> Setting CPU units: 1000
> Set hostname: vps101
> File resolv.conf was modified
> Processing veth devices
> Warning: veth feature is not supported by kernel, skipped veth configure
> VPS start in progress...
>
> 101.conf :
>
> # Copyright (C) 2000-2006 SWsoft. All rights reserved.
> #
> # This program is free software; you can redistribute it and/or modify
> # it under the terms of the GNU General Public License as published by
> # the Free Software Foundation; either version 2 of the License, or
> # (at your option) any later version.
> #
> # This program is distributed in the hope that it will be useful,
> # but WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> # GNU General Public License for more details.
> #
> # You should have received a copy of the GNU General Public License
> # along with this program; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
> #
>
> ONBOOT="no"
>
> # UBC parameters (in form of barrier:limit)
> # Primary parameters
> AVNUMPROC="40:40"
> NUMPROC="65:65"
> NUMTCPSOCK="80:80"
> NUMOTHERSOCK="80:80"
> VMGUARPAGES="6144:2147483647"
> # Secondary parameters
> KMEMSIZE="2752512:2936012"
> TCPSNDBUF="319488:524288"
> TCPRCVBUF="319488:524288"
> OTHERSOCKBUF="132096:336896"
> DGRAMRCVBUF="132096:132096"
> OOMGUARPAGES="6144:2147483647"
> # Auxiliary parameters
> LOCKEDPAGES="32:32"
> SHMPAGES="8192:8192"
> PRIVVMPAGES="49152:53575"
> NUMFILE="2048:2048"
> NUMFLOCK="100:110"
> NUMPTY="16:16"
> NUMSIGINFO="256:256"
> DCACHESIZE="1048576:1097728"
>
> PHYSPAGES="0:2147483647"
> NUMIPTENT="128:128"
>
> # Disk quota parameters (in form of softlimit:hardlimit)
> DISKSPACE="1048576:1153434"
> DISKINODES="200000:220000"
> QUOTATIME="0"
>
> # CPU fair sheduler parameter
> CPUUNITS="1000"
> VE_ROOT="/var/lib/vz/root/$VEID"
> VE_PRIVATE="/var/lib/vz/private/$VEID"
> OSTEMPLATE="debian-3.1-i386-minimal"
> ORIGIN_SAMPLE="vps.basic"
> HOSTNAME="vps101"
> NAMESERVER="192.168.1.1"
> VETH="vif1.0,00:12:34:56:78:9A,eth0,00:12:34:56:78:9B "
>
> Have another idea?!
>
>
> Le 4 juil. 06 à 13:22, Kir Kolyshkin a écrit :
>
>> It looks like vznetdev module is not loaded. Try loading it manually:
>>
>> /sbin/modprobe vznetdev
>>
>> Rachid Abdoun wrote:
>>> Hi,
>>>
>>> More responses: :-)
>>>
>>> Boot your system the right kernel -> have you modified your bootloader
>>> e.g. grub or lilo ?
>>>
>>> I use grub check my menu.lst :
>>>
>>> title OpenVZ , kernel 2.6.16-026test014
>>> root (hd0,0)
>>> kernel /vmlinuz-2.6.16-026test014 root=/dev/hda7 ro
>>> savedefault
>>> boot
>>>
>>> title OpenVZ , kernel 2.6.16-026test014 (recovery mode)
>>> root (hd0,0)
>>> kernel /vmlinuz-2.6.16-026test014 root=/dev/hda7 ro single
>>> savedefault
>>> boot
>>>
>>> title Debian GNU/Linux, kernel 2.6.8-2-386
>>> root (hd0,0)
>>> kernel /vmlinuz-2.6.8-2-386 root=/dev/hda7 ro
>>> initrd /initrd.img-2.6.8-2-386
>>> savedefault
>>> boot
>>>
>>> title Debian GNU/Linux, kernel 2.6.8-2-386 (recovery mode)
>>> root (hd0,0)
>>> kernel /vmlinuz-2.6.8-2-386 root=/dev/hda7 ro single
>>> initrd /initrd.img-2.6.8-2-386
>>> savedefault
>>> boot
>>>
>>> Which version show "uname -r" ?
>>>
>>> phoenix:~# uname -r
>>> 2.6.16-026test014
>>>
>>> Are the modules "vzmon vzdquota vzdev" loaded ?
>>>
>>> phoenix:~# lsmod | grep vzmon
>>> vzmon 45984 2 vzrst,vzcpt
>>> vzdev 2468 2 vzdquota,vzmon
>>>
>>> phoenix:~# lsmod | grep vzquota
>>> => Nothing!
>>>
>>> Are the modules on the right place :
>>> /lib/modules/`uname -r`/kernel/kernel/vzmon.ko
>>>
>>> bash: /lib/modules/2.6.16-026test014/kernel/kernel/vzmon.ko: 
>>> Permission non accord?e
>>>
>>> /lib/modules/`uname -r`/kernel/fs/vzdquota.ko
>>>
>>> bash: /lib/modules/2.6.16-026test014/kernel/fs/vzdquota.ko: 
>>> Permission non accord?e
>>>
>>> /lib/modules/`uname -r`/kernel/kernel/vzdev.ko
>>>
>>> bash: /lib/modules/2.6.16-026test014/kernel/kernel/vzdev.ko: 
>>> Permission non accord?e
>>>
>>> I still have a problem :
>>>
>>> phoenix:~# vzctl start 101
>>> Starting VPS ...
>>> VPS is mounted
>>> Adding IP address(es): 192.168.2.1
>>> Unable to add IP 192.168.2.1: Inappropriate ioctl for device
>>> Unable to del IP 192.168.2.1: Inappropriate ioctl for device
>>> VPS start failed
>>> Stopping VPS ...
>>> VPS was stopped
>>> vzquota : (error) Quota off syscall for id 101: Device or resource busy
>>> vzquota off failed [3]
>>>
>>> Conf file of 101 :
>>>
>>> phoenix:~# cat /etc/vz/conf/101.conf
>>> # Copyright (C) 2000-2006 SWsoft. All rights reserved.
>>> #
>>> # This program is free software; you can redistribute it and/or modify
>>> # it under the terms of the GNU General Public License as published by
>>> # the Free Software Foundation; either version 2 of the License, or
>>> # (at your option) any later version.
>>> #
>>> # This program is distributed in the hope that it will be useful,
>>> # but WITHOUT ANY WARRANTY; without even the implied warranty of
>>> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
>>> # GNU General Public License for more details.
>>> #
>>> # You should have received a copy of the GNU General Public License
>>> # along with this program; if not, write to the Free Software
>>> # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 
>>> 02111-1307 USA
>>> #
>>>
>>> ONBOOT="no"
>>>
>>> # UBC parameters (in form of barrier:limit)
>>> # Primary parameters
>>> AVNUMPROC="40:40"
>>> NUMPROC="65:65"
>>> NUMTCPSOCK="80:80"
>>> NUMOTHERSOCK="80:80"
>>> VMGUARPAGES="6144:2147483647"
>>> # Secondary parameters
>>> KMEMSIZE="2752512:2936012"
>>> TCPSNDBUF="319488:524288"
>>> TCPRCVBUF="319488:524288"
>>> OTHERSOCKBUF="132096:336896"
>>> DGRAMRCVBUF="132096:132096"
>>> OOMGUARPAGES="6144:2147483647"
>>> # Auxiliary parameters
>>> LOCKEDPAGES="32:32"
>>> SHMPAGES="8192:8192"
>>> PRIVVMPAGES="49152:53575"
>>> NUMFILE="2048:2048"
>>> NUMFLOCK="100:110"
>>> NUMPTY="16:16"
>>> NUMSIGINFO="256:256"
>>> DCACHESIZE="1048576:1097728"
>>>
>>> PHYSPAGES="0:2147483647"
>>> NUMIPTENT="128:128"
>>>
>>> # Disk quota parameters (in form of softlimit:hardlimit)
>>> DISKSPACE="1048576:1153434"
>>> DISKINODES="200000:220000"
>>> QUOTATIME="0"
>>>
>>> # CPU fair sheduler parameter
>>> CPUUNITS="1000"
>>> VE_ROOT="/var/lib/vz/root/$VEID"
>>> VE_PRIVATE="/var/lib/vz/private/$VEID"
>>> OSTEMPLATE="debian-3.1-i386-minimal"
>>> ORIGIN_SAMPLE="vps.basic"
>>> HOSTNAME="vps101"
>>> NAMESERVER="192.168.1.1"
>>> VETH="vif1.0,00:12:34:56:78:9A,eth0,00:12:34:56:78:9B "
>>> IP_ADDRESS="192.168.2.1"
>>> phoenix:~#
>>>
>>> Can load manually the module above, and listed by lsmod ?
>>>
>>> Yes but that don't resolve the problem...
>>>
>>> Whay can I do? Thanks!!!
>>>
>>> Rachid
>>>
>>>
>>>
>>> Le 1 juil. 06 à 16:42, Thorsten Schifferdecker a écrit :
>>>
>>>> Hi,
>>>>
>>>> More questions: :-)
>>>>
>>>> Boot your system the right kernel -> have you modified your bootloader
>>>> e.g. grub or lilo ?
>>>>
>>>> Which version show "uname -r" ?
>>>>
>>>> Are the modules "vzmon vzdquota vzdev" loaded ?
>>>>
>>>> Are the modules on the right place :
>>>> /lib/modules/`uname -r`/kernel/kernel/vzmon.ko
>>>> /lib/modules/`uname -r`/kernel/fs/vzdquota.ko
>>>> /lib/modules/`uname -r`/kernel/kernel/vzdev.ko
>>>>
>>>> Can load manually the module above, and listed by lsmod ?
>>>>
>>>> Thorsten
>>>>
>>>> At Sa, 1.07.2006, 13:53, wrote Rachid Abdoun:
>>>>> Yes i build myself
>>>>>
>>>>> I use this config http://download.openvz.org/kernel/devel/
>>>>> 026test014.4/configs/kernel-2.6.16-026test014-i686.config.ovz to
>>>>> build it....
>>>>>
>>>>> What can I do?
>>>>>
>>>>> Thank you
>>>>>
>>>>> Le 1 juil. 06 à 10:09, Thorsten Schifferdecker a écrit :
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> have you build your own kernel and enabled the modules needed
>>>>>> for openvz ?
>>>>>>
>>>>>> Thorsten
>>>>>>
>>>>>> At Sa, 1.07.2006, 02:15, wrote Rachid Abdoun:
>>>>>>> Yes I did :
>>>>>>>
>>>>>>> phoenix:~# /etc/init.d/vz start
>>>>>>> Starting OpenVZ: ..done
>>>>>>> phoenix:~# vzlist
>>>>>>> Unable to open /proc/vz/veinfo
>>>>>>> VPS not found
>>>>>>>
>>>>>>> I'm running debian sarge 3.1 what can I do?
>>>>>>>
>>>>>>> Le 29 juin 06 à 17:40, Kir Kolyshkin a écrit :
>>>>>>>
>>>>>>>> Looks like OpenVZ kernel modules are not loaded.
>>>>>>>>
>>>>>>>> Have you started vz subsystem? I mean running
>>>>>>>> /etc/init.d/vz start
>>>>>>>>
>>>>>>>> Rachid Abdoun wrote:
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I'm running a debian sarge 3.1 with kernel 2.6.16 with this
>>>>>>>>> patch 
>>>>>>>>> http://download.openvz.org/kernel/devel/026test014.4/patches/
>>>>>>>>> patch-026test014-combined.gz
>>>>>>>>> and i installed the latest tools :
>>>>>>>>>
>>>>>>>>> phoenix:~# vzctl --version
>>>>>>>>> vzctl version 3.0.10
>>>>>>>>>
>>>>>>>>> phoenix:~# vzquota --version
>>>>>>>>> Vzquota version 2.5.0
>>>>>>>>>
>>>>>>>>> when i list the virual personal servers i have this *errorS* :
>>>>>>>>>
>>>>>>>>> *phoenix:~# vzlist *
>>>>>>>>> *Unable to open /proc/vz/veinfo*
>>>>>>>>> *VPS not fouun*
>>>>>>>>>
>>>>>>>>> and when I stop a server I have this :
>>>>>>>>>
>>>>>>>>> *phoenix:~# vzctl stop 101*
>>>>>>>>> *Unable to open /proc/vz/veinfo: No such file or directory*
>>>>>>>>> *Stopping VPS ...*
>>>>>>>>>
>>>>>>>>> what's happen? Could someone help me?
>>>>>>>>>
>>>>>>>>> Thank you
>>>>>>
>>>>>> _______________________________________________
>>>>>> Users mailing list
>>>>>> Users at openvz.org <mailto:Users at openvz.org>
>>>>>> https://openvz.org/mailman/listinfo/users
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at openvz.org <mailto:Users at openvz.org>
>>>>> https://openvz.org/mailman/listinfo/users
>>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at openvz.org <mailto:Users at openvz.org>
>>>> https://openvz.org/mailman/listinfo/users
>>>
>>> ------------------------------------------------------------------------ 
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at openvz.org
>>> https://openvz.org/mailman/listinfo/users
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openvz.org
>> https://openvz.org/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://openvz.org/mailman/listinfo/users
>


More information about the Users mailing list