OpenVZ Forum


Home » General » Support » Problem loading vzctl module
Problem loading vzctl module [message #20164] Wed, 12 September 2007 17:19 Go to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
I want to do a migration between two OpenVZ machines running the same kernel but I've run into a problem. Here's the stats of the two machines:

Host distribution: CentOS 4.5
kernel: Latest RHEL4 kernel - 2.6.9-023stab044.4-smp

vzmigrate gave me the following error:

Quote:

Error: vzcpt module is not loaded on the source node
Error: Can't continue online migration


Ok, so I'll try and load it:

Quote:

[root@hprack5 ~]# modprobe vzctl
FATAL: Module vzctl not found.

[root@hprack5 ~]# uname -a
Linux hprack5.cs.montana.edu 2.6.9-023stab044.4-smp #1 SMP Mon May 28 23:18:17 MSD 2007 i686 i686 i386 GNU/Linux

[root@hprack5 ~]# locate vzcpt
/lib/modules/2.6.9-023stab044.4-smp/kernel/kernel/cpt/vzcpt. ko

[root@hprack5 ~]# insmod vzcpt
insmod: can't read 'vzcpt': No such file or directory

[root@hprack5 ~]# lsmod | grep vz
vzethdev 8008 0
vzdquota 45520 3 [permanent]
vznetdev 14048 7
vzmon 49196 5 vzethdev,vznetdev
vzdev 2208 4 vzethdev,vzdquota,vznetdev,vzmon


I'm sure if I reboot the hardware node, it'll work again... but I'd rather not do that and find a way around this issue... and I'm not in a hurry to do the migration so I can wait a while if anyone is willing to provide me with a fix or help me troubleshoot.

Oh, btw... I have a good uptime on my system so that's great:

Quote:

[root@hprack5 ~]# w
11:28:58 up 106 days, 34 min, 6 users, load average: 0.03, 0.13, 0.17


--
TYL, Scott Dowdle
Belgrade, Montana, USA

[Updated on: Wed, 12 September 2007 17:30]

Report message to a moderator

Re: Problem loading vzctl module [message #20175 is a reply to message #20164] Wed, 12 September 2007 21:00 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Quote:

[root@hprack5 ~]# modprobe vzctl
FATAL: Module vzctl not found.



Should be vzcpt not vzctl Smile

PS Insmod did't work either because it expects file name (with a path) not a module name -- i.e. it's lower-level interface.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Problem loading vzctl module [message #20179 is a reply to message #20175] Wed, 12 September 2007 22:46 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
Quote:

Should be vzcpt not vzctl


Yeah, I know that... and the problem I had WAS with vzcpt, it's just I typed/pasted the wrong thing when I was writing up the forum posting. Let me try again:

Quote:

[root@hprack5 ~]# modprobe vzcpt
FATAL: Module vzcpt not found.
[root@hprack5 ~]#


Now do you believe me? All of the other previous output is valid.

I could have sworn I've used insmod before with just the name of the module (no path info included) and it just worked... but perhaps I was imagining that... so I tried it with the full path:

Quote:

[root@hprack5 ~]# insmod /lib/modules/2.6.9-023stab044.4-smp/kernel/kernel/cpt/vzcpt. ko
insmod: error inserting '/lib/modules/2.6.9-023stab044.4-smp/kernel/kernel/cpt/vzcpt .ko': -1 Unknown symbol in module
[root@hprack5 ~]#


I'm not missing something because that's the only one to use, right?

Quote:

[root@hprack5 ~]# rpm -ql ovzkernel-smp-2.6.9-023stab044.4 | grep vzcpt
/lib/modules/2.6.9-023stab044.4-smp/kernel/kernel/cpt/vzcpt. ko
[root@hprack5 ~]#


Please note that I'm having the same problem on both the source and destination hosts (running the same host OS and OpenVZ kernel)... neither one have the vzcpt module loaded and neither system want to load it.

I'm hoping I'm just having a silly brain fart and that it is something simple... something I'm doing wrong... but it's stumping me so far.


--
TYL, Scott Dowdle
Belgrade, Montana, USA

[Updated on: Wed, 12 September 2007 23:00]

Report message to a moderator

Re: Problem loading vzctl module [message #20181 is a reply to message #20179] Wed, 12 September 2007 23:21 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Anything about it in dmesg? What does uname -a shows? Have you tried rerunning depmod -ae? What does it shows?

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Problem loading vzctl module [message #20229 is a reply to message #20181] Thu, 13 September 2007 15:16 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
dmesg shows:
Quote:

vzcpt: Unknown symbol ip_conntrack_lock
vzcpt: Unknown symbol ip_conntrack_htable_size


I already gave you the uname -a but I'll do it again:
Quote:

[root@hprack5 ~]# uname -a
Linux hprack5.cs.montana.edu 2.6.9-023stab044.4-smp #1 SMP Mon May 28 23:18:17 MSD 2007 i686 i686 i386 GNU/Linux


depmod -ae produces no output. Looking at the man page for depmod, -a isn't listed... so I tried -A in addition and it didn't produce any out put either.


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: Problem loading vzctl module [message #20230 is a reply to message #20229] Thu, 13 September 2007 15:35 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
So, I manually loaded ip_conntrack and then manually loaded vzcpt (both with insmod and the full path) and it works now.

Why the system couldn't figure it out on its own, I'm not sure.

Forgive my ignorance on module management... I used to be better at it a few years ago... but have gotten rusty. So, I'm guessing there is something I can add to my /etc/modprobe.conf to make it more intelligent?

I already have:
Quote:

options ip_conntrack ip_conntrack_enable_ve0=1



--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: Problem loading vzctl module [message #20234 is a reply to message #20230] Thu, 13 September 2007 16:25 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

That's strange... I guess in that case ipt_conntrack should be loaded automagically. I will check with my colleagues tomorrow (it 8:30pm here...).

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: i have problem with apf and csf any firewall
Next Topic: CentOS 5 and x86_64 problem
Goto Forum:
  


Current Time: Tue Jul 29 20:53:53 GMT 2025

Total time taken to generate the page: 0.09089 seconds