Coder Social home page Coder Social logo

epic-vagrant-tutorial's Introduction

Here,
I'll document my a simple process of spinning up three Ubuntu vm in your machine using Vagrant.

Vagrant is quite popular tool developed by Hashicorp. It's quite useful of quickly creating virtual machine and test them. You can easily delete them with vagrant destroy

Step 1: Install Vagrant (https://developer.hashicorp.com/vagrant/install) (use official documentation, chatgpt/gemini if you have no idea)

step 2: Install Oracle VM virtualbox (https://www.virtualbox.org/wiki/Downloads)

step 3: Install git bash (I prefer it for some reason. You can use powershell/terminal as well), run mkdir ubuntu, cd ubuntu and type vagrant init and enter

step 4: I'm goint to spin up three vm named first, second and third

vagrant uses boxes (think of them as pre-packaged virtual machine) to spin up your VM. you can find your favourite boxes at (https://app.vagrantup.com/)

Being a Gen-z engineer, I generated a vagrantfile with above description using Google Gemini and edited it to Vagrantfile ( yes it don't have any extension).

Step 4: Now run vagrant up

Now it should start creating your three ubuntu vm machines like: image

Now you can ssh to your vm using vagrant ssh {name of your vm}) like below. I'll use vagrant ssh first for now.

image

Done. Now you've successfully ssh'ed to your newly created Ubuntu virtual machine.

PS : learn to configure further changes as per your requirement by editing Vagrantfile. You can pre-install packages, open ports, create users/group and many more. Start learning them, you'll be Vagrant pro in no time.

epic-vagrant-tutorial's People

Contributors

sujoff avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.