From Fedora Project Wiki
(Update steps for latest packaging changes)
(Tweak libvirtd versions)
Line 8: Line 8:
 
** Minimum required version: [http://koji.fedoraproject.org/koji/buildinfo?buildID=593646 qemu-2.2.0-0.1.rc1.fc22]
 
** Minimum required version: [http://koji.fedoraproject.org/koji/buildinfo?buildID=593646 qemu-2.2.0-0.1.rc1.fc22]
 
** Also available in [[Virtualization_Preview_Repository|fedora-virt-preview]] for F21
 
** Also available in [[Virtualization_Preview_Repository|fedora-virt-preview]] for F21
* Grab the latest libvirt
+
* Grab libvirt-1.2.9.1-2.fc21 or later. Make sure to restart libvirtd after update
** Minimum required version: [http://koji.fedoraproject.org/koji/buildinfo?buildID=594825 libvirt-1.2.10-3.fc22]
 
** Also available in [[Virtualization_Preview_Repository|fedora-virt-preview]] for F21
 
** Make sure to restart libvirtd after update
 
 
* Grab virt-manager from git
 
* Grab virt-manager from git
 
** <code>git clone git://git.fedorahosted.org/virt-manager.git</code>
 
** <code>git clone git://git.fedorahosted.org/virt-manager.git</code>

Revision as of 23:08, 2 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

Warning.png
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

Warning.png
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