[node-devel] ovirt-node uefi status update

Joey Boggs jboggs at redhat.com
Thu Jan 5 15:35:08 UTC 2012


Just an update and hopefully a search for help/opinions on finishing 
uefi installation steps.

So far ovirt-node can be installed to usb drives without being booted in 
uefi mode, this works for usb because it can use a default bootloader in 
EFI/BOOT/BOOTX64.EFI which is where we place it for now. The problem 
with installing it to other media like sata drives etc is that we have 
to put a bootloader entry in using efibootmgr which requires being 
booted in uefi mode.

Here are some problems with getting that completed:
    - livecd-iso-to-disk doesn't support grub2 yet, using legacy grub 
can't happen as it's obsoleted by grub2 now in the repos, so the 
grub.conf generated config is written for grub legacy. Manually writing 
in kernel/initrd entries will boot fine
       - can possibly patch this add a --grub2 option or similar
    - we use /dev/mapper devices when available, only usb devices show 
as /dev/sdXXX.
    - grub2-efi-install /dev/sdX --boot-directory=/liveos we translate 
back to /dev/sdXX for all /dev/mapper devices as I was told 
devmapper/multipath support isnt quite there, not a problem there AFAIK 
for now
    - grub2-efi-install attempts adding an entry for 
/EFI/ovirt/grubx64.efi which fails, reports no disk found, checking 
manually with efibootmgr -v, shows no entry added.
    - manually adding an entry as efibootmgr -c -l 
\\EFI\\ovirt\\grubx64.efi -L oVirt still puts me at a blinking cursor on 
boot

As a baseline for the machine installing RHEL6.2 uefi works fine but 
it's using grub legacy.

Typical storage layout as it's different from a Fedora/RHEL install, 
livecd format and installs to a disk in the same format.

/dev/mapper/XXXXXXp1 - EFI partition mounted to /liveos/efi (256M fat32)
/dev/mapper/XXXXXXp2 - Second Root for upgrades/backup boot
/dev/mapper/XXXXXXp3 - Actual Root partition on first install, contents 
basically mirrors a livecd + grub directories mounted to /liveos
/dev/mapper/XXXXXXp4 - LVM partition for stateful storage


So not sure where to go at this point and just want to throw my progress 
out there to see if anyone can point me on the right path as usb does 
work just not internal drives




More information about the node-devel mailing list