I was trying to chroot into a folder containing a Xubuntu (LTS 12.04) installation used for PXE-booting over tFTP.
The Xubuntu-installation resided in "/srv/tftp/systems/xubuntu-precise-amd64" and was already working fine for booting and working over the network, but:
Code: Select all
sudo chroot /srv/tftp/systems/xubuntu-precise-amd64
[SOLUTION]chroot: failed to run command `/bin/bash': Exec format error
The PXE boot server was running on a 32bit version of Debian Squeeze.
On "AskUbuntu", there's a thread which indicicates that the problem is caused by trying to chroot the wrong bit-architecture (64bit on a 32bit host).