문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
vagrant [2019/03/16 15:06] kwon37xi |
vagrant [2019/08/14 14:39] kwon37xi |
||
---|---|---|---|
줄 5: | 줄 5: | ||
* https:// | * https:// | ||
+ | ===== Install ===== | ||
+ | * [[https:// | ||
+ | sudo pacman -S vagrant | ||
+ | </ | ||
+ | * 기본 Provider 지정. Default 설정을 해두면 '' | ||
+ | export VAGRANT_DEFAULT_PROVIDER=virtualbox | ||
+ | </ | ||
+ | ===== libvirt ===== | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * Linux 상에서 | ||
+ | * [[linux: | ||
+ | # libvirtd 는 ebtables, dnsmasq 가 떠있ᅟ는 상태에서 실행해야 함. | ||
+ | sudo pacman -S libvirt qemu ebtables dnsmasq | ||
+ | |||
+ | # enable libvertd.servcie | ||
+ | sudo systemctl enable --now libvertd.service | ||
+ | |||
+ | # 플러그이 설치 | ||
+ | vagrant plugin install vagrant-libvirt | ||
+ | # 잘 설치됐는지 확인 | ||
+ | vagrant plugin list | ||
+ | |||
+ | # 실행시 --provider=libvirt 지정 | ||
+ | vagrant up --provider=libvirt | ||
+ | </ | ||
+ | * [[https:// | ||
===== 기본 사용 ===== | ===== 기본 사용 ===== | ||
* 박스를 검색해서 찾은뒤 사용법을 따라하면 된다. | * 박스를 검색해서 찾은뒤 사용법을 따라하면 된다. | ||
- | * [[https:// | + | * [[https:// |
- | # vagrant 관련 설정을 넣어둘 디렉토리로 이동 | + | # vagrant 관련 설정을 넣어둘 디렉토리로 이동하여 Vagrantfile 생성 |
- | vagrant init ubuntu/ | + | # for ubuntu |
+ | vagrant init ubuntu/ | ||
+ | # for debian | ||
+ | vagrant init debian/ | ||
+ | |||
+ | # 띄우기 | ||
vagrant up | vagrant up | ||
+ | |||
+ | # 종료 | ||
+ | vagrant halt | ||
+ | |||
+ | # 완전삭제 | ||
+ | vagrant destroy | ||
</ | </ | ||
* SSH 접속< | * SSH 접속< | ||
줄 30: | 줄 70: | ||
* [[windows: | * [[windows: | ||
* https:// | * https:// | ||
- | * Default 설정을 해두면 '' | ||
- | VAGRANT_DEFAULT_PROVIDER=hyperv | ||
- | </ | ||
<code sh> | <code sh> | ||
# 관리자 권한으로 | # 관리자 권한으로 |