I honestly am not in the state where I can write a neat introduction for this specific action so I will just proceed to the steps I took for having this successfully done.
ovmfby following the instructions specified on the
qemu-system-x86_64 -enable-kvm -m 2G \ -device intel-hda -device hda-duplex -device virtio-balloon \ -drive if=pflash,format=raw,readonly=on,file=/usr/share/edk2-ovmf/x64/OVMF_CODE.fd \ -drive if=pflash,format=raw,file=/path-to-my_uefi_vars.fd \ -drive file=/path-to-linux.img,if=virtio \ -virtfs local,path=/path-to-shared-folder,mount_tag=hostshare,security_model=none,id=fsdev0 \ -cdrom /path-to-archlinux-x86_64.iso -boot d
UEFIsupport as instructed in the archwiki; &
Virtioloaded to enable its block device as well as
folder/filesharing from Host OS to Guest OS.
ESPpartition as well as a
Linux LVMpartition with
gdisk. Both were formatted as
LVMpartition on /mnt, created a mount point for a shared folder and mounted it through the '
mount_tag(I did this to copy all the base packages installed on Host OS into the Guest OS so that I no longer needed to wait for the packages to be downloaded) and continued with the general installation. Part of these steps may be seen in the images below:
lvm2' needs to be added to '
HOOKS' line in
/etc/mkinitcpio.conffile before running mkinitcpio:-
grub(grub2) as well as
efibootmgrand add '
lvm' to a line where it says '
/etc/default/grubfile. Next, I mounted the
/mnt/bootand run the following commands:-
grub-install --target=x86_64-efi --efi-directory=/mnt/boot --boot-directory=/mnt/boot --bootloader-id=GRUB grub-mkconfig -o /mnt/boot/grub/grub.cfg