Re: [CentOS] chroot from 32-bit to 64-bit filesystem?

2010-10-20 Thread Mark Pryor


--- On Wed, 10/20/10, RedShift  wrote:

> From: RedShift 
> Subject: Re: [CentOS] chroot from 32-bit to 64-bit filesystem?
> To: "CentOS mailing list" 
> Date: Wednesday, October 20, 2010, 10:40 AM
>   On 10/20/10 19:23, Scott
> Johnson wrote:
> > I have a 32-bit PXE environment and I want to chroot
> to a CentOS x64 root filesystem.  Of course that
> doesn't work.  Any tricks or hacks that would allow me
> to do that?  Currently I get the error:
> >
> > chroot: /bin/bash: Exec format error
> >
> > What if I updated my PXE environment to 64-bit. 
> Could I then chroot to a 32-bit?
> > I use PXE to quickly troubleshoot both 32-bit and
> 64-bit arch.
> >
> > Thanks.
> > -Scott
> >
> 
> Booting an x86-64 kernel with the proper config options set
> to enable execution of 32 bit binaries should allow you to
> do that. I think.
> 
> 
> Glenn

Yes - chroot from x86_64 to i386 works fine.

Here's a fairly complete method to setup enough of a chroot to use yum and rpm. 
The host is x86_64 and the chroot will be i386 in LVM.

http://paste.ubuntu.com/517149/

-- 
Mark



  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] chroot from 32-bit to 64-bit filesystem?

2010-10-20 Thread Gordon Messmer
On 10/20/2010 10:23 AM, Scott Johnson wrote:
> What if I updated my PXE environment to 64-bit.  Could I then chroot to
> a 32-bit?
> I use PXE to quickly troubleshoot both 32-bit and 64-bit arch.

I'm pretty sure that you can run 64 bit executables only when you're 
running a 64 bit kernel.  If you install and run a 64 bit kernel in your 
system without changing anything else, you should be able to chroot to a 
64 bit environment.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] chroot from 32-bit to 64-bit filesystem?

2010-10-20 Thread RedShift
  On 10/20/10 19:23, Scott Johnson wrote:
> I have a 32-bit PXE environment and I want to chroot to a CentOS x64 root 
> filesystem.  Of course that doesn't work.  Any tricks or hacks that would 
> allow me to do that?  Currently I get the error:
>
> chroot: /bin/bash: Exec format error
>
> What if I updated my PXE environment to 64-bit.  Could I then chroot to a 
> 32-bit?
> I use PXE to quickly troubleshoot both 32-bit and 64-bit arch.
>
> Thanks.
> -Scott
>

Booting an x86-64 kernel with the proper config options set to enable execution 
of 32 bit binaries should allow you to do that. I think.


Glenn
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] chroot from 32-bit to 64-bit filesystem?

2010-10-20 Thread Scott Johnson
I have a 32-bit PXE environment and I want to chroot to a CentOS x64 root
filesystem.  Of course that doesn't work.  Any tricks or hacks that would
allow me to do that?  Currently I get the error:

chroot: /bin/bash: Exec format error

What if I updated my PXE environment to 64-bit.  Could I then chroot to a
32-bit?
I use PXE to quickly troubleshoot both 32-bit and 64-bit arch.

Thanks.
-Scott
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos