[libvirt] lxc: shutdown $domain broken in 1.2.2

host: centos-6.5 kernel: 3.13.2-4.el6.x86_64 guest: fedora20 since libvirt-1.2.2 i can not shutdown this domain. works fine with libvirt-1.2.1 # virsh shutdown fedora2 error: Failed to shutdown domain fedora2 error: Mount namespaces are not available on this platform: Function not implemented from the logfile: 14478: error : virProcessRunInMountNamespace:982 : Mount namespaces are not available on this platform: Function not implemented the buildhost for the rpm is a centos-6.5 system with kernel 3.1.8 (dont ask! its a vserver system) and the test for "setns" failed configure:9592: checking for setns configure:9592: gcc -std=gnu99 -o conftest -g -O2 conftest.c >&5 /tmp/cchlir6v.o: In function `main': /builddir/build/BUILD/libvirt-1.2.2/conftest.c:184: undefined reference to `setns' collect2: ld returned 1 exit status setns() was added in glibc-2.14 centos6 has glibc-2.12 attached is a fix for this problem. stolen from: http://cgit.freedesktop.org/systemd/systemd/commit/src/shared/missing.h?id=3... /stephan -- Software is like sex, it's better when it's free!

Does this problem has any progress now? I have the same problem. # virsh shutdown vm1 error: Failed to shutdown domain vm1 error: Mount namespaces are not available on this platform: Function not implemented from the logfile: [2014-05-06 15:26:57 CST]: libvirtd : 5194: error : virProcessRunInMountNamespace:960 : Mount namespaces are not available on this platform: Function not implemented My glibc version is glibc-2.11.3-17.54.1, and virProcessRunInMountNamespace takes the "!HAVE_SETNS" branch. Thanks.
-----Original Message----- From: libvir-list-bounces@redhat.com [mailto:libvir-list-bounces@redhat.com] On Behalf Of Stephan Sachse Sent: Monday, March 03, 2014 8:49 PM To: libvir-list@redhat.com Subject: [libvirt] lxc: shutdown $domain broken in 1.2.2
host: centos-6.5 kernel: 3.13.2-4.el6.x86_64 guest: fedora20
since libvirt-1.2.2 i can not shutdown this domain. works fine with libvirt-1.2.1
# virsh shutdown fedora2 error: Failed to shutdown domain fedora2 error: Mount namespaces are not available on this platform: Function not implemented
from the logfile: 14478: error : virProcessRunInMountNamespace:982 : Mount namespaces are not available on this platform: Function not implemented
the buildhost for the rpm is a centos-6.5 system with kernel 3.1.8 (dont ask! its a vserver system) and the test for "setns" failed
configure:9592: checking for setns configure:9592: gcc -std=gnu99 -o conftest -g -O2 conftest.c >&5 /tmp/cchlir6v.o: In function `main': /builddir/build/BUILD/libvirt-1.2.2/conftest.c:184: undefined reference to `setns' collect2: ld returned 1 exit status
setns() was added in glibc-2.14 centos6 has glibc-2.12
attached is a fix for this problem.
stolen from: http://cgit.freedesktop.org/systemd/systemd/commit/src/shared/missing.h?i d=3b794314149e40afaf3c456285e1e529747b6560
/stephan
-- Software is like sex, it's better when it's free!
participants (2)
-
Stephan Sachse
-
Wangrui (K)