-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Companion PR for: radiasoft/download#739
- Loading branch information
Showing
2 changed files
with
12 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
#!/bin/bash | ||
|
||
vm_devbox_main() { | ||
if vagrant --version > /dev/null 2>&1; then | ||
if rpm -q libvirt-devel &> /dev/null; then | ||
return | ||
fi | ||
declare p=kernel-devel-$(uname -r) | ||
if ! yum list "$p" &> /dev/null; then | ||
install_err "rpm $p not found. | ||
Virtualbox needs the kernel-devel rpm for the host kernel to be installed. | ||
Maybe try updating the kernel? The repos only have kernel-devel for recent versions of the kernel." | ||
fi | ||
rsconf_yum_install "$p" | ||
yum-config-manager --add-repo https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo | ||
yum makecache -y | ||
rsconf_yum_install VirtualBox-7.0 | ||
yum-config-manager --set-enabled crb | ||
rsconf_yum_install '@Virtualization Hypervisor' '@Virtualization Tools' '@Development Tools' libvirt-devel | ||
yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo | ||
rsconf_yum_install vagrant | ||
systemctl enable --now libvirtd | ||
systemctl start libvirtd | ||
usermod --append --groups libvirt '{{ rsconf_db.run_u }}' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters