Skip to content

Instantly share code, notes, and snippets.

@identor
Created February 8, 2021 06:41
Show Gist options
  • Save identor/26d32083011fb96b454344ec62e64648 to your computer and use it in GitHub Desktop.
Save identor/26d32083011fb96b454344ec62e64648 to your computer and use it in GitHub Desktop.
Installing Arch 2021 UEFI KVM

Arch Installation 2021, UEFI boot KVM

This guide shows how to install arch linux with UEFI boot in KVM.

Requirements

Things you need before starting:

  1. Properly installed libvirtd, qemu w/ KVM
  2. In arch install, edk2-ovmf
  3. Install virt-manager

Creating VM

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.

Installing Arch

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment