OpenVZ Forum


Home » General » Support » Container only runs with "strace -ff" in Debian 2.6.32-5 (Container only runs with "strace -ff" in Debian 2.6.32-5)
Container only runs with "strace -ff" in Debian 2.6.32-5 [message #45168] Fri, 03 February 2012 15:50 Go to next message
ShutdownComplete is currently offline  ShutdownComplete
Messages: 2
Registered: February 2012
Junior Member
EDIT: i finally resorted to compiling a kernel with the OpenVZ patch, and all is working now.

Would still be nice to know though what the problem is with the standard Debian Squeeze OpenVZ packages.

- - -

Container only runs with "strace -ff" in Debian 2.6.32-5

Hi all,

my container stops running right after start. It starts and then quits.

I'm on Debian 2.6.32-5-openvz-686 #1 SMP Mon Jan 16 17:54:17 UTC 2012 i686 GNU/Linux, openvz straight from the repository.


Here is the log for the usual start:

# vzctl start 99
Starting container ...
Running: /usr/sbin/vzquota show 99 
Running: /usr/sbin/vzquota on 99 -r 0 -b 1048676 -B 1153124 -i 200100 -I 220100 -e 0 -n 0 -s 0 
Mounting root: /var/lib/vz/root/99 /var/lib/vz/private/99
Container is mounted
Set iptables mask 0x000017bf
Set features mask 0000000000000001/0000000000000001
Adding IP address(es): 192.168.1.20
Running: /usr/lib/vzctl/scripts/vps-net_add 
Running container script: /etc/vz/dists/scripts/suse-add_ip.sh
Setting CPU units: 1000
Configuring meminfo: 65536
Running container script: /etc/vz/dists/scripts/set_dns.sh
File resolv.conf was modified
Running: /usr/sbin/vzquota stat 99 -f 
Running: vzquota setlimit 99 -b 1048576 -B 1153024 -i 200000 -I 220000 -e 0 -n 0 
Container start in progress...


But then the container stops:
# vzctl exec 99 ps ax
Container is not running

Ok, let's try with strace:

# strace -o stracelog vzctl start 99

Please find attached the paste from strace, i can;t post a link to pastebin yet.


What i see there is a reference to "/etc/vz/conf/99.start":
stat64("/etc/vz/conf/99.start", 0xbfc9fac4) = -1 ENOENT (No such file or directory)

And that's true: that file does not exist. Should it exist?

The weird thing is: if i run

# strace -ff -o stracelog-ff vzctl start 99

then everything works perfectly!

Only problem is: it's very hard to stop a running container, it's like it doesn't listen anymore.

Any ideas? Is this an ionice problem?


Greetings,


EJ


  • Attachment: stracelog
    (Size: 21.95KB, Downloaded 167 times)

[Updated on: Tue, 07 February 2012 12:54]

Report message to a moderator

Re: Container only runs with "strace -ff" in Debian 2.6.32-5 [message #45569 is a reply to message #45168] Tue, 20 March 2012 01:18 Go to previous messageGo to next message
rakiklaus is currently offline  rakiklaus
Messages: 5
Registered: March 2012
Junior Member
Hello,

I am having a similar problem to you where the container stops immediately after created. Yes with the strace command as you said,
the container can stay on , but it is in a locked state and you can not access it.

Can you give me please, details on how you compiled your kernel patch?

I am also on Debian Lenny and am using this kernel:
victor@openvz:~$ uname -a
Linux openvz 2.6.32-5-openvz-686 #1 SMP Mon Jan 16 17:54:17 UTC 2012 i686 GNU/Linux
victor@openvz:~$


Victor


Re: Container only runs with "strace -ff" in Debian 2.6.32-5 [message #45570 is a reply to message #45569] Tue, 20 March 2012 10:26 Go to previous messageGo to next message
ShutdownComplete is currently offline  ShutdownComplete
Messages: 2
Registered: February 2012
Junior Member
Hi Victor,

the short version goes like this.

Get the kernelpatch and the kernelconfigfile from openvz.
Get the vanilla kernel from openvz, there's a link to the kernel on the openvz download site.

Extract the kernel and patch it like described in the previous link.

To compile tour kernel follow the standard procedure for Debian.

except that instead of the ".config" file you use the config file supplied by openvz:

the file called kernel-2.6.18-i686-smp.config.ovz

I cannot use links in this post.



EJ


icon7.gif  Re: Container only runs with "strace -ff" in Debian 2.6.32-5 [message #45583 is a reply to message #45570] Tue, 20 March 2012 17:30 Go to previous message
rakiklaus is currently offline  rakiklaus
Messages: 5
Registered: March 2012
Junior Member
Dear EJ,

I will try that later this afternoon and let you know how it works. Thank you!

Victor
javascript:%20insertTag(document.post_form.msg_body,%20'',%2 0'%20:)%20');
Previous Topic: Debian Lenny created container immediately stops
Next Topic: CSF xt_connlimit on vm failed
Goto Forum:
  


Current Time: Thu Mar 28 22:44:36 GMT 2024

Total time taken to generate the page: 0.01876 seconds