An open API service indexing awesome lists of open source software.

https://github.com/xpdojo/vagrant

Vagrant 도장
https://github.com/xpdojo/vagrant

hyper-v vagrant vagrantfile virtual-machine virtualbox virtualization vm

Last synced: about 1 year ago
JSON representation

Vagrant 도장

Awesome Lists containing this project

README

          

# Vagrant

- [Vagrant](#vagrant)
- [설치](#설치)
- [Ubuntu 22.04](#ubuntu-2204)
- [Mac OS X](#mac-os-x)
- [명령어](#명령어)
- [Vagrantfile](#vagrantfile)

VM을 관리하는 오픈소스 도구다.
HashiCorp에서 만들고 배포한다.
VirtualBox, Hyper-V, VMware와 같은
[provider](https://www.vagrantup.com/docs/providers)
가 별도로 필요하다.

## 설치

- [Installing Vagrant](https://www.vagrantup.com/docs/v2.3.0/installation)
- [Download Vagrant](https://www.vagrantup.com/downloads)

### Ubuntu 22.04

```sh
sudo apt install -y virtualbox
```

```sh
cd /tmp
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update
sudo apt install vagrant
vagrant --version
```

### Mac OS X

```sh
brew install vagrant
```

## 명령어

| command | description |
| --------------- | ------------------ |
| vagrant init | Vagrantfile 생성 |
| vagrant up | VM 생성 및 실행 |
| vagrant status | VM 상태 확인 |
| vagrant destroy | VM 멈춤 및 제거 |
| vagrant halt | VM 정지 |
| vagrant suspend | VM 휴면 |
| vagrant resume | VM 휴면에서 깨우기 |
| vagrant reload | VM 재실행 |
| vagrant ssh | VM 접속 |

## Vagrantfile

Ruby로 작성하는 Vagrant 설정 파일이다.