Fedora

From PrgmrWiki

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

Fedora 13's kernel appears to be broken for Xen, it panics when booting. I have Fedora 14 Beta working using much the same method as below.

  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. if you get any package errors when downloading hit retry, some Fedora mirror must be busted.
  17. once installed there reboot into the rescue disk
  18. 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
  19. find your root device name: lvdisplay | grep lv_root
  20. 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
  21. Now it should just boot


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