Difference between revisions of "Installing 32-bit Fedora on 64-bit Debian"
From Linux-VServer
(→Set up yum repository: doing distribution yum.conf editing a better way) |
(→Build vserver: improved proxy server example name) |
||
Line 15: | Line 15: | ||
==Build vserver== | ==Build vserver== | ||
host# export ARCH=i386 | host# export ARCH=i386 | ||
− | host# export http_proxy=http://proxy. | + | host# export http_proxy=http://proxy.yourcompany.com:3128 |
host# linux32 vserver fedora-zod-32-gustname build -m yum --hostname=fedora-zod-32-guestname --interface dummy0=eth0:10.0.0.123/8 --rootdir /var/lib/vservers -- -d fc6 -- --arch i386 | host# linux32 vserver fedora-zod-32-gustname build -m yum --hostname=fedora-zod-32-guestname --interface dummy0=eth0:10.0.0.123/8 --rootdir /var/lib/vservers -- -d fc6 -- --arch i386 | ||
host# unset ARCH | host# unset ARCH |
Revision as of 21:38, 11 May 2007
Contents |
Set up yum repository
host# mkdir /etc/rpm host# mkdir /var/lib/rpm host# apt-get install yum linux32
vserver build does not use /etc/yum*, though you will see an ignorable error message about it if it doesn't exist.
Proxy
If you use a proxy, do
host# cp -a /usr/lib/util-vserver/distributions/fc6/yum /etc/vservers/.distributions/fc6
Append to /etc/vservers/.distributions/fc6/yum.conf (in the [main] section) a line of the form:
proxy=http://proxy.yourcompany.com:3128
Build vserver
host# export ARCH=i386 host# export http_proxy=http://proxy.yourcompany.com:3128 host# linux32 vserver fedora-zod-32-gustname build -m yum --hostname=fedora-zod-32-guestname --interface dummy0=eth0:10.0.0.123/8 --rootdir /var/lib/vservers -- -d fc6 -- --arch i386 host# unset ARCH
Verify
To observe the 32-bitness of the guest's applications, do:
host# vyum fedora-zod-32-guestname -- install file host# vserver fedora-zod-32-guestname start host# vserver fedora-zod-32-guestname enter fedora-zod-32-guestname# file /bin/ls /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped