FC1 to F18: Difference between revisions

From Alteeve Wiki
Jump to navigation Jump to search
Line 59: Line 59:


<source lang="diff">
<source lang="diff">
--- yum.conf 2013-05-19 14:32:28.000000000 -0400
--- yum.conf.fc1_orig 2013-05-19 14:25:17.000000000 -0400
+++ yum.conf.fc1_orig 2013-05-19 14:25:17.000000000 -0400
+++ yum.conf 2013-05-19 14:32:28.000000000 -0400
@@ -8,14 +8,14 @@
@@ -8,14 +8,14 @@
  exactarch=1
  exactarch=1
  retries=20
  retries=20
   
   
-#[base]
-[base]
-#name=Fedora Core $releasever - $basearch - Base
-name=Fedora Core $releasever - $basearch - Base
-#baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/$releasever/$basearch/os/
-baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
+[base]
+#[base]
+name=Fedora Core $releasever - $basearch - Base
+#name=Fedora Core $releasever - $basearch - Base
+baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
+#baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/$releasever/$basearch/os/
   
   
  [updates-released]
  [updates-released]
  name=Fedora Core $releasever - $basearch - Released Updates
  name=Fedora Core $releasever - $basearch - Released Updates
-baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/$releasever/$basearch/
-baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
+baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
+baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/$releasever/$basearch/
   
   
  #[updates-testing]
  #[updates-testing]
  #name=Fedora Core $releasever - $basearch - Unreleased Updates
  #name=Fedora Core $releasever - $basearch - Unreleased Updates
-#baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/testing/$releasever/$basearch/
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearch/
+#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearch/
+#baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/testing/$releasever/$basearch/
</source>
</source>



Revision as of 18:40, 19 May 2013

 AN!Wiki :: How To :: FC1 to F18

This is my adventure of installing Fedora Core 1 and then upgrading it through every version up to Fedora 18.

Why?

Because.

General Notes

Take 2: I ran into a problem initially where the VM kept jumping to 100% CPU and got totally unresponsive. This started happening even when booting off the FC1, FC2 and FC3 install media. So I decided to try a new approach and start over. Last time, I defined the VM once for Fedora Core 1. This required optimizing for Kernel 2.4 and full virtualization. This time, I plan to undefine the VM and create a new VM for each upgrade, optimized for that version. This will be like taking the hard drive out of the old computer, sticking it in a new computer and running the OS upgrade. So lets see how this goes.

Installing Fedora Core 1

This proved a little challenging. I opted to use a virtual machine as I didn't have any hardware old enough to support it. I used a Fedora 18 machine to do the install. The installation was done using a 50 GiB image file for storage and connected to the standard libvirtd Default network. The actual install of the OS was done as a Desktop system with default packages. The network used an emulated rtl8139 network card.

The biggest trick was to get the installer detect the CD-ROM and disk. In the end, I had to emulate a SCSI bus for both. I couldn't get virt-manager to set the options, so I had to use the virt-install command line tools. Also, most interestingly, I could not get the install to proceed until I made it fully virtualized.

The installation was kicked off with the following command;

virt-install --connect=qemu:///system \
  -n FC1 \
  --ram 512 \
  --vcpus 2 \
  --disk path=/mnt/usb/ISOs/Fedora/Core1/yarrow-x86_64-disc1.iso,device=cdrom,bus=scsi \
  --os-type=linux \
  --os-variant generic24 \
  --disk path=/mnt/usb/VMs/fcu.img,device=disk,bus=scsi \
  --network network=default,model=rtl8139,mac=52:54:00:E6:62:96 \
  -v
Note: These are from the first run. In the second run, I changed the file system structure to use /boot as a 512 MiB ext3 partition. Then I used LVM on the rest of the free space with a VG called fcu_vg0. On that, I created three LVs; lv_swap at 2 GiB, lv_home at 10 GiB and the balance of the space in lv_root. The lv_home and lv_root LVs were formatted as ext3.

Install

Installation of Fedora Core 1 begins!
I'd actually like this screen back...
Basic desktop install.
Only real change from stock is that I disabled the firewall.
After "swapping" CD 1 for CD 2, install completed!
First-boot has been around from the beginning.
Login screen.
Le desktop!

I was pleased to find that I could create a 4095 byte RSA SSH key, even back on FC1.

To bring the OS up to date, as it would have been before a real user would have upgraded, I needed to tweak yum.conf to point at the Fedora Hosted archive FTP site. To do this, I backed up /etc/yum.conf to /etc/yum.conf.fc1_orig. For anyone playing along at home, the diff is:

--- yum.conf.fc1_orig	2013-05-19 14:25:17.000000000 -0400
+++ yum.conf	2013-05-19 14:32:28.000000000 -0400
@@ -8,14 +8,14 @@
 exactarch=1
 retries=20
 
-[base]
-name=Fedora Core $releasever - $basearch - Base
-baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
+#[base]
+#name=Fedora Core $releasever - $basearch - Base
+#baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/$releasever/$basearch/os/
 
 [updates-released]
 name=Fedora Core $releasever - $basearch - Released Updates
-baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
+baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/$releasever/$basearch/
 
 #[updates-testing]
 #name=Fedora Core $releasever - $basearch - Unreleased Updates
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearch/
+#baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/testing/$releasever/$basearch/

Some fun issues;

  • On first reboot, the OS tried to boot off of the SMP kernel and immediately fell back to the boot loader. The UP kernel booted though.
  • Opening Mozilla v1.4.1 and clicking on the "Red Hat, Inc." bookmark crashed the browser, but the "Red Hat Network" bookmark worked... Sort of.
  • Our own website didn't crash, but I can't say it degraded too gracefully, either. Our AN!Wiki actually rendered quite well, so kudos to the MediaWiki devs! Our RoundCube webmail didn't crash, but it did refuse to run.

Some Apps

The GIMP v1.2.5
Preferences screen
Mozilla v1.4.1
Default webpage
Red Hat, Inc. website crashed the browser. The Red Hat Network didn't crash, but didn't degrade well, either.
... Not that we can brag much, either. Our Joomla page didn't degrade very well, either.
... At least the text could be read when you scrolled down a page or three.
MediaWiki degraded amazingly well!
RoundCube webmail doesn't work, but it tells you so instead of just blowing up.
Who remembers how awesome this screensaver was back in the day?
Default desktop install fits into 2.0 GiB.
One of the gnome menus expanded

Fedora Core 2

The upgrade was done by booting off of the installation DVD ISO.

The upgrade itself was painless.

Upgrade

Shutting down FC1
FC2 Install begins
Choosing to update
Updating the bootloader
Starting the update!
A Thank You to the early Fedora community
Upgrade complete!
This time, the SMP kernel booted! (yes, the UP kernel is selected here, ignore that...)
Boot Screen
Kudzu sees a new keyboard
Login screen
Gnome 2.6, but wait, not all is right...
The desktop works, though we've got a stacked icon
 

Upgrade issues;

  • I hit this bug where the Xfree86 to Xorg migration didn't go perfectly.
  • The new "Computer" icon was hidden under the old "Start Here" icon.
  • The mouse was much more sensitive.

Rather than fighting bugs manually, I decided to edit yum.conf to look at the Fedora Core 2 updates archive and then ran a system update.

However!

This had a problem, too.

  • Fedora Core 2 introduced SELinux. It was disabled by default in FC2, but it still caused an issue. When yum update tested the update, it failed with "/etc/security/selinux/file_contexts: no such file or directory". This was caused by the policy RPM not being installed during the update.
  • There were package conflicts with libpng, mozilla-mail and mozilla. Uninstalling and reinstalling mozilla and mozilla-mail worked, but it was not feasible to uninstall libpng because gtk2 depended on it. So I force-updated libpng and the update was able to run.

After a reboot, the errors were gone and things looked a-ok! ... But they weren't, really.

For reasons I couldn't put my finger on, the system kept pinning the CPU cores at 100% and becoming totally unresponsive. Maybe it's because of the virtualization/emulation? Who knows.

Some Apps

Updating FC2
Rebooted and no more errors!
The GIMP
Mozilla
Default home page


 

Any questions, feedback, advice, complaints or meanderings are welcome.
Alteeve's Niche! Enterprise Support:
Alteeve Support
Community Support
© Alteeve's Niche! Inc. 1997-2024   Anvil! "Intelligent Availability®" Platform
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.