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 도장
- Host: GitHub
- URL: https://github.com/xpdojo/vagrant
- Owner: xpdojo
- License: gpl-3.0
- Created: 2022-08-25T15:42:47.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-12T13:03:48.000Z (over 3 years ago)
- Last Synced: 2025-02-06T15:53:25.220Z (over 1 year ago)
- Topics: hyper-v, vagrant, vagrantfile, virtual-machine, virtualbox, virtualization, vm
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 설정 파일이다.