1、VirtualBox依赖安装
# 安装依赖并重启服务器 dnf --enablerepo=epel -y install kernel-devel-$(uname -r) kernel-headers-$(uname -r) gcc gcc-c++ glibc make bzip2 dkms perl elfutils-libelf-devel libX11-devel libXt libXmu
2、VirtualBox安装
# 安装源配置 curl http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo -o /etc/yum.repos.d/virtualbox.repo # 查看当前可用版本 dnf search virtualbox # 安装VirtualBox dnf -y install VirtualBox-7.0
3、Vagrant安装
dnf install -y yum-utils yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo dnf -y install vagrant
参考:https://developer.hashicorp.com/vagrant/downloads
https://www.virtualbox.org/wiki/Linux_Downloads
标签:dnf,Rocky,Vagrant,repo,VirtualBox,install,Linux,安装,virtualbox From: https://www.cnblogs.com/a120608yby/p/17187962.html