From Fedora Project Wiki
(CD-ROM installation works as of F21 RC7)
(CDROM installation section should reference RC7 ISO)
Line 48: Line 48:


* Grab the ISO:
* Grab the ISO:
** This example uses the F21 aarch64 beta DVD: https://dl.fedoraproject.org/pub/fedora-secondary/releases/test/21_Beta/Server/aarch64/iso/Fedora-Server-DVD-aarch64-21_Beta.iso
** This example uses the F21 aarch64 RC7 DVD: http://arm.koji.fedoraproject.org/compose/21_RC7/Server/aarch64/iso/Fedora-Server-DVD-aarch64-21.iso
** Move it to /var/lib/libvirt/images
** Move it to /var/lib/libvirt/images
** From the virt-manager.git checkout, run:
** From the virt-manager.git checkout, run:
Line 55: Line 55:
     --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 \
     --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.iso




[[Category:AArch64]]
[[Category:AArch64]]

Revision as of 08:38, 17 December 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. Originally reported under bug 1166876, python-blivet is not the culprit; it only exposes a missing feature between QEMU and the guest firmware. Refer to this patch and the dependencies it names.
 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

 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.iso