Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

2 | Getting started with Vagrant Setup for beginners

Автор: Automation Step by Step

Загружено: 2023-04-26

Просмотров: 43844

Описание:

🔥 All Free Tutorials - https://AutomationStepByStep.com/
Vagrant QUIZ - https://forms.gle/nWdSqJf1759tu46N8 Tell me your score in the comments
Notes:
Today we will learn:
How to install and setup Vagrant (windows and mac os)
How to install and Virtualbox
How to create and run virtual machines using Vagrant
Go inside the virtual machine and run commands
Vagrant commands to manage virtual machines
Install VM
Start VM
Connect to VM
Stop VM
Destroy VM
Check status

Vagrant - Getting Started | Install > Setup > Use

Step 1 - Install Vagrant https://www.vagrantup.com/downloads Check vagrant is installed vagrant --version

Step 2 - Select a VM Provider. Vagrant has direct support for VirtualBox, Hyper-V, Docker
Install VirtualBox https://www.virtualbox.org/wiki/Downl...

Step 3 - Create a new folder for Vagrant project

Step 4 - On terminal or command line navigate to the folder and initiate vagrant project vagrant init
This will create a new Vagrantfile in the folder
Vagrantfile is a configuration file that defines the settings for your virtual machine

Step 5 - Choose a box to use https://app.vagrantup.com/boxes/search
A box is a pre-configured virtual machine image that you can use as a starting point for your virtual machine

Step 6 - Add configuration of the box in vagrantfile
For example, you could use the "ubuntu/bionic64" box by adding the following line to your Vagrantfile:
config.vm.box = "ubuntu/bionic64"
We can also directly add configuration for the virtual machine using the following commands
vagrant init centos/7 (if vagrantfile does not already exists)
vagrant box add centos/7 (will add box to vagrant, but will not create Vagrant file)

Step 7 - Start virtual machine using command vagrant up
This will create a new virtual machine using the box you selected and start it. The first time, Vagrant will download the box from the internet

Step 8 - SSH into the virtual machine vagrant ssh

Vagrant Box - 7 Commands

vagrant box add
Adds a box to your local box repository
vagrant box add ubuntu/focal64

vagrant box list
Lists all boxes in your local box repository
vagrant box list

vagrant box outdated
Checks if any boxes in your local box repository are outdated
vagrant box outdated

vagrant box update
Updates a box to a new version
vagrant box update ubuntu/focal64

vagrant box repackage
Repackages a box with a new name and metadata
vagrant box repackage ubuntu/focal64 --name my-new-box

vagrant box prune
Removes outdated boxes from your local box repository
vagrant box prune

vagrant box remove
Removes a box from your local box repository
vagrant box remove ubuntu/focal64

Location of VM boxes
Mac OS X and Linux: ~/.vagrant.d/boxes
Windows: C:/Users/USERNAME/.vagrant.d/boxes

Vagrant Commands

vagrant init
Initializes a new Vagrant environment by creating a Vagrantfile
vagrant init centos/7

vagrant up
Creates and configures the guest machine

vagrant ssh
Logs in to the guest machine via SSH

vagrant ssh-config
Outputs OpenSSH valid configuration to connect to the VMs via SSH

vagrant halt
Stops the guest machine

vagrant suspend
Suspends the guest machine

vagrant resume
Resumes a suspended guest machine

vagrant reload
Reloads the guest machine by restarting it

vagrant destroy
Stops and deletes all traces of the guest machine

vagrant status
Shows the status of the current Vagrant environment

vagrant package
Packages a running virtual environment into a reusable box
vagrant package --output mybox.box

vagrant provision
Runs any configured provisioners against the running VM.

vagrant plugin install
Installs a Vagrant plugin
vagrant plugin install myplugin

vagrant plugin list
Lists all installed Vagrant plugins

vagrant plugin uninstall
Uninstalls a Vagrant plugin
vagrant plugin uninstall myplugin

Useful TIPS
--help To get help for any Vagrant command e.g. vagrant --help or vagrant init --help
vboxmanage list vms If using Virtualbox
vboxmanage list runningvms If using Virtualbox

References:
Vagrant - https://developer.hashicorp.com/vagra...
VirtualBox - https://www.virtualbox.org/wiki/Downl...
Vagrant Boxes Search - https://app.vagrantup.com/boxes/search

▬▬▬▬▬▬▬

Every Like & Subscription gives me great motivation to keep working for you
You can support my mission for education by sharing this knowledge and helping as many people as you can

If my work has helped you, consider helping any animal near you, in any way you can

Never Stop Learning
Raghav Pal

---

2 | Getting started with Vagrant Setup for beginners

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

3 | Step-by-Step Guide to Provision a Virtual Machine with Vagrant

3 | Step-by-Step Guide to Provision a Virtual Machine with Vagrant

3 | Ansible Hands-On Demo Project | Step by Step for Beginners

3 | Ansible Hands-On Demo Project | Step by Step for Beginners

ИНОСТРАННЫЙ МЕССЕНДЖЕР ЗАБЛОКИРУЮТ СО ДНЯ НА ДЕНЬ. Роскомнадзор всех запутал. Подготовка к выборам

ИНОСТРАННЫЙ МЕССЕНДЖЕР ЗАБЛОКИРУЮТ СО ДНЯ НА ДЕНЬ. Роскомнадзор всех запутал. Подготовка к выборам

Vagrant Beginner Tutorial

Vagrant Beginner Tutorial

The Windows 11 Disaster Microsoft Didn’t See Coming

The Windows 11 Disaster Microsoft Didn’t See Coming

1 | Все, что нужно знать новичку о Vagrant

1 | Все, что нужно знать новичку о Vagrant

Как запустить виртуальную машину Ubuntu Server с помощью VirtualBox (и войти через SSH)

Как запустить виртуальную машину Ubuntu Server с помощью VirtualBox (и войти через SSH)

Limitless Focus - 40Hz Gamma Binaural Beats, Brainwave Music for Super Concentration and Focus

Limitless Focus - 40Hz Gamma Binaural Beats, Brainwave Music for Super Concentration and Focus

Vagrant Cheat Sheet | Quick Reference Guide

Vagrant Cheat Sheet | Quick Reference Guide

9 | Create Virtual Machine with defined Software & Hardware Requirements

9 | Create Virtual Machine with defined Software & Hardware Requirements

Vagrant 101 Tutorial -  All you need to know to get started with Vagrant.

Vagrant 101 Tutorial - All you need to know to get started with Vagrant.

How to create Virtual Machines in MINUTES using HashiCorp Vagrant and VirtualBox

How to create Virtual Machines in MINUTES using HashiCorp Vagrant and VirtualBox

Automated virtual machine deployment with Vagrant

Automated virtual machine deployment with Vagrant

Creating VMs with Vagrant

Creating VMs with Vagrant

Контейнеры против виртуальных машин: в чем разница?

Контейнеры против виртуальных машин: в чем разница?

5 | Access Virtual Machine from Host Machine using Vagrant Port Forwarding

5 | Access Virtual Machine from Host Machine using Vagrant Port Forwarding

Using docker in unusual ways

Using docker in unusual ways

Вам нужно изучить Ansible ПРЯМО СЕЙЧАС!! (Linux Automation)

Вам нужно изучить Ansible ПРЯМО СЕЙЧАС!! (Linux Automation)

NGINX Explained - What is Nginx

NGINX Explained - What is Nginx

RHCSA / RHCE Exam Lab Setup at Home - Complete 2025 Guide

RHCSA / RHCE Exam Lab Setup at Home - Complete 2025 Guide

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com