"Vagrant"의 두 판 사이의 차이
잔글 |
잔글 |
||
1번째 줄: | 1번째 줄: | ||
− | 간소화된 VM 관리 | + | Vagrant는 간소화된 가상머신(VM, Virtual Machine) 관리 서비스 이다. |
*홈페이지 : [http://vagrantup.com http://vagrantup.com] | *홈페이지 : [http://vagrantup.com http://vagrantup.com] | ||
6번째 줄: | 6번째 줄: | ||
**[http://files.vagrantup.com/ http://files.vagrantup.com/] | **[http://files.vagrantup.com/ http://files.vagrantup.com/] | ||
**[http://vagrantbox.es/ http://vagrantbox.es/] | **[http://vagrantbox.es/ http://vagrantbox.es/] | ||
+ | * 이미지 다운로드 | ||
+ | :* CentOS 7 : https://app.vagrantup.com/centos/boxes/7 | ||
+ | :* Ubuntu 18.04.1 LTS : https://app.vagrantup.com/ubuntu/boxes/xenial64 | ||
*라이선스 : Mit License | *라이선스 : Mit License | ||
*플랫폼 : Ruby | *플랫폼 : Ruby | ||
11번째 줄: | 14번째 줄: | ||
== Vagrant 개요 == | == Vagrant 개요 == | ||
− | + | Vagrant 용어 | |
+ | * Box : 기본 설정을 가진 VM Template Image | ||
− | |||
− | + | VM 생성 | |
− | |||
vagrant box add <name> <image> | vagrant box add <name> <image> | ||
67번째 줄: | 69번째 줄: | ||
*[http://www.slideshare.net/kthcorp/h3-2012-vagrant http://www.slideshare.net/kthcorp/h3-2012-vagrant] | *[http://www.slideshare.net/kthcorp/h3-2012-vagrant http://www.slideshare.net/kthcorp/h3-2012-vagrant] | ||
*[http://adhoc.tistory.com/entry/Vagrant-Box-%EB%A7%8C%EB%93%A4%EA%B8%B0 Vagrant Box 만들기, 2015.1] | *[http://adhoc.tistory.com/entry/Vagrant-Box-%EB%A7%8C%EB%93%A4%EA%B8%B0 Vagrant Box 만들기, 2015.1] | ||
+ | |||
[[Category:Cloud|Category:Cloud]] | [[Category:Cloud|Category:Cloud]] |
2018년 9월 1일 (토) 08:42 판
Vagrant는 간소화된 가상머신(VM, Virtual Machine) 관리 서비스 이다.
- 홈페이지 : http://vagrantup.com
- 다운로드 : https://www.vagrantup.com/downloads.html
- 이미지 다운로드
- CentOS 7 : https://app.vagrantup.com/centos/boxes/7
- Ubuntu 18.04.1 LTS : https://app.vagrantup.com/ubuntu/boxes/xenial64
- 라이선스 : Mit License
- 플랫폼 : Ruby
Vagrant 개요
Vagrant 용어
- Box : 기본 설정을 가진 VM Template Image
VM 생성
vagrant box add <name> <image>
- ~/.vagrant.d/box/
mkdir project
cd project
vagrant init <name>
vagrant up
vagrant ssh
Box 생성
Virtualbox에서 CentOS 7.0을 설치 합니다.
vagrant 사용자를 생성 합니다.
groupadd wheel
useradd -d /home/vagrant -m -g wheel vagrant
visudo 명령을 사용하여 sudo 권한을 설정 합니다.
### vagrant ALL=(ALL) NOPASSWD:ALL
%wheel ALL=(ALL) ALL
%wheel ALL=(ALL) NOPASSWD: ALL
vagrant 사용자의 ssh key 설정을 합니다.
cd /home/vagrant
mkdir -p .ssh
### wget --no-check-certificate https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub -O /home/vagrant/.ssh/authorized_keys
curl -kL https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub > .ssh/authorized_keys
chmod 0700 /home/vagrant/.ssh
chmod 0600 /home/vagrant/.ssh/authorized_keys
chown -R vagrant:wheel /home/vagrant/.ssh
exit
- yum install openssh-server
yum install rsync openssh-clients
yum clean all
- yum install openssh-server
shotdown -h now
vagrant package --output centos70_64.box --base "CentOS 7.0"
참고 문헌
- http://www.arrow-web.co.uk/blog/2014/11/creating-vagrant-base-box-centos
- https://gist.github.com/mislav/de29f665bb0eae38fdd3
- http://adhoc.tistory.com/entry/Vagrant-Box-%EB%A7%8C%EB%93%A4%EA%B8%B0