howto: using a chroot of another architecture with qemu

I have just build an arm chroot and I imagine others might be
interested on how to do it.

First you need to install qemu. Follow the instructions on
QemuUserEmulation - Debian Wiki. I had some problems
compiling for x86_64, so I just edited qemu's configure to compile for

Now run debootstrap:

debootstrap --foreign --arch arm sid your_chroot_dir

you should now be able to run statically linked program like

copy qemu to the chroot:
mkdir your_chroot_dir/usr/lib/qemu-binfmt
cp /usr/bin/qemu-arm-static your_chroot_dir/usr/lib/qemu-binfmt/arm

enter the new chroot
chroot your_chroot_dir

finish the install
  /debootstrap/debootstrap --second-stage