From Fedora Project Wiki
Launching a vexpress-a15 Fedora in qemu
This is based on https://fedoraproject.org/wiki/Architectures/ARM/F21/Installation#For_Versatile_Express_Emulation_with_QEMU, but simplified to a single script:
qcow2=yes # leave empty for raw image=Fedora-Minimal-armhfp-21-5-sda file=$image.raw curl -L http://download.fedoraproject.org/pub/fedora/linux/releases/21/Images/armhfp/$image.raw.xz|xzcat > $file truncate -s10G $file echo ",+," | sfdisk -uS -L -N3 $file if [ -n "$qcow2" ]; then qemu-img convert -O qcow2 -o lazy_refcounts=on,compat=1.1,preallocation=metadata $image.{raw,qcow2} rm $file file=$image.qcow2 fi wget https://dl.fedoraproject.org/pub/fedora/linux/releases/21/Server/armhfp/os/images/pxeboot/{vmlinuz,initrd.img,dtb/vexpress-v2p-ca15-tc1.dtb} qemu-system-arm -machine vexpress-a15 -m 1024 -nographic -net nic -net user \ -append "console=ttyAMA0,115200n8 rw root=/dev/mmcblk0p3 rootwait physmap.enabled=0" \ -kernel vmlinuz -initrd initrd.img -sd $file -dtb vexpress-v2p-ca15-tc1.dtb
To add the machine to virt-manager
virt-install \ --connect qemu:///system \ --name fedora-a15 \ --ram 2048 \ --arch armv7l \ --machine vexpress-a15 \ --os-variant fedora21 \ --import \ --disk $file \ --boot kernel=vmlinuz,initrd=initrd.img,kernel_args="console=ttyAMA0,115200n8 rw root=/dev/vda3 rootwait physmap.enabled=0",dtb=vexpress-v2p-ca15-tc1.dtb --os-variant fedora21 \ --graphics none
Post-installation
resize2fs /dev/mmcblk0p3 dnf -y update dnf -y install rpm-build gcc-c++