Destroying a Vagrant Box Demo

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

Already have an account? Sign In »

2 hours 51 minutes
Video Transcription
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.
So let's get started
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.
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
transfer to my vagrant folder
and I'm going to start my vagrant machine with the vagrant up command
and going to our virtualization software. In this case, I'm using virtual box. We can see that are virtual machine is running.
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.
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
vagrant machines. So we're gonna type. Why? For yes, Impress answer.
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.
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
entered. Why? For yes, when the pop up came up of Are you sure you want to delete this virtual machine?
And we have effectively removed it
as it's not listed in virtual box anymore. So we have effectively removed our bamboo to trustee trustee 64 machine.
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.
Reinstall New vagrant file
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
excuse me of using the vagrant and knit command
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.
So basically what I'm saying it in a long winded way is that
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
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.
So in summary in this video, we discussed and learn how to destroy a vagrant machine.
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
our next lecture and have a good day
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