From Fedora Project Wiki
(Change link to edk2 licensing issues)
(Update steps for latest packaging changes)
Line 19: Line 19:
** Install Gerd's nightly firmware repo, as described here: https://www.kraxel.org/repos/
** Install Gerd's nightly firmware repo, as described here: https://www.kraxel.org/repos/
** Install the relevant bits: <code>sudo yum install edk2.git-aarch64</code>
** Install the relevant bits: <code>sudo yum install edk2.git-aarch64</code>
** As of 2014-11-21, we need to add one small bit after first install: <code>sudo dd if=/dev/zero of=/usr/share/edk2.git/aarch64/QEMU_EFI_VARS.fd bs=1M count=64</code>


== Importing F21 aarch64 disk image ==
== Importing F21 aarch64 disk image ==
Line 31: Line 30:
   sudo ./virt-install \
   sudo ./virt-install \
     --name f21-aarch64-import --ram 2048 --arch aarch64 \
     --name f21-aarch64-import --ram 2048 --arch aarch64 \
     --boot loader_ro=yes,loader_type=pflash,loader=/usr/share/edk2.git/aarch64/QEMU_EFI-pflash.img,nvram_template=/usr/share/edk2.git/aarch64/QEMU_EFI_VARS.fd \
     --boot loader_ro=yes,loader_type=pflash,loader=/usr/share/edk2.git/aarch64/QEMU_EFI-pflash.raw,nvram_template=/usr/share/edk2.git/aarch64/vars-template-pflash.raw \
     --os-variant fedora21 --import \
     --os-variant fedora21 --import \
     --disk /var/lib/libvirt/images/F21-20141017-foundation-v8.img
     --disk /var/lib/libvirt/images/F21-20141017-foundation-v8.img
Line 45: Line 44:
   sudo ./virt-install \
   sudo ./virt-install \
     --name f21-aarch64-urlinst --ram 2048 --arch aarch64 \
     --name f21-aarch64-urlinst --ram 2048 --arch aarch64 \
     --boot loader_ro=yes,loader_type=pflash,loader=/usr/share/edk2.git/aarch64/QEMU_EFI-pflash.img,nvram_template=/usr/share/edk2.git/aarch64/QEMU_EFI_VARS.fd \
     --boot loader_ro=yes,loader_type=pflash,loader=/usr/share/edk2.git/aarch64/QEMU_EFI-pflash.raw,nvram_template=/usr/share/edk2.git/aarch64/vars-template-pflash.raw \
     --disk size=8 \
     --disk size=8 \
     --location http://dl.fedoraproject.org/pub/fedora-secondary/releases/test/21_Beta/Server/aarch64/os/
     --location http://dl.fedoraproject.org/pub/fedora-secondary/releases/test/21_Beta/Server/aarch64/os/
Line 59: Line 58:
   sudo ./virt-install \
   sudo ./virt-install \
     --name f21-aarch64-cdrom --ram 2048 --arch aarch64 \
     --name f21-aarch64-cdrom --ram 2048 --arch aarch64 \
     --boot loader_ro=yes,loader_type=pflash,loader=/usr/share/edk2.git/aarch64/QEMU_EFI-pflash.img,nvram_template=/usr/share/edk2.git/aarch64/QEMU_EFI_VARS.fd \
     --boot loader_ro=yes,loader_type=pflash,loader=/usr/share/edk2.git/aarch64/QEMU_EFI-pflash.raw,nvram_template=/usr/share/edk2.git/aarch64/vars-template-pflash.raw \
     --disk size=8 --os-variant fedora21 \
     --disk size=8 --os-variant fedora21 \
     --cdrom /var/lib/libvirt/images/Fedora-Server-DVD-aarch64-21_Beta.iso
     --cdrom /var/lib/libvirt/images/Fedora-Server-DVD-aarch64-21_Beta.iso

Revision as of 21:42, 30 November 2014

Installing Fedora aarch64 with QEMU and libvirt

These steps will work on both x86 and aarch64 hardware. If running on actual aarch64 hardware, the virt-install commands should automatically request KVM for maximum performance.

Get the necessary bits

Importing F21 aarch64 disk image

 sudo ./virt-install \
   --name f21-aarch64-import --ram 2048 --arch aarch64 \
   --boot loader_ro=yes,loader_type=pflash,loader=/usr/share/edk2.git/aarch64/QEMU_EFI-pflash.raw,nvram_template=/usr/share/edk2.git/aarch64/vars-template-pflash.raw \
   --os-variant fedora21 --import \
   --disk /var/lib/libvirt/images/F21-20141017-foundation-v8.img
  • The guest should start booting. Log in with user=root, password=fedora
  • Note: Networking doesn't work automatically for this image, you'll need to change the config inside the VM to use DHCP

Installing F21 aarch64 from URL

This currently doesn't work
There's a backtrace from python-blivet when transitioning to anaconda. See bug 1166876
 sudo ./virt-install \
   --name f21-aarch64-urlinst --ram 2048 --arch aarch64 \
   --boot loader_ro=yes,loader_type=pflash,loader=/usr/share/edk2.git/aarch64/QEMU_EFI-pflash.raw,nvram_template=/usr/share/edk2.git/aarch64/vars-template-pflash.raw \
   --disk size=8 \
   --location http://dl.fedoraproject.org/pub/fedora-secondary/releases/test/21_Beta/Server/aarch64/os/

Installing F21 aarch64 from CDROM

This currently doesn't work
The CDROM doesn't automatically boot. May be able to make it work by messing with UEFI boot settings. Could be related to bug 1163481
 sudo ./virt-install \
   --name f21-aarch64-cdrom --ram 2048 --arch aarch64 \
   --boot loader_ro=yes,loader_type=pflash,loader=/usr/share/edk2.git/aarch64/QEMU_EFI-pflash.raw,nvram_template=/usr/share/edk2.git/aarch64/vars-template-pflash.raw \
   --disk size=8 --os-variant fedora21 \
   --cdrom /var/lib/libvirt/images/Fedora-Server-DVD-aarch64-21_Beta.iso