Time
2 hours 51 minutes
Difficulty
Beginner
CEU/CPE
3

Video Transcription

00:00
Hello. My name is Jasmine Jackson and our courses introduced vagrant. And in this video, I will show you a demo on how to use vagrant share. So less less go. The learning objectives for this video are we will learn how to configure vagrant share. Let's start with our demo.
00:19
Okay?
00:20
We are in our vagrant folder and commander it remember, commander is ah, Windows Council emulator where you can execute limits commands on the windows machine.
00:33
So what we're going to do is we're going to start our vagrant machine and we're going to do that with the command vagrants,
00:41
Uh,
00:56
and you will see
00:59
in the four ports.
01:02
I added a Newport from 80 that goes to pour 20 to 24 essentially
01:11
for New York. It is currently filtering all traffic
01:17
to Port 80. So now I'm going to filter all the traffic from 84 82 Port 20 to 24 on my host machine.
01:30
So now that vagrant has started, I am going to type vagrant
01:37
share.
01:38
Um, Dash Dash http because we're going to specify the h T T P port and I'm going to tire 20 to 24 that matches our forward court
01:53
and
01:53
there
01:55
it is currently a bug and mark,
02:00
because if I just type vagrant share along with just the http port and press insert
02:14
it hangs here. It's saying that creating vagrant share session and it will hang So right now there is a bug in the current version of Norc. So what we're gonna have to do is
02:28
if you do this, you're gonna have to press control, see, and then add the debug feature two vagrants share and by adding the debunked feature, we will get the
02:43
public u R l
02:45
for our
02:46
vagrant machine. So
02:50
right now Ah, whole bunch of stuff popped off and just blabbed to the screen. And here we have a your URL. And as you can see, the domain is Norc Daio. So what we're gonna do is we're going to highlight this u R l
03:12
if I can highlight
03:20
and I'm going to open, I'm gonna open Internet Explorer. I'm going to go to the North interface, which is local host 40 40
03:32
and as you can see now are Norc Web server has started,
03:38
and
03:40
if you notice it says no request to display yet to get started making request to one of your tunnel, you Earls. And as you can see, the U R L is be eight e 39552 dot Norc die io. And if we go back to the Commander
04:00
and look at the your u R L, you will see that the U. R L matches
04:04
what is currently displayed on the Norc
04:10
council. Here be eight e 39 552
04:16
b eight e 39 552 So now what we're gonna do is we're going to open another tab
04:24
and insert are you are ill.
04:27
And now
04:29
we have successfully shared our vagrant machine because that that the, uh, the Apache Defar page it has rendered. And remember when I
04:44
first installed Apache in less than four with secure Stockett shells in installing software,
04:53
I mentioned that I don't have Mobutu on mine host machine. I'm using Windows 64 when we did the four ports, public and private networks,
05:06
when we did, and less than eight when we talked about networking and when we did for porting public networks and private networks and we were able to see that the networking
05:20
was successful as we received this default page and again I mentioned. And in those lectures I don't have food to installed on my host machine. I have a Windows machine. The only machine that has improved to installed
05:36
is my vagrant machine, which is the vagrant trustee 64 machine.
05:42
I know now that our favorite share is successful because I have announcing our bamboo to Apache default page. And again, I only have one boot to installed as a vagrant machine. And that machine is the Abu to trustee 64 machine.
06:01
So So I was successfully able to share my vagrant machine. Let's recap.
06:15
Okay, it's a lot that spitting out, but essentially
06:19
to recap I
06:24
I started my machine using the vagrant up command. And then I showed I explained that there's a bug in Rourke that if you only use
06:35
vagrants year,
06:39
dashed as http and remember, we created a full report of 20 to 24.
06:46
If we use the command vagrant share
06:49
Dash dash http Port 20 to 24
06:55
vagrant share hangs because there's an issue with Norc where we don't see the
07:02
North
07:03
public,
07:04
you are ill.
07:06
So to change that we have to go and debug mode. So what we did was we pressed control, See? And then we enter the command again as vagrants. Share
07:18
dash Dash http The full report of 20 to 24 dash dash debug. And then at that point, a lot of stuff
07:30
was spitting on our machine. But
07:35
what? What we did see was the u R l here
07:45
and that was the North
07:47
Public. You are l Next we went to
07:55
1 27.0 dot 0.1.
07:59
Call in 40 40 as that's the Norc Web interface and remembered the first screen we saw was Okay, there's no request, you know, go to this u r l to start sending requests. And like I mentioned that you are l that was on
08:16
the web page
08:18
match the u R. L
08:22
specified here.
08:24
Those two were the same you RL's.
08:28
Next we opened another tab and then we pasted that your URL and then we were able to see our Apache
08:37
own boo to Defar Page and I know it was successful because again, my host machine is a window 64 machine and I do not have Apache installed on my host machine Apache is only installed on my vagrant machine, which is an unbuttoning machine. Mobutu trustee 64. So I know that
08:56
my vagrant share was successful because this page
09:01
rendered for us. So we have successfully shared our vagrant machine
09:07
and this is good, as I said before, because if you use the http share, the recipient doesn't need vagrant. All they need is this u R l
09:22
and this is the u. R l that you would supply them and then they can open their browser and now they have access to your vagrant machine. So right now, on our vagrant machine, we only have, you know, the default page. But if you have like an app
09:39
and you had other webpages,
09:41
then essentially they will be able to access those other webpages with this link that you would provide. So I hope you understand how powerful this is because if you create a vagrant machine and you want someone else to view that machine,
10:01
you don't have to give them your vagrant machine. You could just give them
10:05
this u r l and just say, Hey, here's the u R l and you could be able to view the Web pages all my vagrant machine. In that way. You know, you can have that you are l active for however long that you want. And then
10:22
when you want to close your l and active essentially, what you would do is you would press control. See, that's another thing. So if you were to close the session and then start vagrant share again, the U R l that's provided
10:43
here
10:45
will be different. It would not be the same your u R l If you want the same euro, I believe that can happen. But you have to get the paid service of north right now we're just using the
11:00
free version. So whenever you shut down vagrants here and then restart vagrants share,
11:05
you will receive a new euro. So we have successfully shared our
11:13
vagrant machine. So in summary in this video, we learned how to configure vagrant share. And at this point, this is the end of our course and this is the last demo and I hope that you have learned a lot in the scores with
11:31
creating a vagrant machine using pre configured boxes, we use the boom to trustees 64 box How to start a vagrant machine? How to do a secure shale into our machine as well as manually installing software
11:48
follow by how to
11:52
shut down,
11:54
restart and destroy our vagrant machines, along with networking, with using full reporting and creating public and private networks. And they're finally using provisioning where we created in life scripts that were
12:13
echo to the screen and then external scripts where we where you can,
12:20
for instance, install software. You could create a script to install software one time and then provision that to multiple vagrant machines to finally sharing our vagrant machine to another recipient. And again, we use the http mode
12:39
vagrant sharing because that with that mode,
12:43
the recipient does not need to have vagrant installed. All they would need is just that you are l that we provided they will have access to your vagrant machine, and at this point, it's the end of the course. I hope that you have learned a lot and I can't wait to see you in another course. Have a good day. Bye

Introduction to Vagrant

In this introductory Vagrant training, students will learn Vagrant’s core concepts, how to configure the virtualization tool, and how it will benefit their organizations. Upon completion of the course, students will have a foundational understanding of Vagrant.

Instructed By

Instructor Profile Image
Jasmine Jackson
Application Security Engineer
Instructor