As a working system, Arch Linux is fast and convenient, but its stability is obviously not as good as that of a professional server system. Recently, a LAMP system will be deployed, and the operating system chosen is CentOS 7.4. To get things done as quickly as possible, install a virtual machine first and get familiar with the process.
- Install Virtualbox:
# pacman -S virtualbox 正在解决依赖关系... :: 有 2 个软件包可提供 VIRTUALBOX-HOST-MODULES : :: 软件库 community 1) virtualbox-host-dkms 2) virtualbox-host-modules-arch 输入某个数字 ( 默认=1 ): 2
On the Arch Linux wiki page, there is an explanation of the choice between the two:
Install the package virtualbox. The installation method of the kernel module should be selected from the following two:
If you are using the default linux kernel, it is recommended to install virtualbox-host-modules-arch
. If you use other kernels, you need to install virtualbox-host-dkms
in order to be based on virtualbox-host- dkms compiles the kernel module, and you also need to install the kernel header files corresponding to the kernel (for example
, the header file of the linux-lts kernel is linux-lts-headers). When VirtualBox or the kernel is updated, the Pacman hook of DKMS will automatically
compile the kernel module.
- An error is reported when creating a virtual machine to start the virtual machine, to the effect: Either the module is not loaded, or there is a permission problem. Use /sbin/vboxconfig to solve the problem. However, there is no such command in the /sbin directory, so execute
Reloaded the module and the problem was solved.# vboxreload