Re: [gentoo-user] [SOLVED] Can I run a 32-bit CentOS chroot on a 64-bit Gentoo host?

2017-02-09 Thread Rich Freeman
On Thu, Feb 9, 2017 at 8:47 AM, Walter Dnes wrote: > On Wed, Feb 08, 2017 at 08:27:41PM -0500, Rich Freeman wrote > >> As you can see, there is limited ability for even root to accidentally >> mess something up. If you bind-mount /dev in a regular chroot >> (without a hardening technology on top)

Re: [gentoo-user] [SOLVED] Can I run a 32-bit CentOS chroot on a 64-bit Gentoo host?

2017-02-09 Thread Walter Dnes
On Wed, Feb 08, 2017 at 08:27:41PM -0500, Rich Freeman wrote > As you can see, there is limited ability for even root to accidentally > mess something up. If you bind-mount /dev in a regular chroot > (without a hardening technology on top) and something running as root > in the chroot tries to wr

Re: [gentoo-user] [SOLVED] Can I run a 32-bit CentOS chroot on a 64-bit Gentoo host?

2017-02-09 Thread Neil Bothwick
On Wed, 8 Feb 2017 20:27:41 -0500, Rich Freeman wrote: > > It shouldn't matter that they are bind-mounted. The -x switch excludes > > anything on a different filesystem. > > > > Agree, but I will note that one of the advantages of using a container > and mounting a new /dev is that you get a gr

Re: [gentoo-user] [SOLVED] Can I run a 32-bit CentOS chroot on a 64-bit Gentoo host?

2017-02-08 Thread Rich Freeman
On Wed, Feb 8, 2017 at 7:36 PM, Neil Bothwick wrote: > > It shouldn't matter that they are bind-mounted. The -x switch excludes > anything on a different filesystem. > Agree, but I will note that one of the advantages of using a container and mounting a new /dev is that you get a greatly reduced

Re: [gentoo-user] [SOLVED] Can I run a 32-bit CentOS chroot on a 64-bit Gentoo host?

2017-02-08 Thread Neil Bothwick
On Wed, 8 Feb 2017 17:28:44 -0500, Walter Dnes wrote: > > If you used the -x switch with rsync, the contents of sys, dev and > > proc won't be copied n the first place, nor will the contents of any > > other mounted filesystems. > > > > That's if you rsynced from a running VM. If you used qemu-nd

Re: [gentoo-user] [SOLVED] Can I run a 32-bit CentOS chroot on a 64-bit Gentoo host?

2017-02-08 Thread Walter Dnes
On Wed, Feb 08, 2017 at 08:45:03AM +, Neil Bothwick wrote > If you used the -x switch with rsync, the contents of sys, dev and proc > won't be copied n the first place, nor will the contents of any other > mounted filesystems. > > That's if you rsynced from a running VM. If you used qemu-ndb

Re: [gentoo-user] [SOLVED] Can I run a 32-bit CentOS chroot on a 64-bit Gentoo host?

2017-02-08 Thread Neil Bothwick
On Tue, 7 Feb 2017 20:33:57 -0500, Walter Dnes wrote: > Here's how I did it... > > * Ensured that CONFIG_IA32_EMULATION was set in the kernel config of the > 64-bit host linux (Gentoo) > > * rsync'd an entire install of CentOS 6.5, lock-stock-and-barrel, from a > QEMU VM to /home/misc/cent

[gentoo-user] [SOLVED] Can I run a 32-bit CentOS chroot on a 64-bit Gentoo host?

2017-02-07 Thread Walter Dnes
Here's how I did it... * Ensured that CONFIG_IA32_EMULATION was set in the kernel config of the 64-bit host linux (Gentoo) * rsync'd an entire install of CentOS 6.5, lock-stock-and-barrel, from a QEMU VM to /home/misc/centos65 * rm -rf /home/misc/centos65/dev /home/misc/centos65/sys /home