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.
- Boot into rescue mode
- 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 - Highlight the Centos Installer grub option and hit 'e' to edit
- Modify the root line to use hd0,0
- Modify the kernel line to use the downloaded vmlinuz kernel
- Modify the initrd line to use the downloaded initrd.img
- Hit 'b' to boot into the Fedora installer
- When prompted select DHCP for networking
- Select 'URL' as your install media
- use http://download.fedoraproject.org/pub/fedora/linux/releases/12/Fedora/x86_64/os as the URL
- use VNC as your installer
- connect to your domU with VNC
- ignore the first error about a xvdf disk problem
- when asked what disks to install on deselect xvde
- use the existing linux partition to install into.
- if you get any package errors when downloading hit retry, some Fedora mirror must be busted.
- once installed there reboot into the rescue disk
- 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 - find your root device name:
lvdisplay | grep lv_root
- 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 - Now it should just boot
--Ajwans 04:46, 27 October 2010 (UTC)