Re: using IA32 chroot: Exec format error

2005-03-13 Thread Max
Oh, one more issue related to IA32 chroot'ing. When I run 'dchroot -c ia32 -d 
openoffice' like suggested in the FAQ, I get
$ dchroot -c ia32 -d openoffice
(ia32) openoffice
dchroot: chdir: No such file or directory
dchroot: Child exited non-zero.
dchroot: Operation failed.
What could be wrong?
Thanks,
Max
Max wrote:
Alex,
that's it!!! Thank you for your right guess!
This needs to be added to FAQ.
Now I've got chroot'ing as well as direct running some ia32 binaries to 
work.

Max
Alex Perry wrote:
Max,
   everything you write is consistent with having a kernel that does 
not have 32 bit emulation available.  Could you please check your 
config file for the status of the symbol CONFIG_IA32_EMULATION in your 
running kernel ?  The quick way to try, which may not work, is
   zgrep CONFIG_IA32_EMULATION /proc/config.gz


Max wrote:
Hello!
I'm having troubles using IA32 applications under debian-amd64.
First, I installed ia32-libs with apt-get. I noticed that ia32-libs 
description/docs do not mention 'chroot' at all but claim that ia32 
Linux applications can be executed on 64-bit systems. So I hoped 
that I would be able just run ia32 binaries as promised. But in 
reality I got cannot execute binary file errors.

Next I tried to get into ia32 enviroment with `chroot 
/emul/ia32-linux/' command but it didn't work saying that '/bin/bash' 
is missing. I checked ia32-libs package and indeed it did not provide 
'/bin/bash'.

I decided to follow FAQ with debootstrap'ing. So I run
debootstrap --arch i386 sid /emul/ia32-linux/ 
ftp://ftp.debian.org/debian

It did a lot of checking/installing/validating/extracting but finally 
ended up with the following

chroot: cannot run command `mount': Exec format error
W: Failure trying to run: chroot /emul/ia32-linux mount -t proc proc 
/proc
umount: /emul/ia32-linux/dev/pts: not found
umount: /emul/ia32-linux/dev/shm: not found
umount: /emul/ia32-linux/proc/bus/usb: not found
umount: /emul/ia32-linux/proc: not mounted

So debootstrap installed a lot of IA32 stuff including '/bin/bash' 
but that stuff still does not work.
In particular, chroot'ing now reports

# chroot /emul/ia32-linux/
chroot: cannot run command `/bin/bash': Exec format error
The same error appears on attempts to run any other application with 
'dchroot'.

At the same time 'file /emul/ia32-linux/bin/bash' reports
/emul/ia32-linux/bin/bash: ELF 32-bit LSB executable, Intel 80386, 
version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses 
shared libs), stripped
which looks OK to me.

So I got stuck. Please advise.
Thanks,
Max
 




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: using IA32 chroot: Exec format error

2005-03-13 Thread David Liontooth
Max wrote:
dchroot: Child exited non-zero.
dchroot: Operation failed.
What could be wrong?
It looks like a hospital invervention went horribly wrong, and I can 
only hope the child will recover from this.
During surgery, the child for some reason was too excited, the doctor's 
knife may have slipped, and the operation failed.
It's hard to tell exactly what went wrong without more details.

Alternatively, it could just be a permissions issue -- the user's home 
directory must be mounted in /etc/fstab along these lines:

/home/ilona /var/chroot/sid-ia32/home/ilona  none   bind
0   0

Otherwise openoffice can't write to the .openoffice for that user.
Cheers,
Dave


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: using IA32 chroot: Exec format error

2005-03-12 Thread Max
Alex,
that's it!!! Thank you for your right guess!
This needs to be added to FAQ.
Now I've got chroot'ing as well as direct running some ia32 binaries to work.
Max
Alex Perry wrote:
Max,
   everything you write is consistent with having a kernel that does not 
have 32 bit emulation available.  Could you please check your config 
file for the status of the symbol CONFIG_IA32_EMULATION in your running 
kernel ?  The quick way to try, which may not work, is
   zgrep CONFIG_IA32_EMULATION /proc/config.gz


Max wrote:
Hello!
I'm having troubles using IA32 applications under debian-amd64.
First, I installed ia32-libs with apt-get. I noticed that ia32-libs 
description/docs do not mention 'chroot' at all but claim that ia32 
Linux applications can be executed on 64-bit systems. So I hoped that 
I would be able just run ia32 binaries as promised. But in reality I 
got cannot execute binary file errors.

Next I tried to get into ia32 enviroment with `chroot 
/emul/ia32-linux/' command but it didn't work saying that '/bin/bash' 
is missing. I checked ia32-libs package and indeed it did not provide 
'/bin/bash'.

I decided to follow FAQ with debootstrap'ing. So I run
debootstrap --arch i386 sid /emul/ia32-linux/ ftp://ftp.debian.org/debian
It did a lot of checking/installing/validating/extracting but finally 
ended up with the following

chroot: cannot run command `mount': Exec format error
W: Failure trying to run: chroot /emul/ia32-linux mount -t proc proc 
/proc
umount: /emul/ia32-linux/dev/pts: not found
umount: /emul/ia32-linux/dev/shm: not found
umount: /emul/ia32-linux/proc/bus/usb: not found
umount: /emul/ia32-linux/proc: not mounted

So debootstrap installed a lot of IA32 stuff including '/bin/bash' but 
that stuff still does not work.
In particular, chroot'ing now reports

# chroot /emul/ia32-linux/
chroot: cannot run command `/bin/bash': Exec format error
The same error appears on attempts to run any other application with 
'dchroot'.

At the same time 'file /emul/ia32-linux/bin/bash' reports
/emul/ia32-linux/bin/bash: ELF 32-bit LSB executable, Intel 80386, 
version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared 
libs), stripped
which looks OK to me.

So I got stuck. Please advise.
Thanks,
Max
 



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]