Warning: If you are using Fedora be sure to add this to your network config
sudo nano /etc/libvirt/network.conf
firewall_backend = "iptables"Partition the disk
fdisk -l
cfdisk /dev/<disk_to_partition>- Select gpt for label type
- Create new partition
- 500m for partition size, EFI System for type
- Create new partition
- 4G for partition size, Linux Swap for type
- Create new partition
- Remanining size for partition size, Linux filesystem for type
- Select Write, type yes and select Quit
- Check if the partition is ok
fdisk-lDevice /dev/vda1 /dev/vda2 /dev/vda3
Format the partitions
mkfs.ext4 /dev/vda3
mkfs.fat -F 32 /dev/vda1Initialize the swap
mkswap /dev/vda2Mount the file system
mount /dev/vda3 /mnt
mount --mkdir /dev/vda1 /mnt/boot
swapon /dev/vda2Check partititons
lsblkPacman conf
nano /etc/pacman.confUncomment ParallelDownloads = 5 Ctrl + O Enter Ctrl + X
Install essential packages
pacstrap -K /mnt base linux linux-firmware nano base-develConfigure the system
Fstab
genfstab -U /mnt >> /mnt/etc/fstabChroot
arch-chroot /mntTime
ln -sf /usr/share/zoneinfo/_Region_/_City_ /etc/localtime
hwclock --systohcLocalization
nano /etc/locale.genCtrl+W en_US Enter Uncomment(delete #) en_US.UTF-8 UTF-8 Ctrl+O Enter Ctrl+X
Generate locale
locale-genSet the language
nano /etc/locale.confLANG=en_US.UTF-8
Host
nano /etc/hostnameuser
Set password for root
passwdAdd permissions
useradd -m -G wheel -s /bin/bash userSet password for user
passwd userEDITOR=nano visudoUncomment this line by deleting #
%wheel ALL=(ALL:ALL) ALLEdit Loader.conf
bootctl install
nano /boot/loader/loader.confdefault arch.com timeout 3 console-mode keep editor no
nano /boot/loader/entries/arch.conftitle arch linux /vmlinuz-linux initrd /initramfs-linux.img options root=/dev/vda3 rw
systemctl enable systemd-boot-update.servicepacman -Syu pipewire pipewire-alsa pipewire-pulse pipewire-jack wireplumber networkmanager systemctl enable NetworkManager.serviceCheck GPU
lspciVGA compatible controller: Virtio GPU
pacman -S xf86-video-vesa mesa xorg-server plasma-meta kde-applications-meta sddm konsole dolphin kate
systemctl enable sddm.service --nowexit
unmount
reboot