Adding Boxes to Vagrant

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
or

Already have an account? Sign In »

Time
2 hours 51 minutes
Difficulty
Beginner
CEU/CPE
3
Video Transcription
00:00
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.
00:13
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.
00:30
So what is a pre configured vagrant machine
00:35
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.
00:51
So you may be wondering, OK, jasmine, that's good.
00:55
You know, there's a search function with pre configured machines.
00:59
What good does that do me? Why should I care?
01:03
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.
01:21
So
01:23
a caveat of these pre configure machines are they are
01:26
provider specific, meaning that
01:30
the machines do not work on all providers. For instance, the
01:34
machine we're gonna use bamboo to trustee 64 Onley works on virtual box, so be careful with that.
01:44
I will show you later on in this lecture the actual Web page of the pre configure machines
01:52
and how we can tell which provider goes with which machine.
01:57
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,
02:14
and the website is https. Colon Force last four slash ap dot
02:21
vagrant up dot com Ford slash boxes Ford's last search
02:27
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
02:45
Dr Google
02:47
Soft Layer Virtual Box, etcetera
02:52
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
03:10
machine? My first box
03:13
was created six hours ago. And then we can also
03:17
sort by recently updated. And we see the Folio Snapshot Court was updated 10 minutes ago. We're going to go back to downloads.
03:30
And as you can see, there are multiple machines. We have precise 64
03:37
Santo's zio 64 Jesse Precise 32 trusty 32
03:44
etcetera.
03:46
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.
04:03
And as you see, we only have one label that says virtual box.
04:08
Now, if we go to say Jesse 64 we see here that this machine works for live ERT, L XY and virtual box. So
04:21
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.
04:41
What providers actually work for this machine?
04:45
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
05:03
from the vagrant file. So you noticed here
05:09
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.
05:30
So we're actually going to do this as a lab of actually
05:34
downloading and importing the bamboo to trustee 64
05:41
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,
05:55
So how do we actually add a vagrant machine to vagrant pre configured machine to vagrant? Excuse me.
06:02
So we will use the innit command. So with the innit command, it will create the vagrant foul automatically. And remember, as I always
06:15
been repeating myself with this,
06:17
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,
06:34
we are automatically creating the vagrant foul.
06:39
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,
06:57
after we enter that command that would
07:00
and poured and download the hash core precise 64
07:04
pre configured machine. And if we want to start that machine, we would enter the command vagrant up.
07:14
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,
07:32
and the answer is before
07:38
a
07:39
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
07:58
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.
08:11
Now we have a end of lecture quiz
08:16
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
08:33
allows for developers to maintain their machines.
08:35
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.
08:48
Pre
08:48
configure machines were created to provide easy set up for beginners,
08:54
as the name implies, with it being pre configured.
08:58
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,
09:13
and our next to videos will be demos on
09:18
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
09:37
excuse me and how to manually install software
09:43
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
10:01
our next lecture on secure show and how to manually install software onto vagrant.
10:07
I hope you have a good day. Bye.
Up Next
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