Here’s a quick way to setup a chrooted environment.

<pre lang="bash">mkdir /helper
for i in proc sys dev; do mount o bind /$i /helper/$i; done
chroot /helper