This guide shows how to install arch linux with UEFI boot in KVM.
Things you need before starting:
- Properly installed libvirtd, qemu w/ KVM
- In arch install,
edk2-ovmf
- Install
virt-manager
Create a VM, in last step make sure to configure before beginning installation. Change boot to use UEFI, instead of BIOS. Menu for EFI will appear in virt-manager when edk2-ovmf
is installed.
Creating drives, using gdisk:
$ gdisk /dev/vda
> gdisk
c
<default>
+300M
<default>
<default>
c
<default>
<default>
<default>
<default>
w
$ mkfs /dev/vda2
$ mkfs.vfat /dev/vda1
Mounting:
$ mount /dev/vda2 /mnt
Packages:
$ pacstrap /mnt base base-devel linux linux-firmware net-tools dhcpcd man man-db man-pages texinfo neovim zsh