사용자 도구

사이트 도구


vagrant

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
vagrant [2021/03/21 21:44]
kwon37xi 제거됨
— (현재)
줄 1: 줄 1:
-====== Vagrant ====== 
-  * http://www.vagrantup.com/ 
-  * [[http://www.vagrantbox.es/|A list of base boxes for Vagrant - Vagrantbox.es]] 
-  * 개발 서버 환경 구축하기 
-  * [[https://github.com/boxcutter|Box Cutter - Community-driven templates and tools for creating cloud, virtual machines, containers and metal operating system environments]] 
  
-===== Install ===== 
-  * debian/ubuntu 은 https://www.vagrantup.com/downloads.html 에서 다운로드 하거나 ''vagrant'' 패키지를 설치하면 됨 
-  * [[https://wiki.archlinux.org/index.php/Vagrant|Arch Linux Vagrant]]<code sh> 
-sudo pacman -S vagrant 
-</code> 
-  * 기본 Provider 지정. Default 설정을 해두면 ''%%--%%provider'' 옵션 불필요<code sh> 
-export VAGRANT_DEFAULT_PROVIDER=virtualbox 
-</code> 
-===== libvirt ===== 
-  * [[libvirt|libvirt]] 
-  * [[https://github.com/vagrant-libvirt/vagrant-libvirt|vagrant-libvirt]] 
-  * [[https://computingforgeeks.com/using-vagrant-with-libvirt-on-linux/|How to Use Vagrant with Libvirt on Linux - Computing for Geeks]] 
-  * [[https://blog.scottlowe.org/2017/12/06/using-vagrant-with-libvirt-on-fedora/|Using Vagrant with Libvirt on Fedora 27 - Scott's Weblog - The weblog of an IT pro focusing on cloud computing, Kubernetes, Linux, containers, and networking]] 
-  * Linux 상에서  ''libvirt'' + [[qemu|QEMU]]가 실행 성능이 더 좋다고함(거의 Native 수준). 
-  * [[linux:arch|Arch Linux]] 에서 설치하기<code sh> 
-# 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 
-</code> 
- * [[https://superuser.com/questions/1063240/libvirt-failed-to-initialize-a-valid-firewall-backend|networking - libvirt: "Failed to initialize a valid firewall backend" - Super User]] 
-===== 기본 사용 ===== 
-  * 박스를 검색해서 찾은뒤 사용법을 따라하면 된다. 
-  * [[https://app.vagrantup.com/ubuntu/boxes/trusty64|Ubuntu trusty 64bit]], [[https://app.vagrantup.com/debian/boxes/buster64|debian buster 64bit]] 띄우기<code> 
-# vagrant 관련 설정을 넣어둘 디렉토리로 이동하여 Vagrantfile 생성 
-# for ubuntu 
-vagrant init ubuntu/trusty64 
-# for debian 
-vagrant init debian/buster64 
- 
-# 띄우기 
-vagrant up 
- 
-# 종료 
-vagrant halt 
- 
-# 완전삭제 
-vagrant destroy 
-</code> 
-  * SSH 접속<code sh> 
-vagrant ssh 
-</code> 
- 
-===== Box를 미리 받아두기 ===== 
-  * [[https://gist.github.com/idecardo/deec25b8fa54976edb496d7ce7d320a7|Laravel Homestead Manual Installation]] 
- 
-<code sh> 
-# 원하는 box를 다운로드 
-wget https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.5.0/providers/virtualbox.box 
- 
-# vagrant에 등록 
-vagrant box add laravel/homestead file:///c:/users/idecardo/downloads/virtualbox.box 
-</code> 
- 
-===== Hyper-V ===== 
-  * [[windows:hyper_v|Hyper-V]] Provider 
-  * https://www.vagrantup.com/docs/hyperv/ 
-<code sh> 
-# 관리자 권한으로 
-vagrant up --provider=hyperv 
- 
- 
-</code> 
- 
-===== vagrant-aws ===== 
-  * [[https://github.com/mitchellh/vagrant-aws|vagrant-aws]] 
-  * vagrant 로 AWS EC2 인스턴스 제어 
- 
-===== 참조 ===== 
-  * [[http://wiki.opencloudengine.org/pages/viewpage.action?pageId=2852295|Vagrant를 이용한 가상 환경 구축 - Realtime Stream - Open Cloud Engine WIKI]] 
-  * [[http://ppiazi.tistory.com/230|Vagrant - VirtualBox 가상머신 관리 도구 소개]] 
-  * [[http://www.slideshare.net/arawnkr/vagrant-chef|Vagrant와 chef로 개발서버 구축하기]] 
-  * [[http://bcho.tistory.com/806|Vagrant를 이용한 개발환경 관리(간단한 VM관리)]] 
-  * [[http://taewan.kim/post/vagrant_intro/|내 친구 Vagrant를 소개합니다.]] 
-  * [[https://fedoramagazine.org/vagrant-qemukvm-fedora-devops-sysadmin/|Installing and running Vagrant using qemu-kvm - Fedora Magazine]] 
-  * [[https://www.44bits.io/ko/post/vagrant-tutorial|베이그런트(Vagrant) 튜토리얼: 개발 환경 공유와 가상 머신 관리 도구 | 44BITS]]