Vagrant Crash Course
Вставка
- Опубліковано 26 сер 2024
- In this crash course we will dive into Vagrant which is used to create isolated & portable development environments. We will go into each part of the Vagrantfile, do some exploring via SSH and create a LAMP stack box (Linux, Apache, MySQL, PHP).
Vagrantfile & bootstrap.sh:
github.com/bra...
💖 Become a Patron: Show support & get perks!
/ traversymedia
Website & Udemy Courses
www.traversymed...
Follow Traversy Media:
/ traversymedia
/ traversymedia
/ traversymedia
This is one of the best explanations of how to use Vagrant, thank you very much for sharing this lesson.
Thank you for the lesson. I am totally an newbies on this kind of environment, the lesson is simple and straightforward, it helps me a lot. Thank You for the sharing.
This was what I need. thank you. Keep up the good work.
I was on Windows so I need to give you this confirmation that NFS is not working on Windows.
it will give this error while I reload the box.
"It appears your machine doesn't support NFS, or there is not an
adapter to enable NFS on this machine for Vagrant. Please verify
that `nfsd` is installed on your machine, and try again. If you're
on Windows, NFS isn't supported. If the problem persists, please
contact Vagrant support."
Brad's mind has more information than Wikipedia!
It may seem that way but trust me, I have A TON of docs, tutorials, blog posts, snippets that I constantly need to refer to. A person can only hold so much in their mind. Programming is not about memorization, it's about knowing how to figure stuff out and where to look :)
Bradepedia*
Traversy Media This should get pinned as it gives so much confidence 👏👏
Traversy Media yessss i agree with you👍
Richard Dale thanks for your input. Very helpful lol. I don’t think he really meant it, he was just referring to the vast amount of tutorials that i put out, so relax.
not only you know every programming language possible, but you also read mind ??? i was looking for vagrant not half an hour ago and tadaaaaaaa , thank you very much
Great crash course, thanks. I'm always impressed with your presentations - it's like you reinforce every detail you touch upon with examples so people aren't left wondering. Must take a lot of time to prepare.
Thank you so much! Any time there is a Brad Traversy video on a topic I must learn I let out a sigh of relief.
Thanks for the great tutorial! Very practical and clear. I've gone through multiple Vagrant tutorials over the past few weeks, and this has been the most helpful.
Brad always knows what i'm trying to learn. This is awesome!
You make my day. Somehow, your tuturial is better than the official document with only less than 1 hour I can get the fundamental of Vagrant.
This is a really simple and straightforward lesson for vagrant. Thank you Brad
Literally today I was trying to make lamp stack working with vagrant, but I was failing, thanks for video! Also big fan of your courses
Thanks for this content boss! I'm doing a vagrant project rn and went from knowing very little to confident. Had to watch on 2x but this was very useful, thank you again!
Excellent tutorial. I spent much time without success to get php7.2 going. eventually I did upgrade it to 16.04
with the commands I looked up
sudo apt-get update
sudo apt-get upgrade
sudo do-release-upgrade -f DistUpgradeViewNonInteractive
once it was all done. changed the bootstrap.sh lines to reflect php7.3 and it all ended up good.
Thank you Brad. Just started a job where they use vagrant. This has cleared a lot of things for me
Thanks for putting together this crash course! I was asked to use Vagrant in a CS class and had no clue about it until now.
Best IT tutorial on youtube so far. Both course structure and pronunciations are clear. Thank you!
I can't believe I just overcame a knowledge I have been procrastinating for so long!!! Thank you man.
Thanks again Brad. I've been watching your videos now for a couple of years and you've taught me so much. Thanks mate.
When the student is ready, the master appears :)
Late to the vagrant party but this is ideal for a newbie that doesn’t want to screw up their own os - esp trying to learn apache httpd (so many conf options!)
Great content even today. Thank you so much for sharing.
the best tutorial for beginners in youtube ! Good work!) thanks )
Great practical into to Vagrant. Really help me to frame where Vagrant sits in the automation stack.
the best explanation about vagrant.
This is really great and thorough explanation. Makes me want to check out more classes. Thanks!
Thanks, Traversy I enjoyed this lecture. I'm going to install lamp also I will use homestead for travel.
Brad, you are the light at the end of the tunnel! Seriously thanks a lot!
Found this pretty useful today to just catch up. Thanks Brad. You rock!
Simply awesome video on setting up LAMP stack on a Virtual machine. Many kudos !!!
Loved it , just loved your work man, thanks
waiting for docker
Mostaq mahmud me too! ;)
Is docker better?
docker would be great dude
I wouldnt say its better, it really depends on what you are trying to use it for. Docker/Kubernetes is more widely used in my opinion and is more useful in environments that need a few hundred vms
docker would be much better !!
Hi Brad, can you make a video about how do you manage to find a time to learn all this stuff, or how some busy person can optimize his daily routine to find a time to learn, or how learn efficiently. For example I have problem with interest/motivation, i'm starting to learn one stuff and then suddenly get interested in another stuff, thus never learn anything deep enough
Yo, maybe you have problems with Dopamine? I have same issues, diagnozed with ADHD soo.. Check that out
i was only here just to learn briefly about vagrant and only sticks for around 5 mins when i clicked this video, and then i ended sticking for the whole 46 mins and learned a lot more lol
Brad, you are a legend!
for those using ubuntu on windows, before running vagrant commands, you should add: export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"
and in the synced folder edit the values to: config.vm.synced_folder ".", "/vagrant", disabled:true
Beautifully explained tutorial, subscribed just 5 minutes in the video. I would have only added a way to visualize the permissions and file synchronization with something like an ftp client, but apart from that it's perfect.
Great explaining! Ty for your work! Got my subscription!
Nice, I wanted to learn vagrant.
2022 and still a very helpful video 👍 Thanks Brad
Excellent explanation. This got me educated on this new technology. You are the best.
Excellent work Brad, but please, the next video could be about docker, here in Brazil I see a lot of enterprises using docker more than vagrant.
nice, just what i wanted for my LPI DevOps tools Engineer, we need more og these
Thanks Brad.
Learnt a lot from this video. You explained it well.
this was a surprise. I have never heard of it before. thank you
Dude you rock. (side note) I like watching your videos on my system that as the sub woofer! Great info!
Brad, thanks for this video. I am waiting for the docker video. many thanks
Very nice Brad. I like what your are doing and I am waiting for the docker tutorial :)
Docker+Kubernetes+Terraform bundle crash course(s) would be great!
Loved it! Thanks!
Hi Brad , Brilliant video man , but we need more .... and for docker too ! ☺☺☺
this was a beautiful course, thanks for putting it together. loved the explanation sir, you have a great weekend :-)
Thanks! Very nice and helpful.
Your Tutorial is always awesome.
Awesome tutorial as always.I am one of your fans
Thanks Brad!!!!
Great tutorial as always!! Your tutorials are so easy to understand without being too long or packed with excessive/useless information
Quick question: does Vagrant download the OS files every time you create a new box or it keeps them locally after you create the first one? Something like saving the Docker image
I hope I can help someone with this problem I was having. If you are on macOS Catalina or higher and you've run into the issue of the shared folders not working/having access to it. I found out that this was because my project was located in the Documents folder of the Mac. But since, Catalina, I guess there is some new write permissions changes so it is causing the error. If you move your vagrant folder to a folder outside of your Documents folder it should solve the problem.
Thank you so much for the video!
Installation of PHP 7.x is not working for me because "bootstrap.sh" runs into errors. When I search apt-cache there is no PHP 7. Seems like PHP 7.x is no longer available in package repositories for Ubuntu 14.04. I figured out how to make your example work (with PHP 7.3) using another box based on Ubuntu 18.04: github.com/DonHanso/vagrant_lamp_poc
Hey Brad, a little request, a video with what OS is the best for developer and a little introduction to tell us what have that OS that make you decided, something like Linux/Debian and what tools Debian has for a developer of 2018. Hope you can make a video with this
If I simply add the line of vm.synced_folder when I run vagrant ssh I receive a vagrant@127.0.0.1: Permission denied (publickey). Anyone else?
Thanks for the tutorial. You really simplied things for me.
28:32 if your facing issue with nfsd, Try following command on ubuntu 17.10
sudo apt-get install nfs-common nfs-kernel-server
Thanks for the tutorial video on vagrant. I was able to get Ubuntu 18.04 with LAMP running with vmware with a few tweaks! :)
You are the best, Brad!
You've got this covered too. Nice! My vagrant setup is giving me trouble, on linux. Not serving PHP. Hope I find some solution here.
upgraded the vagrant from 1.9 to latest and the homestead from 4.4 to 7 and I got everything working again. I do believe my trying to get vscode to play nice with php might have something to do with it. maybe.
It's good, but it seems like PHP is unable to be installed. I use the same bootstrap.sh file and also tried doing some manual commands. I have Vagrant on Windows 10. Have there been any updates since this video?
*UPDATE: It looks like the support for the version of Ubuntu shown in this video has ended, hence why I was unable to install PHP.
To save time. Anyone using vagrant for the Github virtual environment should place a copy of cmd.exe in the github project folder they downloaded. Then its as simple as double clicking cmd, and typing "vagrant up", This will download the virtualbox environments. The github project folder will already have the vagrantfile configured.
your script save so much time, man
Many thanks!
Thank you!
As usual , the great content.
I hope one day you make a video where you share with us your daily routine as a programmer.
Great video!
Next : docker, ci/cd, and tdd
Great tutorial! You have the Midas touch!!!
Very nicely explained ... but expected bit more introduction for Vagrant, uses and its pros and cons and how it differ from other alternatives...... Anyway Thank-you.
Neat as usual. Thx a ton, waiting for docker :)
No wasting time, greate tutorial BRAD!
@10:36, if I am using a local loopback and not communicating with other system, should I un-comment line 26, 31 & 35 and key in the local IP of my computer in line35 instead? Or just leave these commented lines alone. Also, what if I plug my computer into another network, say a school, what should line 35 be modified to meet this location requirement.
Awesome professor :)
Very good tutorial! Well done and thanks!
Great tutorial!!! Thank you!
Hi!
I would have a question!
If I have synced folder, what is for example 100MB. Will it use double place on my physical drive (200MB), or just 100MB. So use it place in the virtual machine and in the host too, or just once?
Thanks!
Really appreciate this. +1 for Docker
have you released the vagrant deployment video? and docker video?
Laravel Homestead with Vagrant is awesome.
Thank you kind sir.
Many Thanks Sir
This was so helpful thanks for making it!
I have problem with Private Network Section, I don't know what Ip address should i place there ,I tried many Ip addresses but doesn't work, terminal show me an error and my vm can not boot
what's the best way to setup a portable development environment nowadays?
Thanks Brad!
Each time I run the vagrant up command in the vs code terminal I get the timeout error, can you help me to solve this error as I have been struggling a lot correct it.
Спасибо за крутое видео про Vagrant! Thanks for the cool video about Vagrant!
I've been using vagrant for Laravel Homestead
Thank You very much. How to use multisites in this vagrant box?
Gracias mister..... excelente muy conciso y claro
thanks Brad, love u bro!
I really like the clean start page you have on your browser, I know it's not the point of the video but could you point me to what you have installed, linked to (ie GitHub Page)?
Thank you very much! That's one of the beast tutorial!