- Head over to the Red Hat Linux download section and click the View Older Downloads link. In the download links, select the DVD iso files. This normally should start your download.
- Download Virtual Box from the download section and install it on your machine.
- Virtualization hosts must have at least one CPU.
- It is recommended that virtualization hosts have at least 2 GB of RAM.
- It is recommended that each virtualization host has at least 10 GB of internal storage.
- Start VirtualBox and click
New
- Name your machine, preferably with a descriptive but memorable name (e.g.,
redhat-box
), select typeLinux
, and versionRed Hat (64 bit)
(unless you downloaded the 32 bit version. A note on this, some machines you may need to go inside your UEFI/BIOS firmware, and enable Intel VT-x to be able to run the 64 bit version, highly recommended!) - Next set your RAM. I decide to set mine to 2048MB, but RHEL 7.5 Linux requires much less than that.
- Create a virtual hard disk now and select
VDI
andDynamically allocated
on the next screens. - Select a reasonable disk size (e.g., 40GB). Note that all of those settings are not that important at the moment as they can be changed in the future
- Once this wizard completes, finally go to
Storage > Storage Tree > Controller: IDE > Optical Drive + icon > Choose Disk
and navigate to where the ISO file you downloaded previously is stored (I personally moved the ISO underC:\Users\USERNAME\VirtualBox VMs\rhel-server-7.5-x86_64-dvd.iso
. - Click ok and you are now ready to Start the VM
- Once started, select
Boot Red Hat Linux (x86_64)
We now want to install Red hat Linux as guest to our Virtual Box, following the steps listed below:
-
Once you boot the VM, this brings us to the boot screen and you can select the first option to start the installation:
-
This brings you to the options page. You will see that the Begin Installation button is not lit because we need to set up a few things first. Start by choosing the install type you want. For simplicity, I’ve selected Minimal Install.
-
Now you will see the Begin Installation button is lit up and ready to go! Go for it ?
-
With the install underway, we can configure the root password and also set up a non-root user for you to use.
-
Next up you can configure the non-root user for daily administration. Obviously, you will fill in your information rather than mine in here…unless you want me to have access that is:
-
As quickly as it started, it’s all done! (results may vary depending on internet and hard drive speeds):
-
Once you reboot the server after the installation completes, you’ll find yourself at the initial login prompt enter the password and you are done!
CloudSlang requires JDK 8+ to run. Install the latest Java 8 i.e. Java 1.8.0_XXX-XXX where ‘1.8.0’ states it is Java 8. To begin, make sure that all the packages currently installed on your RHEL system are updated to their latest versions:
$ sudo yum update -y
$ sudo yum install java-1.8.0-openjdk
You can verify that you have the appropriate version by running the following command:
$ java -version
You should see "1.8.somethingorother" Because reasons.
The CloudSlang CLI is a command line interface tool that can be used to run flows. In this section, we will download the CloudSlang CLI tool and the available content (predefined operations and flows).
-
First, Download the CLI with content zip file.
$ wget https://github.com/CloudSlang/cloud-slang/releases/download/cloudslang-1.0.23/cslang-cli-with-content.zip
-
Unzip the archive.
$ unzip cslang-cli-with-content.zip
-
This will create a cslang directory. If you list the contents of that directory,
ls ~/cslang
You will notice three directories in it:
python-lib
, which is used for external Python libraries.cslang
, which contains the CloudSlang CLI files. Thecslang/bin
folder contains a file named cslang which is used to start up the CLI. Thecslang/lib
contains the necessary dependencies for the application.content
, which contains the ready-made CloudSlang content.
In order to run the example flow attached, on the CloudSlang server, first change to the /cslang/bin
directory.
cd ~/cslang/cslang/bin/
Run the executable called cslang
in order to start up the CLI.
./cslang
After a moment, you'll see the CloudSlang welcome screen.
1.0.23
Welcome to CloudSlang. For assistance type help.
cslang>
Extract the examples.zip
to the content directory and enter the following command in the CLI.
run --f ../content/examples/flows/hello_world.sl
The run command triggers the flow. --f specifies the path to the flow. While the flow is running, the CLI displays the task names that are executed. Once the flow finishes, the CLI outputs some useful information like the flow outputs and the flow result.
In our case, the flow result will either be SUCCESS (which means it prints the text Hello, World) or FAILURE (which means a problem occurred).