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 previous 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 174 times)

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

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message icon7.gif
Previous Topic: Debian Lenny created container immediately stops
Next Topic: CSF xt_connlimit on vm failed
Goto Forum:
  


Current Time: Sun Apr 28 11:37:57 GMT 2024

Total time taken to generate the page: 0.02342 seconds