[Devel] PPC64 Kernel 2.6.18 + RPM packages

Kirill Korotaev dev at sw.ru
Wed May 23 05:47:31 PDT 2007


looks like you have 32bit binaries in vzctl since configure script didn't add
-m64 to CFLAGS, though it has a code in configure.ac for this.
Checking...

Kirill

Christian Kaiser2 wrote:
> Hi all,
> 
> I did my first steps wtih OpenVZ on a JS21 Blade. I'm running FC6 and built
> my own 2.6.18 kernel from kernel.org with your latest patches (028stab31).
> I used the default kernel config (not yours but from vanilla kernel) and I
> removed support for checkpointing. There was no menu entry for the Fair CPU
> scheduler in the menuconfig for the powerpc architecture. The compilation
> failed printing the following lines:
> 
> In file included from drivers/media/video/pwc/pwc-uncompress.c:29:
> include/asm/current.h: In function ‘get_current’:
> include/asm/current.h:23: warning: implicit declaration of function
> ‘offsetof’
> include/asm/current.h:23: error: expected expression before ‘struct’
> make[4]: *** [drivers/media/video/pwc/pwc-uncompress.o] Error 1
> make[3]: *** [drivers/media/video/pwc] Error 2
> make[2]: *** [drivers/media/video] Error 2
> make[1]: *** [drivers/media] Error 2
> make: *** [drivers] Error 2
> 
> Then I replaced the include/asm/current.h file with the
> include/asm/current.h file of the vanilla kernel and compiled for new. Now
> it works. I could compile and boot the kernel with your patches (excluding
> the include/asm/current.h file).
> 
> After that I installed the ppc64 rpm packes of vzquota, vzctl and
> vzctl-lib. "vzkernel" and "vzquotamod" were missing so I had to force the
> installation (--nodeps) because I did the kernel compilation on my own,
> right?
> After installation I tried to run /etc/init.d/vz start but it faild because
> of a missing library libvzctl-0.0.2.so. I found it in /usr/lib64 instead of
> /usr/lib.
> 
> [root at s10b10-0 ~]# /etc/init.d/vz start
> Starting OpenVZ:                                           [  OK  ]
> Bringing up interface venet0:                              [  OK  ]
> Configuring interface venet0:                              [  OK  ]
> vzctl set 0 --cpuunits 1000 failed: /usr/sbin/vzctl: error [FAILED]ading
> shared libraries: libvzctl-0.0.2.so: cannot open shared object file: No
> such file or directory
> 
> It seems to be that there is a mixture of 32 and 64 bit binaries and libs.
> See that output of /usr/sbin:
> 
> [root at s10b10-0 sbin]# file vz*
> vzcalc:        ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1
> (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), for
> GNU/Linux 2.6.4, not stripped
> vzcfgvalidate: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1
> (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), for
> GNU/Linux 2.6.4, not stripped
> vzcpucheck:    Bourne-Again shell script text executable
> vzctl:         ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1
> (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), for
> GNU/Linux 2.6.4, not stripped
> vzdqcheck:     ELF 64-bit MSB executable, cisco 7500, version 1 (SYSV), for
> GNU/Linux 2.6.4, dynamically linked (uses shared libs), for GNU/Linux
> 2.6.4, stripped
> vzdqdump:      ELF 64-bit MSB executable, cisco 7500, version 1 (SYSV), for
> GNU/Linux 2.6.4, dynamically linked (uses shared libs), for GNU/Linux
> 2.6.4, stripped
> vzdqload:      ELF 64-bit MSB executable, cisco 7500, version 1 (SYSV), for
> GNU/Linux 2.6.4, dynamically linked (uses shared libs), for GNU/Linux
> 2.6.4, stripped
> vzlist:        ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1
> (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), for
> GNU/Linux 2.6.4, not stripped
> vzmemcheck:    ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1
> (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), for
> GNU/Linux 2.6.4, not stripped
> vzmigrate:     Bourne-Again shell script text executable
> vznetcfg:      Bourne-Again shell script text executable
> vzpid:         Bourne-Again shell script text executable
> vzquota:       ELF 64-bit MSB executable, cisco 7500, version 1 (SYSV), for
> GNU/Linux 2.6.4, dynamically linked (uses shared libs), for GNU/Linux
> 2.6.4, stripped
> vzsplit:       ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1
> (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), for
> GNU/Linux 2.6.4, not stripped
> 
> or here a 32 bit object file in /usr/lib64 directory ?!?
> 
> [root at s10b10-0 sbin]# file /usr/lib64/libvzctl-0.0.2.so
> /usr/lib64/libvzctl-0.0.2.so: ELF 32-bit MSB shared object, PowerPC or
> cisco 4500, version 1 (SYSV), not stripped
> 
> So moving the lib from /usr/lib64 to /usr/lib solved my problem but showed
> another error when starting /etc/init.d/vz start
> 
> [root at s10b10-0 vzctl-3.0.16]# /etc/init.d/vz start
> Starting OpenVZ:                                           [  OK  ]
> Bringing up interface venet0:                              [  OK  ]
> Configuring interface venet0:                              [  OK  ]
> vzctl set 0 --cpuunits 1000 failed: Setting CPU units: 1000
> fairsched_chwt: No such file or directory
> WARNING: Settings were not saved and will be resetted to or[FAILED]alues on
> next start (use --save flag)
> 
> What is "fairsched_chwt"? And why is it missing in my configuration?? An VE
> creation works fine:
> 
> [root at s10b10-0 cache]# vzctl create 101 --ostemplate
> debian-3.1-powerpc-minimal --ipadd 192.168.0.101 --hostname ve101
> Creating VE private area (debian-3.1-powerpc-minimal)
> Warning: Temp dir /vz/private/101.tmp already exists, deleting
> Performing postcreate actions
> VE private area was created
> 
> but starting an VE fails. There is no verbose output on that even when I
> switch it on.
> 
> [root at s10b10-0 ~]# vzctl --verbose start 101
> Starting VE ...
> VE is mounted
> VE start failed
> VE is unmounted
> [root at s10b10-0 ~]#
> 
> Can someone help me on this?
> 
> Mit freundlichen Grüßen / Best Regards
> Christian Kaiser
> --
> IBM Deutschland Entwicklung GmbH
> Open Systems Firmware Development
> mail: ckaiser2 at de.ibm.com
> 
> IBM Deutschland Entwicklung GmbH
> Vorsitzender des Aufsichtsrats: Martin Jetter
> Geschäftsführung: Herbert Kircher
> Sitz der Gesellschaft: Böblingen
> Registergericht: Amtsgericht Stuttgart, HRB 243294
> 
> _______________________________________________
> Devel mailing list
> Devel at openvz.org
> https://openvz.org/mailman/listinfo/devel
> 




More information about the Devel mailing list