삽더하기실수

Ansible vagrant install 본문

카테고리 없음

Ansible vagrant install

삽수 2023. 8. 13. 22:33
반응형

Vagrant 기본 명령어

vagrant init 프로비저닝을 해주는 예제 스크립트를 생성한다.
vagrant up Vagrantfile을 읽어 들여 프로비저닝을 진행한다.
vagrant halt 베이그런트에서 다루는 호스트들을 종료한다.
vagrant destroy 베이그런트의 호스트들을 삭제한다.
vagrant ssh 베이그런트의 호스트에 ssh로 접속한다
vagrant provision 베이그런트의 호스트의 설정 변경을 적용한다.

vagrant install

설치전 필요 프로그램

https://developer.hashicorp.com/vagrant/downloads?product_intent=vagrant 

 

Install | Vagrant | HashiCorp Developer

Explore Vagrant product documentation, tutorials, and examples.

developer.hashicorp.com

https://notepad-plus-plus.org/downloads/v8.5.5/

 

Download Notepad++ v8.5.5 | Notepad++

Download Notepad++ v8.5.5 Release Date: 2023-08-09 Download 64-bit x64 Download 32-bit x86 Download ARM64 Download source code Download Notepad++ source code of current version and/or check sha-256 digests for binary packages on GitHub Integrity & Authenti

notepad-plus-plus.org

https://app.vagrantup.com

 

Vagrant Cloud by HashiCorp

Vagrant Cloud by HashiCorp

app.vagrantup.com

m/boxes/search 사이트에서 CentOs 확인

 

Vagrant Cloud by HashiCorp

Vagrant Cloud by HashiCorp

app.vagrantup.com

 

vagrantfile

 

vagrantfile 에서 해당 부분을 수정한다.

vagrant plugin install vagrant-vbguest

 

 

베이그런트를 설치하기 위해서 해당 명령어를 실행해준다.

cd C:\vagrantfile 위치

#vagrantfile 이 있는 위치로 이동한다

vagrant up 

#명령어를 통해서 vagrant 를 실행시켜준다

 

 

 

vagrant가 VirtualBox에 들어가 있는것을 확인 할 수 있다.

 

 

vagrant ssh
ip add

프롬포트 창에서 vagrant 를 실행하면 정상적으로 접근이 가능한 것 을 알 수 있다.

반응형