1.1关闭防火墙命令:
禁止开机启动 命令:
systemctl stop firewalld.service
systemctl disable firewalld.service
1.2关闭 SElinux
vi /etc/selinux/config
将 SELINUX 值设置为 disabled
2.1安装RHEL Repo文件
[root@localhost ~]# curl http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo -o /etc/yum.repos.d/virtualbox.repo