목록2023/08 (14)
삽더하기실수
오류 전체 내용 ==> ansible-server: Destroying VM and associated drives... C:/HashiCorp/Vagrant/embedded/gems/gems/i18n-1.14.1/lib/i18n.rb:210:in `translate': wrong number of arguments (given 2, expected 0..1) (ArgumentError) from C:/Users/wjral/.vagrant.d/gems/3.1.3/gems/vagrant-vbguest-0.21.0/lib/vagrant-vbguest/middleware.rb:24:in `call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib..
오류 내용 [ansible-server] No Virtualbox Guest Additions installation found. Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.navercorp.com * extras: mirror.kakao.com * updates: mirror.kakao.com Resolving Dependencies --> Running transaction check ---> Package centos-release.x86_64 0:7-8.2003.0.el7.centos will be updated ---> Package centos-release.x86_64 0:7-9..
"Vagrant will use to store local environment-specific state is not accessible. The directory specified as the local data directory must be both readable and writable for the user that is running Vagrant" 해당 오류 발생시 명렴 프롬포트를 관리자 권한으로 실행 했는지 확인해보자 필자는 관리자 권한으로 변경후 정상적으로 실행되었다.
Vagrantfile 1. 베이그런트에서 부르는 호스트 이름 작성 2. 버추얼박스에서 구분하는 호스트 이름 작성 3. 가상머신의 호스트 이름을 변경 4. 호스트 PC와 가상머신 간에는 공유 디렉터리는 사용하지 않음 5. 가상머신에서 인터넷으로 연결되는 IP 설정 6. 호스트PC의 포트를 IP 주소와 유사하게 변경 bootstrap.sh 1. yum을 통해 epel 을 설치 2. yum을 통해 ansible 을 설치 vagrantfile # This Vagrantfile can be used to develop Vagrant. Note that VirtualBox # doesn't run in VirtualBox so you can't actually _run_ Vagrant within # the VM ..

1. 윈도우키 + r 키를 눌러 실행창을 연다. 2. cmd를 입력하고 확인을 누른다. 3. 하단 사진처럼 ipconfig 명령을 실행하여 게이트웨이 주소값을 확인한다. 4. 인턴넷 브라우져를 열어 해당 ip를 검색한다. 5. 공유기 화면으로 들어간다. 사용자의 계정명은 admin이며 암호는 유선 MAC 주소 뒤 6자리_ admin 6. 고급 설정 클릭 7.운용 모드를 NAT로 변경하고 확인을 눌러준다. 8. 맨 처음 진행한것처럼 ipconfig 명령어 사용하여 ip 확인하면 공인 ip로 할당되어있는것을 볼 수 있다.

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 Vag..