2 hours 51 minutes
Hello. My name is Jasmine Jackson and our courses intro to vagrant. And in this lecture we will discuss how to add boxes or machines to vagrant. Let's go.
The learning objectives for this video are we will learn about the different pre configure boxes are machines with vagrant. We will learn how to add these machines to vagrant and how to start a vagrant machine. Let's go.
So what is a pre configured vagrant machine
just to give a bit of background Hash Corp Remember from Lecture one on What is Vagrant Hash Corp is the company that does full time development for vagrant now has a search function that has pre configured vagrant machines.
So you may be wondering, OK, jasmine, that's good.
You know, there's a search function with pre configured machines.
What good does that do me? Why should I care?
Well, these pre configured machines are good for beginners because it requires little effort to install them. And the reason for that is because thes pre configure machines already have the operating system memory allocation, etcetera on these machines.
a caveat of these pre configure machines are they are
provider specific, meaning that
the machines do not work on all providers. For instance, the
machine we're gonna use bamboo to trustee 64 Onley works on virtual box, so be careful with that.
I will show you later on in this lecture the actual Web page of the pre configure machines
and how we can tell which provider goes with which machine.
The default user name and password for these pre configure machines are vagrant vagrant. So now let's go to the actual search page. We're currently at the search page for the pre compete pre configured machines,
and the website is https. Colon Force last four slash ap dot
vagrant up dot com Ford slash boxes Ford's last search
and as you can see, we can search for the machines by operating system software, architecture, etcetera. You will notice right below the search box. We can also filter by providers, and we see there's Virtual Box VM, where
Soft Layer Virtual Box, etcetera
and on the right hand side, we consort by downloads, which we currently have, and you will see the Mobutu Trustee 64 machine currently has over 30 million downloads. We can also sort by recently created and we see that you know this
machine? My first box
was created six hours ago. And then we can also
sort by recently updated. And we see the Folio Snapshot Court was updated 10 minutes ago. We're going to go back to downloads.
And as you can see, there are multiple machines. We have precise 64
Santo's zio 64 Jesse Precise 32 trusty 32
So you also may notice. Okay, I see these labels here. Well, the labels also specify which provider the machine works for. So, for instance, as I mentioned, the trustee 64 machine only works with virtual box.
And as you see, we only have one label that says virtual box.
Now, if we go to say Jesse 64 we see here that this machine works for live ERT, L XY and virtual box. So
another quick and easy way is to just look at the labels here as opposed to actually filtering by the provider at the top of the page. So if you're like, hey, I want Oh, you know, this homestead machine looks really good.
What providers actually work for this machine?
You can look in Seo hyper V parallels Virtual box VM were desktop, So I know these four providers will work with this machine. Now if we click on the trustee 64 you see that we have a snapped a little snippet
from the vagrant file. So you noticed here
The vagrant snippet has the vagrant configure in the number two, which specifies that it's using a later version of vagrant. And we see that we have this confident divey m dot bucks command. And the name was specified with bamboo to trustee 64.
So we're actually going to do this as a lab of actually
downloading and importing the bamboo to trustee 64
machine and then we're going, And in another demo, we're going to actually start that machine after we finish importing it. So let's go back to the lecture. Okay,
So how do we actually add a vagrant machine to vagrant pre configured machine to vagrant? Excuse me.
So we will use the innit command. So with the innit command, it will create the vagrant foul automatically. And remember, as I always
been repeating myself with this,
if there's nothing else you learn in this course which I hope That's not the case. Remember this. The vapor foul is the most important foul in vagrant because it specifies the configuration of your vagrant machine. So when we use the vagrant and knit command,
we are automatically creating the vagrant foul.
And so how to use the vaguer Indyk command is we will say vagrant in it and then the name of the pre configured box. In this case, in this example, we have a great and it has she court precise 64. So that would,
after we enter that command that would
and poured and download the hash core precise 64
pre configured machine. And if we want to start that machine, we would enter the command vagrant up.
So now we have a quick quiz. What is the key word toe automatically create a vagrant box A and it be up. See down d start. I will give you a couple of seconds and then I will come back with my answer. Let's start now,
and the answer is before
A knit so the keyword toe automatically create a vagrant box. Remember, is vagrant admit and then the name of the pre configure box and that will automatically create your configuration foe, a k a. The Vagrant files. So the answer is a
so is summary. In this video, we discussed pre configured vagrant machines how to install those machines using the innit command and then how to start both machines with the vagrant up command.
Now we have a end of lecture quiz
question. Why are pre configure boxes created? A. Allows for pre configured machines to work for all providers? Be provide easy set up for beginners. See allows Hash Corp to sell the machines or D
allows for developers to maintain their machines.
I will give you a couple of seconds, and then I will come back with my answer. Let's start now. And the answer ISS off a book. Bar B.
configure machines were created to provide easy set up for beginners,
as the name implies, with it being pre configured.
So the sending, such as operating system memory etcetera, has been pre configured, and it's easy set up for beginners to download the machines and get up and running with vagrant. So the answer is B,
and our next to videos will be demos on
importing or downloading the Mobutu trustee 64 machine. And then the second demo or video will be how to start our own boo to trustee 64 machine. And then our next lecture discusses secure shell
excuse me and how to manually install software
on vagrant. So I can't wait to see you in that lecture and the demos on how to download our pre configure machines and then start our pre configured machines. So I hope you have a lot of fun playing and also listening to
our next lecture on secure show and how to manually install software onto vagrant.
I hope you have a good day. Bye.