Chroot into a 32 bit version of ubuntu from a 64 bit host
Posted
by
Leif Andersen
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Leif Andersen
Published on 2011-01-08T01:33:24Z
Indexed on
2011/01/08
1:59 UTC
Read the original article
Hit count: 580
I have a piece of software that only runs on 32 bit linux (Xilinx webPack 10.1, apperently it 'has' to be the old version because that's the latest one compatible with their boards), anyway, this version is only compatible with 32 bit linux. So, I head off to this page to see what I can do: https://help.ubuntu.com/community/32bit_and_64bit
Of the 4 options (listed at the bottom):
I already installed ia32-libs, and it's still not working
I could do that one if needed (which I ended up doing).
No, I don't want to be working from a vm all of next semester, that would be painful and I'd rather just reinstall my whole computer to a 32 bit os (which I don't want to do).
It didn't sound like it was the best option based on what I've seen.
So I went off to do #2, and set up a chroot for 32 bit ubuntu. It linked to this tutorial: https://help.ubuntu.com/community/DebootstrapChroot
As I'm running ubuntu 10.10 I made the lucid and newer version changes. Which is to say I wrote:
[hardy-i386]
description=Ubuntu 8.04 Hardy for i386
directory=/srv/chroot/hardy-i386
personality=linux32
root-users=leif
type=directory
users=leif
to
/etc/schroot/chroot.d/hardy-i386
(Note though that I did save it once before I had the file properly formatted, I saved the correct version moments later though).
I then ran:
$ sudo mkdir -p /srv/chroot/hardy_i386
$ sudo debootstrap --variant=buildd --arch i386 hardy /srv/chroot/hardy_i386 http://archive.ubuntu.com/ubuntu/
Then I ran:
$ schroot -l
And it showed the proper chroot, but then when I ran:
$ schroot -c hardy-i386 -u root
I got the following error: E: 10mount: error: Directory '/srv/chroot/hardy-i386' does not exist E: 10mount: warning: Mount location /var/lib/schroot/mount/hardy-i386-80359697-2164-4b10-a05a-89b0f497c4f1 no longer exists; skipping unmount E: hardy-i386-80359697-2164-4b10-a05a-89b0f497c4f1: Chroot setup failed: stage=setup-start
Can anyone help me figure out what the problem is? Oh, by the way:
/srv/chroot/hardy-i386
most certainly exists. I've also tried it replacing all references with hardy to lucid, to no avail. Oh, one more thing, I did set up the chrome os environment a month back or so: http://www.chromium.org/chromium-os/developer-guide and it had me use something with chmod.
So, can anyone figure out what the problem is?
Thank you.
© Ask Ubuntu or respective owner