faking arch [message #3351] |
Tue, 23 May 2006 21:10 |
dlzinc
Messages: 34 Registered: March 2006
|
Member |
|
|
I have a 64-bit system running a 64-bit kernel and a mix of CentOS 64-bit and CentOS 32-bit VEs. The problem is that some software uses the (uname) arch to determine whether the system is running a 64-bit OS or a 32-bit OS, of course it gets confused when it can't find 64-bit libraries in CentOS 32-bit...
Is there a way I can fake arch per-vps? i.e. have it so that calls made to the kernel requesting it to report the arch will report x64_64 for some VEs and i686/i386 for others?
|
|
|
|
|
Re: faking arch [message #3955 is a reply to message #3937] |
Mon, 26 June 2006 02:27 |
dlzinc
Messages: 34 Registered: March 2006
|
Member |
|
|
The uname script only works for things that actually call /bin/uname. At the moment, I've replaced /bin/bash with a slightly modified setarch that setarch's then runs the real bash. Is there a bug open or version-eta for the vzctl setarch feature?
Something interesting...
If I do:
setarch i686 vzctl start 200
then SSH into the VPS and do uname -ar, it will say i686. If I do vzctl enter 200, it'll say x86_64.
So for now, a "cleaner" solution seems to be doing setarch to vzctl.
|
|
|
|