WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Re: Mixed DomU Architectures

To: "Matthew Palmer" <mpalmer@xxxxxxxxxxx>
Subject: Re: [Xen-users] Re: Mixed DomU Architectures
From: "Dan Hawker" <danhawker@xxxxxxxxxxxxxxx>
Date: Fri, 2 Jun 2006 13:27:31 +0100 (BST)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 02 Jun 2006 05:28:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060601220109.GG11980@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <62886.194.203.13.71.1149132037.squirrel@xxxxxxxxxxxxxxxx> <447F1E91.3010608@xxxxxxxxxxxxx> <20060601220109.GG11980@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: SquirrelMail/1.5.1
>> How about building a chroot'ed 32bit tree within a domU ?
>> At least this is what I do in Debian for installing and running 32bit
>> packages from within 64bit environment.
>
> The problem, as I understand the OP, is that the software being built
> checks (something like) uname -m to see if it's building on a real 32-bit
> x86 machine.  This info comes directly from the kernel rather than through
> the userland, so it reports itself as 64-bit even though it's running in a
>  32-bit userland.
>
>
> A separate-but-related discussion is the (lack of) wisdom of asking the
> kernel what architecture to build for, rather than (eg) gcc, because of
> (a)
> this problem, and (b) the complete lack ability to support
> cross-compilation.  But, if it's good enough for Xen, it's good enough
> for the rest of us.
>
> - Matt
> (who has had to work around this very brain-damage building in 32 bit
> chroots)
>

Thanks Mats, Matt & Yuri for your input.

Luckily this is still yet into true production use, so have a bit of time.
For the moment I am going with Mats' idea of using "setarch i386 bash" as
all of my users ssh (or telnet on very rare occasions) into the machine in
question. All I've ended up doing is create a wrapper and replaced
/bin/bash with this and moved the original bash elsewhere.

Rudimentary testing on my part seems to show that it all works as
expected, however will get one of the developers to try and do some *real
work* on it in the next day or so to ensure it works as expected.

Will investigate some more and report in. I have an identical setup but it
uses non-x86_64 based Xeons. If all else fails I can always just install a
32-bit distro on it instead. Bizarrely we have another x86_64 machine that
my predecessor setup (non-Xen) that runs a x86_64 kernel yet uname reports
an i686 architecture. Will have to have a proper look and see how this was
achieved.

Thanks again

Dan




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>