사용자 도구

사이트 도구


vagrant

차이

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

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
vagrant [2019/07/25 13:04]
kwon37xi [Hyper-V]
vagrant [2021/03/21 21:44]
kwon37xi 제거됨
줄 3: 줄 3:
   * [[http://www.vagrantbox.es/|A list of base boxes for Vagrant - Vagrantbox.es]]   * [[http://www.vagrantbox.es/|A list of base boxes for Vagrant - Vagrantbox.es]]
   * 개발 서버 환경 구축하기   * 개발 서버 환경 구축하기
-  * https://github.com/box-cutter+  * [[https://github.com/boxcutter|Box Cutter Community-driven templates and tools for creating cloud, virtual machines, containers and metal operating system environments]]
  
 ===== Install ===== ===== Install =====
 +  * debian/ubuntu 은 https://www.vagrantup.com/downloads.html 에서 다운로드 하거나 ''vagrant'' 패키지를 설치하면 됨
   * [[https://wiki.archlinux.org/index.php/Vagrant|Arch Linux Vagrant]]<code sh>   * [[https://wiki.archlinux.org/index.php/Vagrant|Arch Linux Vagrant]]<code sh>
 sudo pacman -S vagrant sudo pacman -S vagrant
 </code> </code>
 +  * 기본 Provider 지정. Default 설정을 해두면 ''%%--%%provider'' 옵션 불필요<code sh> 
 +export VAGRANT_DEFAULT_PROVIDER=virtualbox 
 +</code>
 ===== libvirt ===== ===== libvirt =====
-  * [[https://github.com/vagrant-libvirt/vagrant-libvirt|vagrant-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://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]]   * [[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''가 실행 성능이 더 좋다고함(거의 Native 수준).+  * Linux 상에서  ''libvirt''[[qemu|QEMU]]가 실행 성능이 더 좋다고함(거의 Native 수준).
   * [[linux:arch|Arch Linux]] 에서 설치하기<code sh>   * [[linux:arch|Arch Linux]] 에서 설치하기<code sh>
 # libvirtd 는 ebtables, dnsmasq 가 떠있ᅟ는 상태에서 실행해야 함. # libvirtd 는 ebtables, dnsmasq 가 떠있ᅟ는 상태에서 실행해야 함.
줄 22: 줄 26:
 sudo systemctl enable --now libvertd.service sudo systemctl enable --now libvertd.service
  
-# 플러그이 설치+# 플러그인 설치
 vagrant plugin install vagrant-libvirt vagrant plugin install vagrant-libvirt
 # 잘 설치됐는지 확인 # 잘 설치됐는지 확인
줄 30: 줄 34:
 vagrant up --provider=libvirt vagrant up --provider=libvirt
 </code> </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://superuser.com/questions/1063240/libvirt-failed-to-initialize-a-valid-firewall-backend|networking - libvirt: "Failed to initialize a valid firewall backend" - Super User]]
 ===== 기본 사용 ===== ===== 기본 사용 =====
   * 박스를 검색해서 찾은뒤 사용법을 따라하면 된다.   * 박스를 검색해서 찾은뒤 사용법을 따라하면 된다.
줄 67: 줄 71:
   * [[windows:hyper_v|Hyper-V]] Provider   * [[windows:hyper_v|Hyper-V]] Provider
   * https://www.vagrantup.com/docs/hyperv/   * https://www.vagrantup.com/docs/hyperv/
-  * Default 설정을 해두면 ''%%--%%provider'' 옵션 불필요<code> 
-VAGRANT_DEFAULT_PROVIDER=hyperv 
-</code> 
 <code sh> <code sh>
 # 관리자 권한으로 # 관리자 권한으로
줄 86: 줄 87:
   * [[http://www.slideshare.net/arawnkr/vagrant-chef|Vagrant와 chef로 개발서버 구축하기]]   * [[http://www.slideshare.net/arawnkr/vagrant-chef|Vagrant와 chef로 개발서버 구축하기]]
   * [[http://bcho.tistory.com/806|Vagrant를 이용한 개발환경 관리(간단한 VM관리)]]   * [[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]]