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 lesson, I will show you a demo of how to destroy a vagrant machine. So we're going to destroy our own boon to trustee 64 vagrant machine and remove it from our host machine.
00:19
So let's get started
00:23
before we start with the demo, the learning objectives for this video are we will learn how to destroy a vagrant machine. So now let's get started with actually removing our Mobutu Trustee 64 machine from our house machine.
00:42
So I have my commander program open. Remember, Commander is a consul emulator where you can execute linens commands on a window machine. So I am going to
00:58
transfer to my vagrant folder
01:02
and I'm going to start my vagrant machine with the vagrant up command
01:56
and going to our virtualization software. In this case, I'm using virtual box. We can see that are virtual machine is running.
02:06
So now going back to commander, let's say, Oh, ok, we don't need this bamboo to trustee 64 machine anymore, so let's destroy it. So we're going to enter the command vagrant destroy Impressive answer.
02:30
And you will see There's, ah message saying Are you sure you want to destroy this VM right now that in is capitalized for? No, But we're sure we want to delete this
02:44
vagrant machines. So we're gonna type. Why? For yes, Impress answer.
02:50
And as you can see, it's saying forcing shutdown and destroying VM virtual machine and associated drivers and going back to virtual box, you will see that are vagrant Machine is gone, It has effectively been deleted.
03:08
So
03:10
just to recap, we started our machine using the vagrant of command And then we decided, Hey, we don't need our machine anymore. Are machine was that in boo too trusting 64 machine. So we use the command vagrant destroy and
03:30
entered. Why? For yes, when the pop up came up of Are you sure you want to delete this virtual machine?
03:38
And we have effectively removed it
03:43
as it's not listed in virtual box anymore. So we have effectively removed our bamboo to trustee trustee 64 machine.
03:53
As I said before, used this command sparingly because now if you want to use the Abu to trustee 64 machine, you will have to again use the vagrant and Knit command, too.
04:11
Reinstall New vagrant file
04:15
And again, the vagrant file is the most important filing vagrant because it's the file that has the configuration for your vagrant machine. So you would essentially need to start the process of again of getting
04:29
excuse me of using the vagrant and knit command
04:34
along with the name of the vagrant machines. So in this case, vagrant in it on boot to Trustee 64 which would then create a vagrant file. And then you would have to use the vagrant up command to start that machine.
04:51
So basically what I'm saying it in a long winded way is that
04:56
you will have to start the process over again of getting the vagrant machine and then starting it. So, as I said before, when you remove
05:06
vagrant machine using vagrant destroyed, be very careful and very mindful that once you remove that machine, you cannot get it back. So use this command sparingly and let's go back to our video.
05:23
So in summary in this video, we discussed and learn how to destroy a vagrant machine.
05:30
As I showed in our demo, we destroyed our Mobutu trustee 64 machine and In our next video, we will talk about networking and vagrants, so we will look at public networks, private networks and forwarded ports. So I can't wait to see you in
05:49
our next lecture and have a good day
05:53
by

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

Instructor Profile Image
Jasmine Jackson
Application Security Engineer
Instructor