[libvirt] lxc: shutdown $domain broken in 1.2.2

Stephan Sachse ste.sachse at gmail.com
Mon Mar 3 12:48:49 UTC 2014


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=3b794314149e40afaf3c456285e1e529747b6560

/stephan

-- 
Software is like sex, it's better when it's free!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-1.2.2-setns-syscall.patch
Type: text/x-patch
Size: 2825 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140303/4cfed2bf/attachment-0001.bin>


More information about the libvir-list mailing list