Fedora

From PrgmrWiki
Revision as of 05:45, 27 October 2010 by Ajwans (talk | contribs)

These instructions assume you have a Centos instance installed, it's probably much the same starting with a Debian/Ubuntu base.

  1. Boot into rescue mode
  2. Mount your primary drive and get the Fedora netinstall images
    > mount /dev/xvda1 /mnt
    > cd /mnt/boot
    > wget http://download.fedoraproject.org/pub/fedora/linux/releases/12/Fedora/x86_64/os/isolinux/vmlinuz
    > wget http://download.fedoraproject.org/pub/fedora/linux/releases/12/Fedora/x86_64/os/isolinux/initrd.img
    > reboot
  3. Highlight the Centos Installer grub option and hit 'e' to edit
  4. Modify the root line to use hd0,0
  5. Modify the kernel line to use the downloaded vmlinuz kernel
  6. Modify the initrd line to use the downloaded initrd.img
  7. Hit 'b' to boot into the Fedora installer
  8. When prompted select DHCP for networking
  9. Select 'URL' as your install media
  10. use http://download.fedoraproject.org/pub/fedora/linux/releases/12/Fedora/x86_64/os as the URL
  11. use VNC as your installer
  12. connect to your domU with VNC
  13. ignore the first error about a xvdf disk problem
  14. when asked what disks to install on deselect xvde
  15. use the existing linux partition to install into.
  16. once installed there reboot into the rescue disk
  17. make the /boot partition ext2 and add a link for the boot directory
    > mount /dev/xvda1 /mnt
    > mkdir /tmp/foo
    > cp -R /mnt/* /tmp/foo
    > umount /mnt
    > mke2fs /dev/xvda1
    >mount /dev/xvda1 /mnt
    >cp /tmp/foo/* /mnt
    >cd /mnt
    >mkdir boot
    > cd boot
    > ln -s ../grub grub
    > umount /mnt
  18. find your root device name: lvdisplay | grep lv_root
  19. mount your root device and edit fstab
    mount <lv root device> /mnt
    vi /mnt/etc/fstab

    Edit the line containing the /boot entry, changing the filesystem type from ext4 -> ext2 and the UUID to /dev/xvda1
  20. Now it should just boot


--Ajwans 04:46, 27 October 2010 (UTC)