You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to Install the Vagrant libvirt Provider on Ubuntu 22.04.2 LTS Desktop or Server
How to Install the Vagrant libvirt Provider on Ubuntu 22.04.2 LTS (and above) Desktop or Server
This document describes how to install the Vagrant libvirt provider on Ubuntu 22.04.2 LTS Desktop or Server. Much of the content is based on a blog post by Philippe Vanhaesendonck of Oracle Corp. describing how to set up the Vagrant libvirt provider on Oracle Linux.
All of the commands shown should be run in a terminal window or SSH session.
Before You Start
Verify That Your CPU Supports Hardware Virtualization
How to remove preinstalled VirtualBox Guest Additions from Ubuntu
Removing Preinstalled VirtualBox Guest Additions from Ubuntu
Ubuntu 18.04 (and 19.03) has an older version of the VirtualBox Guest Additions preinstalled. The "normal" method of using the VirtualBox Guest Additions image (VBoxGuestAdditions.iso) to upgrade doesn't work unless the preinstalled Guest Additions are removed first.
Add SQLPATH as a user environment variable, pointing to %USERPROFILE%\Documents\Oracle
Add C:\Program Files\SQLcl\bin to system PATH envrionment variable
Rename C:\Program Files\SQLcl\bin\sql.exe to _sql.exe
Copy sql.cmd to C:\Program Files\SQLcl\bin
Note: Portions of sql.cmd are adapted from Oracle's sql.bat, which was used to start older versions of SQLcl on Windows, and from Glen Conway's excellent hints in this thread in the Oracle SQLcl Community.
Run the script below to install, upgrade or downgrade the VirtualBox Guest Additions for Linux. The script will install the latest version by default, but also allows specifying a different version as an argument.
Note: The script requires the bzip2 and wget packages.
If the guest already has a shared folder with the host, one can also copy VBoxGuestAdditions.iso from the VirtualBox installation folder (usually C:\Program Files\Oracle\VirtualBox on Windows) instead of downloading the Guest Additions using wget. However, mounting the .iso from a shared folder probably won't work--the file needs to be copied to the guest's filesystem.
Automatically Installing SQLcl for Oracle's Vagrant Database Boxes
Automatically Installing SQLcl for Oracle's Vagrant Database Boxes
Oracle provides Vagrant configuration files for installing several versions of Oracle Database in the oracle/vagrant-boxes GitHub repository. The Oracle Database box installers allow running user-defined scripts automatically after the database has been set up and started. This document provides instructions and scripts that use this functionality to install SQLcl.
Overview:
The procedure below installs SQLcl for the vagrant user only.
Oracle envrionment variables are set for the vagrant user (using oraenv), so that SQLcl can find the database's tnsnames.ora file, and the vagrant user can run the database utilities, like SQL*Plus and RMAN.
SQLcl requires Java 1.8 or above. The procedure installs the latest OpenJDK from the Oracle Linux Yum Server, and creates a script to allow the vagrant user to run SQLcl without Java version conflicts, while preserving the