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.
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.
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,
I added a Newport from 80 that goes to pour 20 to 24 essentially
for New York. It is currently filtering all traffic
to Port 80. So now I'm going to filter all the traffic from 84 82 Port 20 to 24 on my host machine.
So now that vagrant has started, I am going to type vagrant
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
it is currently a bug and mark,
because if I just type vagrant share along with just the http port and press insert
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
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
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
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
and as you can see now are Norc Web server has started,
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
and look at the your u R L, you will see that the U. R L matches
what is currently displayed on the Norc
council. Here be eight e 39 552
b eight e 39 552 So now what we're gonna do is we're going to open another tab
and insert are you are ill.
we have successfully shared our vagrant machine because that that the, uh, the Apache Defar page it has rendered. And remember when I
first installed Apache in less than four with secure Stockett shells in installing software,
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,
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
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
is my vagrant machine, which is the vagrant trustee 64 machine.
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.
So So I was successfully able to share my vagrant machine. Let's recap.
Okay, it's a lot that spitting out, but essentially
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
dashed as http and remember, we created a full report of 20 to 24.
If we use the command vagrant share
Dash dash http Port 20 to 24
vagrant share hangs because there's an issue with Norc where we don't see the
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
dash Dash http The full report of 20 to 24 dash dash debug. And then at that point, a lot of stuff
was spitting on our machine. But
what? What we did see was the u R l here
and that was the North
Public. You are l Next we went to
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
Those two were the same you RL's.
Next we opened another tab and then we pasted that your URL and then we were able to see our Apache
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
my vagrant share was successful because this page
rendered for us. So we have successfully shared our vagrant machine
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
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
and you had other webpages,
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,
you don't have to give them your vagrant machine. You could just give them
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
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
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
free version. So whenever you shut down vagrants here and then restart vagrants share,
you will receive a new euro. So we have successfully shared our
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
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
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
echo to the screen and then external scripts where we where you can,
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
vagrant sharing because that with that mode,
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