Skip to content

VirtualBox and Vagrant Installation

Franknaw edited this page Jan 21, 2021 · 11 revisions

Install VirtualBox RH 8

hypervisor for x86 virtualization

  • Download repo file.
  • wget https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
  • sudo mv virtualbox.repo /etc/yum.repos.d/
  • Import Oracle key wget -q https://www.virtualbox.org/download/oracle_vbox.asc
  • sudo rpm --import oracle_vbox.asc
  • Add EPEL Repo, if not already
  • sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
  • Install required build tools
  • sudo dnf -y install binutils kernel-devel kernel-headers libgomp make patch gcc glibc-headers glibc-devel dkms
  • Install VirtualBox 6.1
  • sudo dnf install -y VirtualBox-6.1
  • Add vboxusers group to current user
  • sudo usermod -aG vboxusers $USER
  • Rebuild Kernel modules
  • sudo /usr/lib/virtualbox/vboxdrv.sh setup
  • To start VBox from command line - or launch from desktop UI
  • VirtualBox
  • Download and install extension pack - open in file browser and click the binary to install
  • wget https://download.virtualbox.org/virtualbox/6.1.6/Oracle_VM_VirtualBox_Extension_Pack-6.1.6.vbox-extpack

Install Vagrant RH 8

Vagrant is a tool for managing virtual machines. Vagrant generalizes virtual machine creation across multiple virtualization tools such as VirtualBox or VMware and even provides remote options for AWS, OpenStack or GCE.

  • Install latest version
VERSION="2.2.14"
sudo dnf -y install https://releases.hashicorp.com/vagrant/${VERSION}/vagrant_${VERSION}_x86_64.rpm
  • Verify
vagrant --version
Vagrant 2.2.14

Helper Commands

  • Manually run playbook on vagrant host.
    • ansible-playbook --private-key=~/.vagrant.d/insecure_private_key -u vagrant -i .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory playbook.yml

TODO Installation for RH 6, with captured RPM's


References