수강이 제한됩니다.
다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
CentOS Minimal ISO 버전 다운로드 받을 수 있는 경로 질문
[질문 전 답변]1. 강의 내용과 관련된 질문인가요? [예 ]2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? [예 ]3. 질문 잘하기 법을 읽어보셨나요? [예 ](https://www.inflearn.com/blogs/1719)4. 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.[질문 하기]CentOS 사이트가 변경 되면서 다운로드 하는 방법이 변경 된 듯 합니다.강의에서 사용하는 CentOS 버전을 다운로드 하는 링크나 파일을 있으면 공유 부탁드립니다.
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
"vagrant up" 실행이 안되네요
안녕하세요.[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)를 학습하다가섹션 5. 설치를 도와주는 베이그런트(Vagrant)에서 첨부와 같은 에러가 납니다."vagrant init" 실행후 Vagrantfile을 설명대로 수정한 후 "vagrant up"을 해도 centos가 설치가 안되어서,Vagrantfile를 삭제하고 "vagrant init centos/7"를 실행하고 "vagrant up"을 해도 계속해서 에러가 나네요.참고로 웹브라우저에서 "https://vagrantcloud.com/centos/7"를 접속하면 정상으로 연결이 됩니다.어떻게 해야 이 문제를 해결할 수 있을까요?그리고 "vagrant init ubuntu/focal64"를 실행해서 다른 OS를 설치하려고 해도 같은 에러가 나옵니다.자주 묻는 질문의 일반적인 에러 및 해결책도 살펴보았으나 해결이 안되네요.참고로 Windows 10 데스크탑과 노트북에서 새로 Virtual Box와 Vagrant를 다운받아 기존의 것을 지우고 설치해도 해결이 안되네요.
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
Vagrantfile 이용하여 vm 구성시 질문드립니다.
Vagrantfile 작성 후 vagrant up 시 network bridge 설정 질문이 나와서 설정방법 문의드립니다.virtualbox version: 6.1.18vagrant version: 2.2.14[Vagrantfile 내용]#-*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure("2") do |config| config.vm.define:"ansible-server" do |cfg| cfg.vm.box = "centos/7" cfg.vm.provider:virtualbox do |vb| vb.name="Ansible-Server(Udemy-Bloter)" end cfg.vm.host_name="ansible-server" cfg.vm.synced_folder ".", "/vagrant", disabled: true cfg.vm.network "public_network", ip: "192.168.1.10" cfg.vm.network "forwarded_port", guest: 22, host: 19210, auto_correct: false, id: "ssh" cfg.vm.provision "shell", path: "bootstrap.sh" end end
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
게이트웨이에 ping 할 수 없습니다.
안녕하세요 초기 단계의 강의를 듣고 있는 학생입니다. VM 설치까지 마치고 게스트 OS를 생성해서 nmtui로 ip 설정을 해주었는데요. 현재 제 호스트 OS(제 컴퓨터)의 ip는 "192.168.xxx.104"로 잡혀 있고 와이파이 사용 중입니다. 그리고 "route get default | grep gateway" 명령어를 통해 디폴트 게이트웨이가 "192.168.xxx.1"임을 확인하였습니다(macOS 사용 중입니다).또한, 서브넷도 255.255.255.0임을 확인하였습니다. 그래서 게스트 OS의 ip는 "192.168.xxx.10/24"로 잡고, 게이트웨이는 "192.168.xxx.1"로 설정을 해주었는데요,설정 후에 "systemctl restart network" 후, "ip add" 명령어를 통해 이 게스트 OS에 ip가 잘 부여되었음을 확인했습니다. 하지만 "ping 192.168.xxx.1"로 게이트웨이로 ping을 떼려보면 "Destination Host Unreachable"이라는 문구가 나오면서 실패합니다 ㅠ 그런데 "ping 192.168.xxx.104"로 호스트 OS로 ping을 찌르면 잘 도달하여 응답합니다. 마찬가지로 게스트 OS를"192.168.xxx.11/24""192.168.xxx.12/24""192.168.xxx.13/24" 이렇게 3개 더 생성해서 서로 통신을 시켜보면(ex: "ping 192.168.xxx.11") 이것 또한 잘 됩니다. 즉, 제 와이파이를 잡고 있는 같은 LAN 안의 컴퓨터(가상 컴퓨터 4대, 제 실제 컴퓨터 1대)들은 서로 통신은 잘 되는데, 정작 게이트웨이로 도달할 수 있는 것은 제 실제 컴퓨터(macOS)뿐이라 가상으로 올린 centOS들은 외부 인터넷에 접속을 못 하는 중입니다... 그래서 "yum install"로 외부로부터 라이브러리 다운조차 불가능해서 진도를 못 나가고 있는 상황입니다. 구글링을 해도 도저히 해답이 나오지 않아 질문 올립니다 ㅠ
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
vagrant 질문 사항.
vagrant 로 ansible 서버 실행할려고 하는데, ssh 안되서 가성 머신 들어가보니, ip 부분과 hostname 이 적용이 안되는 것 같아요. vagrantfile 두 code 올려 주신 거 써버 대역만 저한테 맡게 끔 변경하였는데 무엇이 문제 일까요?
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
기본적인 오류 확인 한번만 부탁 드립니다.
현재 AWS에서 public IP(internetgateway)를 가진 ansible master 서버와 private IP(natgateway)를 가진 ansible node 서버가 있습니다. master server에서 epel 설치 후 ansible를 설치한 상태입니다. /etc/ansible/hosts 파일에 node 서버의 ip를 추가 시켜주었고 - 보라색과 같이 경고 문구가 뜨지만 node로 ping은 보내지는 상황입니다. - 하지만 다음과 같은 구문을 작성했을때 위와 같은 오류가 발생하는데 어떤 오류인지 알 수 있을까요 ??
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
password change를 위한 playbook
[질문 전 답변]1. 강의 내용과 관련된 질문인가요? [예 | 아니요]2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? [예 | 아니요]3. 질문 잘하기 법을 읽어보셨나요? [예 | 아니요](https://www.inflearn.com/blogs/1719)4. 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.[질문 하기] 안녕하세요 인프런 기초 강의 부터 현재 강의까지 수강하고 있습니다. 궁금한 게 있는데, 패스워드를 변경할 때, 패스워드를 /etc/shadow 파일을 활용하여, 변경하는 방법이 있을까요? 아래와 같이 관련한 방법을 찾아보고 있는데, 아래의 경우에는 평문으로 입력하는 방법을 사용하는 것이라서 애초에 shadow 해쉬값 자체를 사용하는 방법이 있는지 궁금합니다. 혹시 참고할 수 있는 자료가 있으면 확인해 주시면 감사하겠습니다. https://www.ansiblepilot.com/articles/change-user-password-ansible-module-user/ --- - name: user module demo hosts: all become: true vars: myuser: "example" mypassword: "password" tasks: - name: change password ansible.builtin.user: name: "{{ myuser }}" state: present password: "{{ mypassword | password_hash('sha512') }}"
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
vagrant up 결과가 조금 다른거 같습니다
vagrantfile과 yml파일을 작성하고 vagrant up 명령어를 실행하면 각 노드들이 업로드되는 과정에서 Rsyncing folder: /cygdrive/c/hashiCorp/ => /vagrant라는 부분에서 굉장히 오랜시간이 소요되고 기다리면 결국 가상머신들은 생성이되긴 됩니다. 생성이 완료되고 실습과 같이 cat ./ssh/known_hosts를 입력하면 해당 파일이 존재하지 않다고 나오고, /etc/hosts와 /etc/ansible/hosts에도 실습과 같이 노드들의 관한 ip정보들이 하나도 존재하지 않습니다. vagrantfile과 yml 파일은 아무런 문법적 문제가 없는거 같은데 몇번을 반복해도 똑같은 현상이 나타나서 다음 과정으로 진행이 어렵습니다 ㅠ
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
사이트에 연결할 수 없음
안녕하세요. anp nginx_install.yml -k 실행 시 192.168.1.11로 접속 시 사이트에 연결할 수 없음 192.168.1.11에서 응답하는 데 시간이 너무 오래 걸립니다. 이라고 나오는데 이유를 알 수 있을까요? netstat 명령어로 nginx가 활동중인 것도 확인했고, 방화벽이 active 상태여서 중지했습니다. 그래도 호스트pc에서 접속하면 위와 같은 문구가 나옵니다 ㅜ.ㅜ
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
cfg.vm.provision 질문이 있습니다
안녕하세요, 강의 잘 듣고 있습니다. cfg.vm.provision 을 살펴보던 중 아래와 같은 문서를 봤는데요. https://www.vagrantup.com/docs/provisioning/ansible_intro cfg.vm.provision "ansible" 이나 "ansible_local" 로도 ansible 설정이 가능한 것으로 보이는데, 수동으로 설치를 하신 이유가 궁금합니다.
- 해결됨[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
windows2012r2 구성관련
안녕하세요 강의를 잘보고있습니다!windows를 vagrant를 이용해서 구성하려고하니 403오류가 발생하여(opentable/win-2012r2-standard-amd64-nocm) 다음 vagrant box를 가지고 진행하였습니다. (devopsgroup-io/windows_server-2012r2-standard-amd64-nocm) 그랬더니 ip가 제가 할당하지않은 ip가 자동으로 할당되며 방화벽도 해제되지 않는것을 확인하였습니다 오류는 다음과같이 timeout이 발생하였습니다. ==> ansible-node05: Waiting for machine to boot. This may take a few minutes... ansible-node05: SSH address: 127.0.0.1:19215 ansible-node05: SSH username: vagrant Timed out while waiting for the machine to boot. This means that Vagrant was unable to communicate with the guest machine within the configured ("config.vm.boot_timeout" value) time period. If you look above, you should be able to see the error(s) that Vagrant had when attempting to connect to the machine. These errors are usually good hints as to what may be wrong. If you're using a custom box, make sure that networking is properly working and you're able to connect to the machine. It is a common problem that networking isn't setup properly in these boxes. Verify that authentication configurations are also setup properly, as well. If the box appears to be booting properly, you may want to increase the timeout ("config.vm.boot_timeout") value. 제가 실수한 부분이있는지 궁금합니다! 감사합니다!
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
안녕하세요 문의드립니다.
안녕하세요. 강사님. 다른분들의 문의글들을 봤는데 동일 증상인거 같은데... c:\HashiCorp>vagrant up Bringing machine 'ansible-server' up with 'virtualbox' provider... ==> ansible-server: Importing base box 'centos/7'... ==> ansible-server: Matching MAC address for NAT networking... ==> ansible-server: Checking if box 'centos/7' version '2004.01' is up to date... ==> ansible-server: Setting the name of the VM: Ansible-Server(Udemy-Bloter) ==> ansible-server: Clearing any previously set network interfaces... ==> ansible-server: Preparing network interfaces based on configuration... ansible-server: Adapter 1: nat ansible-server: Adapter 2: bridged ==> ansible-server: Forwarding ports... ansible-server: 22 (guest) => 19210 (host) (adapter 1) ==> ansible-server: Booting VM... ==> ansible-server: Waiting for machine to boot. This may take a few minutes... ansible-server: SSH address: 127.0.0.1:19210 ansible-server: SSH username: vagrant ansible-server: SSH auth method: private key ansible-server: ansible-server: Vagrant insecure key detected. Vagrant will automatically replace ansible-server: this with a newly generated keypair for better security. ansible-server: ansible-server: Inserting generated public key within guest... ansible-server: Removing insecure key from the guest if it's present... ansible-server: Key inserted! Disconnecting and reconnecting using new SSH key... ==> ansible-server: Machine booted and ready! [ansible-server] No Virtualbox Guest Additions installation found. Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.kakao.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.2009.1.el7.centos will be an update --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Updating: centos-release x86_64 7-9.2009.1.el7.centos updates 27 k Transaction Summary ================================================================================ Upgrade 1 Package Total download size: 27 k Downloading packages: No Presto metadata available for updates Public key for centos-release-7-9.2009.1.el7.centos.x86_64.rpm is not installed warning: /var/cache/yum/x86_64/7/updates/packages/centos-release-7-9.2009.1.el7.centos.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-8.2003.0.el7.centos.x86_64 (@anaconda) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : centos-release-7-9.2009.1.el7.centos.x86_64 1/2 Cleanup : centos-release-7-8.2003.0.el7.centos.x86_64 2/2 Verifying : centos-release-7-9.2009.1.el7.centos.x86_64 1/2 Verifying : centos-release-7-8.2003.0.el7.centos.x86_64 2/2 Updated: centos-release.x86_64 0:7-9.2009.1.el7.centos Complete! Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.kakao.com * extras: mirror.kakao.com * updates: mirror.kakao.com No package kernel-devel-3.10.0-1127.el7.x86_64 available. Error: Nothing to do Unmounting Virtualbox Guest Additions ISO from: /mnt umount: /mnt: not mounted ==> ansible-server: Checking for guest additions in VM... ansible-server: No guest additions were detected on the base box for this VM! Guest ansible-server: additions are required for forwarded ports, shared folders, host only ansible-server: networking, and more. If SSH fails on this machine, please install ansible-server: the guest additions and repackage the box to continue. ansible-server: ansible-server: This is not an error message; everything may continue to work properly, ansible-server: in which case you may ignore this message. The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! umount /mnt Stdout from the command: Stderr from the command: umount: /mnt: not mounted c:\HashiCorp>vagrant up Bringing machine 'ansible-server' up with 'virtualbox' provider... ==> ansible-server: Importing base box 'centos/7'... ==> ansible-server: Matching MAC address for NAT networking... ==> ansible-server: Checking if box 'centos/7' version '2004.01' is up to date... ==> ansible-server: Setting the name of the VM: Ansible-Server(Udemy-Bloter) ==> ansible-server: Clearing any previously set network interfaces... ==> ansible-server: Preparing network interfaces based on configuration... ansible-server: Adapter 1: nat ansible-server: Adapter 2: bridged ==> ansible-server: Forwarding ports... ansible-server: 22 (guest) => 19210 (host) (adapter 1) ==> ansible-server: Booting VM... ==> ansible-server: Waiting for machine to boot. This may take a few minutes... ansible-server: SSH address: 127.0.0.1:19210 ansible-server: SSH username: vagrant ansible-server: SSH auth method: private key ansible-server: ansible-server: Vagrant insecure key detected. Vagrant will automatically replace ansible-server: this with a newly generated keypair for better security. ansible-server: ansible-server: Inserting generated public key within guest... ansible-server: Removing insecure key from the guest if it's present... ansible-server: Key inserted! Disconnecting and reconnecting using new SSH key... ==> ansible-server: Machine booted and ready! [ansible-server] No Virtualbox Guest Additions installation found. Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.kakao.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.2009.1.el7.centos will be an update --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Updating: centos-release x86_64 7-9.2009.1.el7.centos updates 27 k Transaction Summary ================================================================================ Upgrade 1 Package Total download size: 27 k Downloading packages: No Presto metadata available for updates Public key for centos-release-7-9.2009.1.el7.centos.x86_64.rpm is not installed warning: /var/cache/yum/x86_64/7/updates/packages/centos-release-7-9.2009.1.el7.centos.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-8.2003.0.el7.centos.x86_64 (@anaconda) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : centos-release-7-9.2009.1.el7.centos.x86_64 1/2 Cleanup : centos-release-7-8.2003.0.el7.centos.x86_64 2/2 Verifying : centos-release-7-9.2009.1.el7.centos.x86_64 1/2 Verifying : centos-release-7-8.2003.0.el7.centos.x86_64 2/2 Updated: centos-release.x86_64 0:7-9.2009.1.el7.centos Complete! Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.kakao.com * extras: mirror.kakao.com * updates: mirror.kakao.com No package kernel-devel-3.10.0-1127.el7.x86_64 available. Error: Nothing to do Unmounting Virtualbox Guest Additions ISO from: /mnt umount: /mnt: not mounted ==> ansible-server: Checking for guest additions in VM... ansible-server: No guest additions were detected on the base box for this VM! Guest ansible-server: additions are required for forwarded ports, shared folders, host only ansible-server: networking, and more. If SSH fails on this machine, please install ansible-server: the guest additions and repackage the box to continue. ansible-server: ansible-server: This is not an error message; everything may continue to work properly, ansible-server: in which case you may ignore this message. The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! umount /mnt Stdout from the command: Stderr from the command: umount: /mnt: not mounted c:\HashiCorp> c:\HashiCorp>\\ '\\'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다. c:\HashiCorp>vagrant up Bringing machine 'ansible-server' up with 'virtualbox' provider... ==> ansible-server: Importing base box 'centos/7'... ==> ansible-server: Matching MAC address for NAT networking... ==> ansible-server: Checking if box 'centos/7' version '2004.01' is up to date... ==> ansible-server: Setting the name of the VM: Ansible-Server(Udemy-Bloter) ==> ansible-server: Clearing any previously set network interfaces... ==> ansible-server: Preparing network interfaces based on configuration... ansible-server: Adapter 1: nat ansible-server: Adapter 2: bridged ==> ansible-server: Forwarding ports... ansible-server: 22 (guest) => 19210 (host) (adapter 1) ==> ansible-server: Booting VM... ==> ansible-server: Waiting for machine to boot. This may take a few minutes... ansible-server: SSH address: 127.0.0.1:19210 ansible-server: SSH username: vagrant ansible-server: SSH auth method: private key ansible-server: ansible-server: Vagrant insecure key detected. Vagrant will automatically replace ansible-server: this with a newly generated keypair for better security. ansible-server: ansible-server: Inserting generated public key within guest... ansible-server: Removing insecure key from the guest if it's present... ansible-server: Key inserted! Disconnecting and reconnecting using new SSH key... ==> ansible-server: Machine booted and ready! [ansible-server] No Virtualbox Guest Additions installation found. Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.kakao.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.2009.1.el7.centos will be an update --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Updating: centos-release x86_64 7-9.2009.1.el7.centos updates 27 k Transaction Summary ================================================================================ Upgrade 1 Package Total download size: 27 k Downloading packages: No Presto metadata available for updates Public key for centos-release-7-9.2009.1.el7.centos.x86_64.rpm is not installed warning: /var/cache/yum/x86_64/7/updates/packages/centos-release-7-9.2009.1.el7.centos.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-8.2003.0.el7.centos.x86_64 (@anaconda) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : centos-release-7-9.2009.1.el7.centos.x86_64 1/2 Cleanup : centos-release-7-8.2003.0.el7.centos.x86_64 2/2 Verifying : centos-release-7-9.2009.1.el7.centos.x86_64 1/2 Verifying : centos-release-7-8.2003.0.el7.centos.x86_64 2/2 Updated: centos-release.x86_64 0:7-9.2009.1.el7.centos Complete! Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.kakao.com * extras: mirror.kakao.com * updates: mirror.kakao.com No package kernel-devel-3.10.0-1127.el7.x86_64 available. Error: Nothing to do Unmounting Virtualbox Guest Additions ISO from: /mnt umount: /mnt: not mounted ==> ansible-server: Checking for guest additions in VM... ansible-server: No guest additions were detected on the base box for this VM! Guest ansible-server: additions are required for forwarded ports, shared folders, host only ansible-server: networking, and more. If SSH fails on this machine, please install ansible-server: the guest additions and repackage the box to continue. ansible-server: ansible-server: This is not an error message; everything may continue to work properly, ansible-server: in which case you may ignore this message. The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! umount /mnt Stdout from the command: Stderr from the command: umount: /mnt: not mounted 위와 같이 나타나네요... # -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure("2") do |config| config.vm.define:"ansible-server" do |cfg| cfg.vm.box = "centos/7" cfg.vm.provider:virtualbox do |vb| vb.name="Ansible-Server(Udemy-Bloter)" end cfg.vm.host_name="ansible-server" cfg.vm.synced_folder ".", "/vagrant", disabled: true cfg.vm.network "public_network", ip: "192.168.1.10" cfg.vm.network "forwarded_port", guest: 22, host: 19210, auto_correct: false, id: "ssh" cfg.vm.provision "shell", path: "bootstrap.sh" end end 도 이상은 없어 보이고... 답변 부탁드립니다~!! 참고로 환겨은 Window 환경이고, 공유기를 통해서 이전 무료강의에서는 문제 없이 잘 가동됬었습니다. 또한 VM도 생성되다가 위와 같이 에러가 뜨면서 설치가 중간됩니다.
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
질문 있습니다
Vagrant up 시키고 관련 패키지 다 받고 난 후에 ssh ansible-server로 접속 시 저런 오류 로그가 뜨네요 해결 방법 있나요?
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
yml파일이 안보입니다.
file/boot/ready.yml 파일 모두 수정을 해주었는데 ls명령어로 파일확인을 해보니 ym파일이 나오지 않습니다..
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
개인적인 질문
안녕하십니까 조훈님 현업에서 배쉬쉘보다 최근에는 파이썬을 많이 사용하나요 ? 배쉬쉘 스크립트 강의랑.. 조훈님 파이썬 실무 프로그래밍 책중 고민중인데 어떤게 더 필요한 역량인지 몰르겠습니다!
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
베이그런트 vs 도커
필드에서 베이그런트 많이 사용하나요? 뭔가 도커가 사용이 편한거 같아서요 !
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
vagrantfile for using VMware Workstation
VMware workstation 을 사용해서 수업을 하고 있습니다. Virtual box의 경우 수업내용으로 진행을 잘 하고 있는데, VMware로 수업을 테스트 하고 싶어서 아래와 같이 vagrantfile을 수정해서 사용을 하니 에러가 나네요. 여기저기 찾아보았지만, forwared_port부분에서 막힙니다. 코드 내용은 ======= vagrantfile======== Vagrant.configure("2") do |config| config.vm.define:"ansible-server" do |cfg| cfg.vm.box = "centos/7" cfg.vm.provider:vmware do |vmware_desktop| vmware_desktop.name="Ansible-Server(Udemy-bloter)" end cfg.vm.host_name="ansible-server" cfg.vm.synced_folder ".", "/vagrant", disabled: true cfg.vm.network "public_network", ip: "192.168.1.174" cfg.vm.network "forwarded_port", guest: 22, host: 192174, auto_correct: false, id: "ssh" cfg.vm.provision "shell", path: "bootstrap.sh" end end ============== 로하고 에러는 ================ Bringing machine 'ansible-server' up with 'vmware_desktop' provider... There are errors in the configuration of this machine. Please fix the following errors and try again: vm: * Ports to forward must be 1 to 65535 ================== 포트를 22번으로 하거나 기타 다른 번호를 해도 같은 에러가 나와 진행을 하기가 어렵습니다. 특별히 어려운 코드도 아닌데 이해가 안되네요. 좀 봐주시면 고맙겠습니다. 그리고 박스를 이용시 자동으로 버추얼 머신을 불러오지만, vmware의 경우 다른 디스크나 디렉토리를 사용시 vm을 불러오지 못해서 scan후 사용을 해야합니다. 설치디렉토리 지정을 하는 코드를 찾아보았지만 특별히 없는 것 같아서요. 혹시 아시는 부분 있으면 부탁드립니다. 감사합니다.
- 해결됨[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
안녕하세요 설치를 도와주는 베이그런트(Vagrant) 수업을 듣고 다른부분이 있어 질문 드립닌다
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. 막단에 보면 Unmounting Virtualbox Guest Additions ISO from: /mnt ==> default: Checking for guest additions in VM... 이 코드 부분이 영상에 있는 부분과 다르게 나옵니다 vagrant file에서 config.vm.synced_folder ".", "/vagrant", disabled: true 베이그런트 파일에서 공유 폴더 설정을 위와 같이 바꿨는데 혹시 어떤 조치를 취해야 저 오류를 없앨 수 있을까요...- 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
Vagrant file 이 VM 생성시 자동 적용이 되지 않음
안녕하세요 이번강의를 들으면서 안되는 부분이 있어서 질문을 드립니다. 앤서블 서버에 앤서블 코어 환경 구성하기에서 아래와 같은 설정으로 Vagrant file을 작성하였는데요 터미널에 결과와 실제 생성된 vm 을 확인하면 제가 빨간색 박스로 표시된 부분이 실행이 되지 않는것 같습니다. 코드에는 문제가 없어보이는데 왜 적용이 안되었던 건지 알 수 있을까요? 참고로 저는 Mac 을 사용하고 있고 조훈님이 하신것 처럼 Vagrant 가 설치된 곳에 HashiCorp dir 을 만든 것이 아니라 따로 제가 지정한 곳에 HashiCorp dir 을 만들고 그 안에 Vagrant 파일과 bootstrap.sh 을 넣었습니다. 더 필요하신 스냅샷이 있으시면 말씀해주세요 :)
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
centos vm 자동 생성에 관해 질문드립니다
안녕하세요 vagrant 로 centos 이미지가 자동으로 설치 되면 virtual box 에 이 이미지가 생성되는 것을 보여주셨습니다. 저는 현재 mac os 사용중입니다 그렇다면 만약 virtual box가 미리 제 os에 설치 되어있지 않다면 centos 서버가 생성 되지 않나요? 저는 이미 전 강의를 들어서 virtual box가 있었지만 어떠한 원리로 자동으로 virtual box에서 저희가 확인할 수 있는지가 궁금합니다. 감사합니다