Create the partition:
sgdisk --zap-all /dev/sda
cgdisk /dev/sda
mkfs.ext4 /dev/sda1
mount /dev/sda1 /mnt
Edit the mirror list to bring the preferred mirror to the top:
vi /etc/pacman.d/mirrorlist
Install the base system
pacstrap /mnt base base-devel
Generate an fstab
genfstab -U -p /mnt >> /mnt/etc/fstab
vi /mnt/etc/fstab
Chroot into the new system
arch-chroot /mnt /bin/bash
Set hostname
echo arch > /etc/hostname
Set root password to "vagrant"
passwd
Set up DHCP
systemctl enable [email protected]
Create "vagrant" user
useradd -G wheel -m vagrant
passwd vagrant
Setup bootloader
pacman -S gptfdisk syslinux
syslinux-install_update -iam
Edit boot configuration in /boot/syslinux/syslinux.cfg
:
LABEL arch
...
APPEND root=/dev/sda1 rw
Setup ssh:
pacman -S openssh rsync
systemctl enable sshd.service
Edit /etc/ssh/sshd_config
UseDNS no
Clean package cache
pacman -Sc
exit
chroot environment and reboot
.