[Users] IBM PowerPC

Rick Leir suser at a926.virtualorgs.net
Thu Feb 27 08:40:12 PST 2014


On Thu, 2014-02-27 at 08:38 -0500, Rick Leir wrote:

> I got the vzctl source (latest version) onto a PowerPC server with
> RedHat
> 6. Configured it as recommended:
>   ./configure --with-cgroup --without-ploop --enable-bashcomp
> --prefix=/usr 
> 
> The kernel version is in the dir names:
>   /usr/src/debug/kernel-2.6.32-358.el6/linux-2.6.32-358.el6.ppc64/arch/powerpc/include/asm/unistd.h
>   /usr/src/kernels/2.6.32-358.el6.ppc64/arch/powerpc/include/asm/unistd.h
> 
> The compiler error was 
>   no declaration for __NR_setns


A simple patch for vzctl:

--- vzctl-4.6.1/src/lib/hooks_ct.c      2014-02-27 09:00:56.885192592 -0600
+++ vzctl-4.6.1r/src/lib/hooks_ct.c     2014-02-27 09:00:22.405096553 -0600
@@ -30,6 +30,8 @@
 #define __NR_setns     346
 #elif defined __x86_64__
 #define __NR_setns     308
+#elif defined __powerpc__
+#define __NR_setns     350
 #else
 #error "No setns syscall known for this arch"
 #endif


This patch solves the compile error, and now vzctl can be installed on
IBM RedHat 6, PowerPC 7. Would somone with commit privileges like to
apply the patch? The patch seems harmless since the sys_setns() function
does not seem to get called from anything.
src/lib/hooks_ct.c:static int sys_setns(int fd, int nstype)


Now, my question is:  This page (2013) suggests that it is easy to
create a new template:
http://openvz.org/Creating_a_CentOS_6_Template
and this (2008)
http://wiki.openvz.org/Creating_a_Red_Hat_Template_with_mach

But these pages (2011) say that you need to start with a precreated
template:
https://openvz.org/OS_template_cache_preparation
http://wiki.openvz.org/OS_template_metadata

Can I create my template as described for Centos in the first link?

Thanks
Rick 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/users/attachments/20140227/4cb95ff3/attachment.html>


More information about the Users mailing list