- partitions
- use the tool of your choice (fdiks/gdisks/parted)
- gdisk p1 +1M EF02 (bios boot)
- filesystems
mkfs -t <fs-type> /dev/<partition>
- mount partitions on /mnt
- setup network
ip address add <IP>/<CIDR> dev eth0ip route add default via <GW>- add dns in /etc/resolve.conf
- select pacman mirror
- /etc/pacman.d/mirrorlist
- select repositories
- /etc/pacman.conf
pacman -Syypacstrap /mnt base base-develgenfstab -U -p /mnt >> /mnt/etc/fstab- check/edit the generated fstab
- install GRUB
arch-chroot /mnt pacman -S grub-bios
- chroot
arch-chroot /mnt /bin/bash - set locale
- edit /etc/locale.gen
- run
locale-gen
- edit basic system properties
- /etc/locale.conf
- /etc/vconsole.conf
- /etc/hostname
ln -s /usr/share/zoneinfo/<Zone>/<SubZone> /etc/localtime- edit /etc/mkinitcpio.conf and add the required KVM modules
- MODULES="virtio virtio_blk virtio_pci virtio_net"
- rebuild image
- run
mkinitcpio -p linux
- run
- users setup
- set root password with
passwd - create new user
useradd -m -g users -s /bin/bash <username>passwd <username>
- set root password with
- configure GRUB 2:
modprobe dm-modgrub-install --target=i386-pc --grub-setup=/bin/true --recheck --debug /dev/vdamkdir -p /boot/grub/localecp /usr/share/locale/en@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mogrub-mkconfig -o /boot/grub/grub.cfg- check/edit grub.cfg
- reboot
-
-
Save goffinet/2c46c3921fbe22b600ad840c2bbf9881 to your computer and use it in GitHub Desktop.
archlinux kvm guest install cheatsheet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment