In this video, we are going through the installation of virtualization software.
So the very first thing we have to do is to identify whether we are using a laptop or a desktop that's
going to be your home lab.
It could either run a mac operating system or Windows operating system.
Then the next thing we will have to do is install a virtualization software on it, the virtualization
software.
For this course, we will be using Oracle VirtualBox.
If you're using Apple Mac OS with M1 Chip, then you will have to go with UTM virtualization software.
All right.
So first thing is, what is a virtualization software?
Virtualization software is a software that runs on top of your existing operating system and it allows
you to create virtual machines on top of your existing operating system.
So you do not have to remove the existing operating system.
What is Oracle VirtualBox?
So Oracle VirtualBox is a free software.
It's a virtualization software by Oracle that we will be using in this course.
You could go where the VMware workstation player as well.
If that is something that you are familiar with and that's something you prefer, then we will go ahead
and download the Oracle VirtualBox and then once it's downloaded, we'll go ahead and install Oracle
VirtualBox on our computer.
My computer?
Is using a Windows 64 bit operating system.
If you are using Windows computer, then you could go to your search menu and type my computer or this
PC right click and go to properties here.
You'll find out the process, that information and the memory that you have installed a type of computer.
As I said previously, it has to be a 64 bit operating system.
All right.
Once you have confirmed, now it's time to go ahead and download the Oracle VirtualBox.
By the way, if you already are familiar with Oracle VirtualBox or you already have a virtual machine
running Linux operating system to install Ansible, then you could simply skip this entire video.
All right.
If you're doing this for the first time, then let's go ahead and start up your browser and your browser
of your choice.
I'll go ahead with Firefox and here I'll type it.
In download Oracle VirtualBox.
Go to the one that says VirtualBox or click on it.
And pick your operating system since the operating system is windows.
So we'll pick windows host.
And it will start the download process once it's downloaded.
Perfect.
Go ahead and click Open File.
Now, this is the time to do the installation.
All right.
You might get a message.
Say, do you want to allow this app to make changes to your device?
Click.
Yes.
All right.
Welcome to Oracle VM VirtualBox the version set up wizard.
Just simply follow the wizard.
Leave everything default.
Click next.
Choose from the following options.
Create a start menu.
Create a shortcut on desktop.
Create a shortcut.
Quick launch bar.
Leave that out and register file association or leave everything by default.
Click next.
Proceed with installation warning network interface installing Oracle VM VirtualBox networking feature
will reset your network connection and temporarily disconnect you from the network.
So if you are running any other important or production critical application on your machine, this
machine where we installing, then I would say stop them first because the network adapter will reset
and it will give you a brief interruption on the network.
If not, if it's just a lab or home computer, then simply click.
Yes.
And install.
All right, Oracle VM VirtualBox version installation is complete Click Finish Button to Exit a setup
and also a check mark is already there by default.
If you want to start a menu, click finish.
All right.
So as soon as the application or the software starts up, this is the window box that you will see.
Let me minimize the Firefox in the background.
And right here you will see this is the Oracle VM VirtualBox manager.
This is where you will go in and create virtual machines.
And once we create the virtual machine will install the Linux operating system, install Ansible and
we'll go from there.
Previously, we have downloaded and installed Oracle VirtualBox.
Now it's time to go in and create a virtual machine and install Linux operating system.
So step by step, the very first thing we did, we identified our computer where we will be installing
the virtualization layer.
So second thing we did downloaded and installed the virtualization, which we picked the Oracle virtual
box.
Now the third thing is we'll go and open up our virtual box and create a virtual machine.
Then the last step is to install Linux operating system.
Now in this course, I'm going to install Linux Santas version eight operating system.
Of course, you could go with any version of your choice.
You could either go with Red Hat six, seven, eight, or you could go with Santos.
You could go with a one, two.
All the instructions have been provided.
But for this course, we will go with Santos version eight.
All right, so first thing is to create a virtual machine.
All right, so you could start your Oracle virtual box by typing right here or simply double click the
icon on your desktop.
Let's start it from the desktop.
Click new to create a new virtual machine.
Let's pick the name and symbol control node.
This is the name of the virtual machine, not the name of your operating system.
All right, so pick the type, Linux and the version.
Let's pick Linux 2.6 64 bit and click next.
This is the size of your memory, which is one gig by default.
Let's change it to 22048.
Next, this is going to ask you about your disks.
Create a virtual disk now.
The file type, leave default, leave the default and change the disk size to 20 gig.
If you are planning on adding a lot of scripts or a lot of huge files onto your ASP.NET control node,
then change the size according to your requirement.
Click Create.
Now your virtual machine has been created.
I want you to go to setting.
And you will see in general, it has a name and a type of operating system that will be hosting on this
computer.
Go to system if you want to change the memory.
You could change it.
Now, if you want to change the processor, which is given as one CPU by default, if you want to change
it, change it now go to storage and click on Aspect Control Node DVD and you will see this, the 20
gig that we have picked for our disk space.
I want you to go to a network and change that task to from that to bridge adapter.
This will allow you to connect to the Internet once you have the operating system installed.
That's perfectly okay.
Now before you power it on, it is going to ask you where the operating system is.
So we have to download the Santos ISO image.
For that we'll go to our Firefox.
That's a browser that I'm using.
Go to Google and type it in download Santos.
Go to the Santos dot org.
Click on Santos stream because Santos Lennox will give you seven.
If you wanted to go with seven, that's still fine.
Click on this one on seven and pick the first one, the first mirror that will allow you to download
the image.
Now we are going with eight Santos stream version eight and x86 underscore 64 bid.
Click on it and pick the first one and then pick the one that says x 8660 for the version DVD one ISO
and you will notice it has the the highest size.
Pick this one and it will start downloading.
I have already downloaded this ISO image to save some time, so I'm going to cancel it.
If you have not downloaded, so please wait until the download completes.
All right.
So a download is completed.
I have it downloaded on my desktop.
Right?
Here is the download of ISO image.
Now go ahead and click on START.
We'll start the virtual machine.
Once it starts is going to ask you where is the ISO image of the operating system that you want to install?
So we'll pick this folder.
Add.
Where is our ISO image?
It is on our desktop and right here is the ISO image.
Click open and click choose and then start.
This page is by default selected tests media and install center stream.
Move your arrow on the keyboard and select the first one which is installed center stream eight and
enter.
All right.
You're going to get the welcome to Santos installation.
Pick your language.
The region.
For me, it's United States and then click continue.
All right, please complete items, Mark, with this icon before continuing to the next step.
Keyword English Lever Default Installation Source Local media which we have picked from our desktop
installation destination.
So this is the 20 gig.
It's already checked.
Click done.
It's checking storage, automatic partitions.
We are now going to do the custom partition.
We're just picking the automatic partition language separately with default software selection server.
With Google, you can leave that default unless you want to add more packages.
Simply click done.
K dump is enabled by default leave as is time and date.
For me, it's America's New York.
You could change it according to your time and region, network and hostname right here.
Our network is turned on.
We'll move this here and change the hostname to ansible control node.
Or we could make it shorter by just saying control node, this is going to be the hostname of this operating
system.
Once you click on Apply, it will say current hostname is control node.
The network is connected on already beautiful click done.
Now that one is done.
Security policy, you don't have to make any changes.
Rude password.
Pick a password.
Okay.
It's saying the password fails.
The dictionary check.
It is based on a dictionary word which you will have to press done twice to confirm.
So if you're picking a weak password, that is fine.
But you have to press a done twice.
But of course, I would recommend that you pick a stronger password.
All right.
Since this is again, it's lab.
That is fine.
The next one right here is this user creation.
If you want to create a user, you can.
I'm going to create a user for myself.
Requires a password.
Pick a password for that user.
Against a weak password.
That is fine.
So I'm going to click done twice.
All right.
All the information that is needed has been provided.
Perfect.
Now click on Begin installation.
Now this is going to take anywhere from 5 minutes to 20 or 25 minutes, depending on the speed of your
computer where you are running this virtual software.
All right.
I'm going to fast forward from this point.
All right.
So installation has been completed.
Go ahead and click on Reboot System.
License information.
Click.
I accept the license agreement.
Done.
Finish configuration.
All right.
So now you got the login screen.
Go ahead and click on your name.
Or you could click on not listed and type it in route if you want to log in as route head enter.
Okay.
So now we have a desktop.
Click on activities.
And click on the terminal.
This is the terminal that we will be using to execute Ansible scripts or Ansible commands.
But for that, first we have to install Ansible.
So anyway, for this video, we have created a virtual machine and install a Linux operating system
on our virtual machine.
And of course, the next step would be to install the ANSIBLE software.
I'll see you in the next lecture.
Hey, folks.
So this is the last step of our lab setup.
We have downloaded and installed Oracle VirtualBox.
Then we have downloaded and installed Linux operating system.
Now it's time to install Ansible software or Ansible engine on our Linux operating system.
All right.
So one important thing before you go ahead and install Ansible is that I want you to take a VM snapshot.
This will allow you to come back or revert back to the VM original state when you took the snapshot.
In case you do make a mistake or do some kind of misconfiguration on your Linux operating system.
All right, so go to our Oracle VirtualBox.
Right here.
Your Ansible control node is powered off.
You have this menu.
If you don't have this menu, simply click on these three dots, click on Snapshot and then click Take.
Give it a name.
I'm going to give Linux install point which will remind me this is the time when I've completed the
Linux installation click.
Okay.
All right, it's done and I'll go ahead and click Start.
All right.
While this a virtual machine or this Linux operating system is starting it up, let's go to the next
step, which is Ansible installation guide can be found on this link.
So I want you to write down this a link because this will give you a lot of good information of step
by step instruction on installing Ansible.
If you are installing a different version than sent us eight, which I am going to be installing it
on.
So if I go to my Firefox, which I have already opened and I am already on that page, on this page
you will notice here's a list of all the instructions of installing Ansible on different operating system.
Right here is RHEL Center or Fedora.
These are the instructions which we will follow to install it on CentOS.
If you are doing it on a button to follow this instruction for Dave and follow this instruction and
there are other.
Unix or Linux type operating system, which you could follow the instruction and install Ansible.
All right.
Going back to our slide and going back to our virtual machine.
Our virtual machine is up.
And let's log in as our self.
Okay.
So if you notice, this is a smaller windows of virtual box.
If you want to make this window bigger, you could right click on your desktop, go to display setting.
And right here where you see resolution.
Click on it.
Change the resolution to whichever resolution according to your requirement.
I'm going to leave it as is for now.
Okay.
This is a welcome message that you're going to get every time you start it up.
You could actually quit out of it by clicking here and quit.
All right.
So going back to display will change whatever you have applied the setting and it will make it bigger.
Right click on activities, go to the terminal.
So we have the terminal open.
The next step is for Santas of Red Hat Fedora Version seven.
You will have to run the command command jam, DNF.
DNF is going to be replacing Yum eventually.
So for now you could use either or so install EPL Daschle's and then install Ansible.
Now for Santas eight or any of the version eight, this is these are the instructions that we will follow
going back to our Linux machine to follow these instructions and install any package we have to run
the command as root, so become root.
All right, now go ahead and run the command.
Yum.
Install epi l release.
All right.
It's asking you to confirm a type of lie and confirm again.
And the package has been installed.
All right.
The next thing is you have installed Python.
Now with Santos, eight or newer version of Red Hat or Linux, the Python package should already be
installed or installed out of the box to confirm that you can run the command rpm desk and grep for
python and you'll notice they these are all the list of python packages that's already been installed.
Great.
Now the next step is to install Ansible.
So that's clear the screen and type it in Yum or DNF.
So in this this time we'll run DNF.
Install Ansible, this is the Ansible engine or software itself.
And then next package that we will install in addition to Ansible is the Ansible documentation and header.
All right, Ansible and Ansible, dock package is completed to verify it.
You grow in the command rpm queue and grep for ansible.
All right, it's there.
Ansible Core and Ansible Dock.
The next thing is, if you are using CentOS Ace eight and the above steps don't work, then follow these
steps.
So usually version eight will come with Python three.
If it's not, then you follow these steps.
Yum.
Install Python three and then use python package installer to install ansible, which is pip three.
Install Ansible.
Dash Dock.
All right.
Moving on, if you're using RedHat eight and above steps that you followed did not work, then you have
to enable the Ansible engine repository to install Ansible.
And for that you will run the command subscription dash manager repos enabled ansible repositories and
then install Ansible.
All right.
So now after Ansible has been successfully installed on your Linux machine, let's confirm.
So here is our Linux machine.
Let's clear the screen and you will run the command ansible dash dash version.
And it will give you the version of the astral engine or Ansible software that has been installed.
All right.
It is there.
We confirm that.
Now run ansible command module using Peng.
So it will be Ansible.
Local host.
Dash M Peng This command is going to run as the module called Peng against the local host so simply
as if you are doing ping.
Local Host And it is pinging and confirming it could ping.
The local host just like that.
We have a ping module within Ansible, by the way.
There are many, many, many more modules that we will cover later on.
But for now this is what I wanted to confirm, to see if Ansible has been installed.
All right, let's check the Ansible config files.
So let's clear the screen again.
The Ansible files, all of them are located in and at see Ansible and you do listing of the files and
directories.
You'll see there are roles directory which we will cover later on.
Then there is a host file.
That's where all the remote clients inventory resides.
So we every time we run an Ansible command, it comes to this file to see where the list of all the
hosts or remote clients that it has to execute the commands on.
And the last one is Ansible CFG.
If you need to make any configuration change on Ansible, you could do it on this configuration files.
All right.
The last thing, please note, if you have Linux enabled on remote nodes, you will also want to install
lib AC Linux dash python on them before using any copy file template related function ansible.
Now you do not have to go log into each and every one of them.
What you could do is you can use the Yum module or DNF module in Ansible to install this package on
remote hosts that do not have it.
All right, so we will disable the links on our remote client because we are using all that setup in
our lab environment.
But if you're doing it in production, then please make sure you install this lib as Linux dash python
package.
All right.
So now this completes our entire lab setup and configuration.
Now it's time to really get our hands dirty and run our ansible automation scripts against our local
hosts and remote clients.