- Download and set up a VEOS instance with the matching EOS version
- Create a 3GB disk and attack to the VEOS instance (used as a scratch disk)
- Boot the VEOS guest
Partition the second disk to use for additional space,
sudo -i
mkfs.ext2 /dev/sdb1
Mount the new partition and bind mount directories,
mkdir -p /mnt/sdb1
mount /dev/sdb /mnt/sdb1
mkdir -p /mnt/sdb1/{bin,var/cache/yum,usr}
rsync -axpHSD --numeric-ids -vP --delete /var/cache/yum/ /mnt/sdb1/var/cache/yum/
rsync -axpHSD --numeric-ids -vP --delete /usr/ /mnt/sdb1/usr/
rsync -axpHSD --numeric-ids -vP --delete /bin/ /mnt/sdb1/bin/
mount --bind /mnt/sdb1/var/cache/yum /var/cache/yum
mount --bind /mnt/sdb1/usr /usr
mount --bind /mnt/sdb1/bin /bin
Add the Fedora repos
cd /etc/yum.repos.d/
cat > fedora.repo <<EOF
[fedora]
name=Fedora 18 - i686
failovermethod=priority
baseurl=http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/18/Everything/i386/os/
exclude=kernel,fedora-logos
exclude=kernel,fedora-logos
enabled=1
gpgcheck=0
diskspacecheck=0
EOF
cat > fedora-updates.repo <<EOF
[fedora-updates]
name=Fedora 18 Updates - i686
failovermethod=priority
baseurl=http://dl.fedoraproject.org/pub/archive/fedora/linux/updates/18/i386/
exclude=kernel,fedora-logos
exclude=kernel,fedora-logos
enabled=1
gpgcheck=0
diskspacecheck=0
EOF
echo diskspacecheck=0 >> /etc/yum.conf
Umount the filesystems
umount -l /usr /bin /var/cache/yum