<div dir="ltr">Well, I tried to debug.<div>I copy created ploop template to CentOS7, create a container, then gdb vzctl start 101</div><div>With gdb, I found error occured in libvzctl, part of the stack is bellow<br></div><div><div><br></div><div><div>#0 write_data (path=path@entry=0x7fffffff9b90 "/sys/fs/cgroup/ve/101/ve.state", data=data@entry=0x7ffff7066cfc "START") at cgroup.c:161</div><div>#1 0x00007ffff7029376 in cg_set_param (ctid=ctid@entry=0x621e70 "101", subsys=subsys@entry=0x7ffff706aa6d "ve", name=name@entry=0x7ffff7066d02 "ve.s</div><div>tate", data=data@entry=0x7ffff7066cfc "START") at cgroup.c:235</div><div>#2 0x00007ffff703ba6d in start_container (h=0x621e70) at env_nsops.c:199</div><div>#3 real_ns_env_create (arg=0x7fffffffad40) at env_nsops.c:215</div><div>#4 0x00007ffff6d4f1ad in clone () from /lib64/libc.so.6</div></div><div><br></div><div>this thread is cloned from vzctl</div><div><br></div><div>From the source code, I can find in lib/cgroup.c function write_data line 161</div><div> here is "fd = open(path, O_WRONLY);"</div><div><br></div><div>So what on earth makes this "open" Permission Denied, what should I debug next ?</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-19 3:00 GMT+08:00 <span dir="ltr"><<a href="mailto:users-request@openvz.org" target="_blank">users-request@openvz.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Users mailing list submissions to<br>
<a href="mailto:users@openvz.org">users@openvz.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:users-request@openvz.org">users-request@openvz.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:users-owner@openvz.org">users-owner@openvz.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Can't open /sys/fs/cgroup/ve/$UUID/ve.state for writing:<br>
Permission denied (Alkaid)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 18 Aug 2015 16:53:12 +0800<br>
From: Alkaid <<a href="mailto:zgf574564920@gmail.com">zgf574564920@gmail.com</a>><br>
To: <a href="mailto:users@openvz.org">users@openvz.org</a><br>
Subject: [Users] Can't open /sys/fs/cgroup/ve/$UUID/ve.state for<br>
writing: Permission denied<br>
Message-ID:<br>
<<a href="mailto:CAJFQjcM8u-5F23EhhC3OkqHp_DgOT%2BLH6Xa-D0qfmYiet9jhKg@mail.gmail.com">CAJFQjcM8u-5F23EhhC3OkqHp_DgOT+LH6Xa-D0qfmYiet9jhKg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I am using Centos7+vzkernel+...<br>
When creating ostemplate, it always creates an temporary container to<br>
download and install packages. But vzctl can't open ve.state with O_WRONLY,<br>
result is EACCES ( Permission denied).<br>
cmd: vzpkg create cache centos-6-x86_64, full log is in the attachment<br>
<br>
I found an issue on <a href="http://bugs.openvz.org" rel="noreferrer" target="_blank">bugs.openvz.org</a> (<a href="https://bugs.openvz.org/browse/OVZ-6304" rel="noreferrer" target="_blank">https://bugs.openvz.org/browse/OVZ-6304</a>),<br>
I wonder why it was treated as "Feature Request" and a "Userspace" problem.<br>
<br>
On the same time, everything works fine in the cloudlinux, they have nearly<br>
the same environment<br>
kernel 3.10.0-123.1.2.vz7.5.29<br>
vzctl v.7.0.60-1.vz7<br>
libvzctl-7.0.89-1.1.vz7.x86_64<br>
vztt-7.0.22-1.vz7.x86_64<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.openvz.org/pipermail/users/attachments/20150818/6ca30776/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.openvz.org/pipermail/users/attachments/20150818/6ca30776/attachment-0001.html</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: stdout<br>
Type: application/octet-stream<br>
Size: 2468 bytes<br>
Desc: not available<br>
URL: <<a href="http://lists.openvz.org/pipermail/users/attachments/20150818/6ca30776/attachment-0001.obj" rel="noreferrer" target="_blank">http://lists.openvz.org/pipermail/users/attachments/20150818/6ca30776/attachment-0001.obj</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
<br>
<br>
End of Users Digest, Vol 118, Issue 15<br>
**************************************<br>
</blockquote></div><br></div>