A bash script for Arch Linux to install packages for virtualization and containerization.
- Paru AUR Helper - https://aur.archlinux.org/packages/paru-bin
- Clone the git repo
git clone https://github.com/fsociety3765/arch-virt - Move into the git repo and make all scripts executable
cd arch-virt/ && chmod +x *.sh - Run the
virt-setup.shscript
./virt-setup.sh - Follow prompts until the setup is complete.
During the installation of VirtualBox you will be asked to choose a package to provide host modules. This will depend on the kernel you're running.
- for the
linuxkernel, choosevirtualbox-host-modules-arch - for any other kernel (including
linux-lts), choosevirtualbox-host-dkms
To compile the VirtualBox modules provided by virtualbox-host-dkms, it will also be necessary to install the appropriate headers package(s) for your installed kernel(s) (e.g. linux-lts-headers for linux-lts). When either VirtualBox or the kernel is updated, the kernel modules will be automatically recompiled thanks to the DKMS Pacman hook.
See https://wiki.archlinux.org/title/VirtualBox for further information.