How can I set a Fedora 13 chroot inside of Fedora 16
Hi
My host is Fedora-16 and I am trying to create a fedora-13 system inside chroot.
I am doing the following steps:
export CHROOT=/media/TestVol/
cd /tmp/
wget https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/13/Fedora/i386/os/Packages/fedora-release-13-1.noarch.rpm
mkdir -p $CHROOT/var/lib/rpm
rpm --rebuilddb --root=$CHROOT
rpm -i --root=$CHROOT --nodeps fedora-release-13-1.noarch.rpm
yum --installroot=$CHROOT install -y rpm-build yum # This FAILS
It works fine until the last step, giving error about GPG key issue. It works if I use the same command with --nogpgcheck flag. Can anyone point me what is the issue and how to solve it ?
Also, I would like to assign a IP-address to the chroot environment and run services like httpd. Please let me know how it can be done.
-Mohan
Please post the specific error you are getting.
It sounds like you really want to do more than just have a chrooted filesystem tree — you want to run a whole Fedora under the other one. Take a look at this question about containers, which might be a good approach. Or, you could look at KVM-based virtualization, which is the typical way to do this these days.
@Mohan — is there a key file at that location? If so, run
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
.If there's not a lot of IO, VM overhead can be pretty low. But look at the link I posted above — containers don't have even that overhead. It's really the right way to do this.
Import them all. RPM won't mind.