3 ms·
Arch Linux on VirtualBox using EFISTUB Super simple steps to install an Arch Linux guest on VirtualBox with pure EFISTUB. No bootloader! Fill in the blanks wit
by nszceta 9y ago
Arch Linux on VirtualBox using EFISTUB
Super simple steps to install an Arch Linux guest on VirtualBox with pure EFISTUB. No bootloader! Fill in the blanks with https://wiki.archlinux.org/index.php/installation_guide https://wiki.archlinux.org/index.php/installation_guide
timedatectl set-ntp true
gdisk /dev/sda
# 256 MB partition type EF00
mkfs.fat -F32 /dev/sda1
mkfs.btrfs /dev/sda2
mount -o discard,compress-force=lzo /dev/sda2 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
pacstrap /mnt base base-devel btrfs-progs vim openssh
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
timedatectl set-ntp true
vim /etc/locale.gen
locale-gen
vim /etc/hostname
vim /etc/hosts
systemctl enable dhcpcd
systemctl enable sshd
passwd root
useradd -m user
passwd user
# /boot/startup.nsh
fs0:\vmlinuz-linux rw root=/dev/sda2 initrd=\initramfs-linux.img
exit
umount -R /mnt
poweroff