[rhinstaller/lorax/pulls/64 master] Add --virt-uefi to boot the VM using OVMF

vpodzime installerbot-noreply at redhat.com
Thu Nov 5 14:52:04 UTC 2015


> @@ -479,6 +485,34 @@ This also works with ``--no-virt``, but will not work inside a mock due to its
>  use of partitioned disk images and qcow2.
>  
>  
> +Creating UEFI disk images with virt
> +-----------------------------------
> +
> +Partitioned disk images can only be created for the same platform as the host system (BIOS or
> +UEFI). You can use virt to create BIOS images on UEFI systems, and it is also possible
> +to create UEFI images on BIOS systems using OVMF. You first need to setup your system with
> +the OVMF firmware. The details can be `found here linux-kvm OVMF page <http://www.linux-kvm.org/page/OVMF>`_
> +but it amounts to:
> +
> +1. Download the firmware.repo from `Gerd Hoffmann <https://www.kraxel.org/repos/>`_ and install it
> +   in /etc/yum.repos.d/
> +
> +2. Install the edk2.git-ovmf-x64 package
> +
> +3. Copy /usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd to /usr/share/OVMF/OVMF_CODE.fd
> +
> +4. Copy /usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd to /usr/share/OVMF/OVMF_VARS.fd
> +
> +Now you can run livemedia-creator with ``--virt-uefi`` to boot and install using UEFI::
> +
> +    sudo livemedia-creator --make-disk --virt-uefi --iso=/path/to/boot.iso \
> +    --ks=/path/to/fedora-minimal.ks
> +
> +Make sure that the kickstart you are using creates a /boot/efi partition by including this::
> +
> +    part /boot/uefi --fstype="uefi" --size=500

Should be ``/boot/efi``, shouldn't it?

-- 
To view this pull request on github, visit https://github.com/rhinstaller/lorax/pull/64#discussion_r44019392


More information about the anaconda-patches mailing list