- 1.安装kernel-headers、kernel-devel It must be consistent with the kernel version of centOS. You can use rpm -qa | grep kernel | sort to see the version. You can use yum to install the corresponding version yourself, or you can go to the online warehouse to download the corresponding version rpm file
- 2. Install: wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo Then execute these two commands: yum clean all yum makecache
- 3. Installation: yum install VirtualBox-5.1
- 4. Build the kennel module: yum install gcc make
- 5. Add the root user to the vboxusers group: usermod -a -G vboxusers root
- 6. Finally start: /sbin/vboxconfig
Centos7 installs virtualbox (too frustrating)
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326187430&siteId=291194637
Ranking