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

КОМЕНТАРІ • 247

  • @TheSerphmx
    @TheSerphmx 5 років тому +9

    This is one of the best explanations of how to use Vagrant, thank you very much for sharing this lesson.

  • @SweetieOranges
    @SweetieOranges Рік тому

    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.

  • @YonasBehailu
    @YonasBehailu 3 роки тому

    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."

  • @DanielK48
    @DanielK48 6 років тому +112

    Brad's mind has more information than Wikipedia!

    • @TraversyMedia
      @TraversyMedia  6 років тому +79

      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 :)

    • @albertgalvez2556
      @albertgalvez2556 6 років тому +8

      Bradepedia*

    • @meharsingh9725
      @meharsingh9725 6 років тому +2

      Traversy Media This should get pinned as it gives so much confidence 👏👏

    • @rebeka1212100
      @rebeka1212100 6 років тому +1

      Traversy Media yessss i agree with you👍

    • @TraversyMedia
      @TraversyMedia  6 років тому +1

      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.

  • @bidam1984
    @bidam1984 6 років тому +6

    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

  • @Carl-yu6uw
    @Carl-yu6uw 6 років тому +3

    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.

  • @dedpossum66
    @dedpossum66 2 роки тому

    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.

  • @rockthemic12
    @rockthemic12 Рік тому

    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.

  • @ricardocolares716
    @ricardocolares716 6 років тому +9

    Brad always knows what i'm trying to learn. This is awesome!

  • @giangbioinformatics
    @giangbioinformatics 2 роки тому

    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.

  • @kaustavganguly8071
    @kaustavganguly8071 4 роки тому +2

    This is a really simple and straightforward lesson for vagrant. Thank you Brad

  • @warchild2726
    @warchild2726 6 років тому +5

    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

  • @andrewhollister9967
    @andrewhollister9967 4 роки тому +1

    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!

  • @rajtheo
    @rajtheo 5 років тому

    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.

  • @ekrresa
    @ekrresa 4 роки тому

    Thank you Brad. Just started a job where they use vagrant. This has cleared a lot of things for me

  • @JorgeAmengol
    @JorgeAmengol 3 роки тому

    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.

  • @liuhongqian
    @liuhongqian 5 років тому

    Best IT tutorial on youtube so far. Both course structure and pronunciations are clear. Thank you!

  • @OladipupoPopoola
    @OladipupoPopoola 6 років тому

    I can't believe I just overcame a knowledge I have been procrastinating for so long!!! Thank you man.

  • @brandymedia
    @brandymedia 4 роки тому

    Thanks again Brad. I've been watching your videos now for a couple of years and you've taught me so much. Thanks mate.

  • @rossgeography
    @rossgeography 2 роки тому +1

    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!)

  • @KelvinChuchu17
    @KelvinChuchu17 6 місяців тому

    Great content even today. Thank you so much for sharing.

  • @nikzim2132
    @nikzim2132 2 роки тому

    the best tutorial for beginners in youtube ! Good work!) thanks )

  • @grahamhardie7847
    @grahamhardie7847 3 роки тому

    Great practical into to Vagrant. Really help me to frame where Vagrant sits in the automation stack.

  • @yosephbirhanu9838
    @yosephbirhanu9838 2 роки тому

    the best explanation about vagrant.

  • @saltdomeguy
    @saltdomeguy 2 роки тому

    This is really great and thorough explanation. Makes me want to check out more classes. Thanks!

  • @MoatazMohamady
    @MoatazMohamady 4 роки тому +1

    Thanks, Traversy I enjoyed this lecture. I'm going to install lamp also I will use homestead for travel.

  • @edgardo8929
    @edgardo8929 6 років тому

    Brad, you are the light at the end of the tunnel! Seriously thanks a lot!

  • @arunganesan8559
    @arunganesan8559 3 роки тому

    Found this pretty useful today to just catch up. Thanks Brad. You rock!

  • @indianocean29
    @indianocean29 6 років тому

    Simply awesome video on setting up LAMP stack on a Virtual machine. Many kudos !!!

  • @abidalica
    @abidalica 2 роки тому

    Loved it , just loved your work man, thanks

  • @Mostaqmahmud
    @Mostaqmahmud 6 років тому +84

    waiting for docker

    • @XilumX1
      @XilumX1 6 років тому +1

      Mostaq mahmud me too! ;)

    • @fvgoya
      @fvgoya 6 років тому

      Is docker better?

    • @sh1k4maru
      @sh1k4maru 6 років тому

      docker would be great dude

    • @sh1k4maru
      @sh1k4maru 6 років тому +2

      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

    • @ishan101
      @ishan101 6 років тому

      docker would be much better !!

  • @macaronivirus5913
    @macaronivirus5913 6 років тому +2

    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

    • @SneakPeak
      @SneakPeak 3 роки тому

      Yo, maybe you have problems with Dopamine? I have same issues, diagnozed with ADHD soo.. Check that out

  • @RuqiRevolt
    @RuqiRevolt 5 років тому

    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

  • @kchausheva
    @kchausheva 2 роки тому

    Brad, you are a legend!

  • @bogdanM29
    @bogdanM29 4 роки тому

    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

  • @Cronofear
    @Cronofear 3 роки тому

    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.

  • @stepnforlife7948
    @stepnforlife7948 Рік тому

    Great explaining! Ty for your work! Got my subscription!

  • @sagarmaheshwary3150
    @sagarmaheshwary3150 6 років тому +17

    Nice, I wanted to learn vagrant.

  • @djspacetooth
    @djspacetooth 2 роки тому

    2022 and still a very helpful video 👍 Thanks Brad

  • @rafdnaah6078
    @rafdnaah6078 5 років тому

    Excellent explanation. This got me educated on this new technology. You are the best.

  • @rotinaindependente
    @rotinaindependente 6 років тому +1

    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.

  • @trustmub1
    @trustmub1 6 років тому

    nice, just what i wanted for my LPI DevOps tools Engineer, we need more og these

  • @izharkazmi
    @izharkazmi 4 роки тому

    Thanks Brad.
    Learnt a lot from this video. You explained it well.

  • @prabeen90
    @prabeen90 6 років тому

    this was a surprise. I have never heard of it before. thank you

  • @JasonWierakaJDub
    @JasonWierakaJDub 6 років тому

    Dude you rock. (side note) I like watching your videos on my system that as the sub woofer! Great info!

  • @cancer10in
    @cancer10in 6 років тому

    Brad, thanks for this video. I am waiting for the docker video. many thanks

  • @rabrahierpa
    @rabrahierpa 6 років тому

    Very nice Brad. I like what your are doing and I am waiting for the docker tutorial :)

  • @pesiok
    @pesiok 6 років тому

    Docker+Kubernetes+Terraform bundle crash course(s) would be great!

  • @ArenitaHernandez
    @ArenitaHernandez Рік тому

    Loved it! Thanks!

  • @Super_Cool_Guy
    @Super_Cool_Guy 6 років тому +1

    Hi Brad , Brilliant video man , but we need more .... and for docker too ! ☺☺☺

  • @akashdubey.consultant
    @akashdubey.consultant 5 років тому +1

    this was a beautiful course, thanks for putting it together. loved the explanation sir, you have a great weekend :-)

  • @vincentricci445
    @vincentricci445 3 роки тому

    Thanks! Very nice and helpful.

  • @robitops1547
    @robitops1547 4 роки тому

    Your Tutorial is always awesome.

  • @Codeytek
    @Codeytek 5 років тому

    Awesome tutorial as always.I am one of your fans

  • @Yogesh_Kushwaha
    @Yogesh_Kushwaha Рік тому

    Thanks Brad!!!!

  • @emanoelnascimento9496
    @emanoelnascimento9496 5 років тому

    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

  • @KeeganGeorge
    @KeeganGeorge 4 роки тому +1

    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.

  • @synthmania7275
    @synthmania7275 3 роки тому

    Thank you so much for the video!

  • @donschlock1638
    @donschlock1638 5 років тому +6

    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

  • @soycloud
    @soycloud 6 років тому

    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

  • @pabloruiz577
    @pabloruiz577 5 років тому +1

    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?

  • @hammertonmwawuda2837
    @hammertonmwawuda2837 5 років тому

    Thanks for the tutorial. You really simplied things for me.

  • @SaurabhModh
    @SaurabhModh 6 років тому

    28:32 if your facing issue with nfsd, Try following command on ubuntu 17.10
    sudo apt-get install nfs-common nfs-kernel-server

  • @SirxMMPD
    @SirxMMPD 5 років тому

    Thanks for the tutorial video on vagrant. I was able to get Ubuntu 18.04 with LAMP running with vmware with a few tweaks! :)

  • @jaimsseuma4022
    @jaimsseuma4022 6 років тому

    You are the best, Brad!

  • @taariqq
    @taariqq 5 років тому

    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.

    • @taariqq
      @taariqq 5 років тому

      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.

  • @SivakD
    @SivakD 5 років тому +1

    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.

  • @chrisliddiard725
    @chrisliddiard725 4 роки тому

    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.

  • @vincentpham7445
    @vincentpham7445 5 років тому

    your script save so much time, man

  • @dmitrykurenkov3268
    @dmitrykurenkov3268 3 роки тому

    Many thanks!

  • @AbhishekNigam
    @AbhishekNigam 3 роки тому

    Thank you!

  • @mstafadev6729
    @mstafadev6729 6 років тому

    As usual , the great content.
    I hope one day you make a video where you share with us your daily routine as a programmer.

  • @laurentiudaniel3075
    @laurentiudaniel3075 2 роки тому

    Great video!

  • @kamalhm-dev
    @kamalhm-dev 6 років тому +10

    Next : docker, ci/cd, and tdd

  • @juliemoore728
    @juliemoore728 6 років тому

    Great tutorial! You have the Midas touch!!!

  • @chandrasekhar-gp8cf
    @chandrasekhar-gp8cf 6 років тому +1

    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.

  • @osamaa.h.altameemi5592
    @osamaa.h.altameemi5592 6 років тому

    Neat as usual. Thx a ton, waiting for docker :)

  • @mustafaomar9192
    @mustafaomar9192 5 років тому

    No wasting time, greate tutorial BRAD!

  • @sorcererstone3303
    @sorcererstone3303 5 років тому

    @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.

  • @priyankamahadevu3830
    @priyankamahadevu3830 3 роки тому

    Awesome professor :)

  • @Chriptus
    @Chriptus 5 років тому

    Very good tutorial! Well done and thanks!

  • @rhkina
    @rhkina 3 роки тому

    Great tutorial!!! Thank you!

  • @m19i93
    @m19i93 4 роки тому

    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!

  • @a.s.5986
    @a.s.5986 6 років тому

    Really appreciate this. +1 for Docker

  • @satheshkumar5906
    @satheshkumar5906 3 роки тому

    have you released the vagrant deployment video? and docker video?

  • @orhanahmadov9381
    @orhanahmadov9381 6 років тому

    Laravel Homestead with Vagrant is awesome.

  • @JoshuaKoitzsch
    @JoshuaKoitzsch 4 роки тому

    Thank you kind sir.

  • @murugandevara1982
    @murugandevara1982 3 роки тому

    Many Thanks Sir

  • @mdiazftw
    @mdiazftw 4 роки тому

    This was so helpful thanks for making it!

  • @aligeshani410
    @aligeshani410 2 роки тому

    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

  • @webdeveloperjonas2394
    @webdeveloperjonas2394 2 роки тому

    what's the best way to setup a portable development environment nowadays?

  • @generalg007
    @generalg007 6 років тому

    Thanks Brad!

  • @user-zd4jl7gj9m
    @user-zd4jl7gj9m Рік тому

    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.

  • @user-gb6xdwgzdtq4
    @user-gb6xdwgzdtq4 4 роки тому

    Спасибо за крутое видео про Vagrant! Thanks for the cool video about Vagrant!

  • @naspy971
    @naspy971 6 років тому +1

    I've been using vagrant for Laravel Homestead

  • @olexandrplakhotniuk7728
    @olexandrplakhotniuk7728 5 років тому

    Thank You very much. How to use multisites in this vagrant box?

  • @josbexerr5166
    @josbexerr5166 6 років тому

    Gracias mister..... excelente muy conciso y claro

  • @mohammadakbar32
    @mohammadakbar32 6 років тому +2

    thanks Brad, love u bro!

  • @cocoadevnoob
    @cocoadevnoob 4 роки тому

    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)?

  • @k4ishida
    @k4ishida 5 років тому

    Thank you very much! That's one of the beast tutorial!