• 카테고리

    질문 & 답변
  • 세부 분야

    데브옵스 · 인프라

  • 해결 여부

    미해결

안녕하세요 문의드립니다.

21.11.06 21:58 작성 조회수 139

0

안녕하세요. 강사님.
 
다른분들의 문의글들을 봤는데 동일 증상인거 같은데...
 
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도 생성되다가 위와 같이 에러가 뜨면서 설치가 중간됩니다.

 

 

답변 1

답변을 작성해보세요.

0

안녕하세요 

회색이 너무 많고, 어느 부분을 말씀하시는지 알기 좀 어려운데요.

추정하자면, 이게 거슬린다 이실꺼 같네요 맞으시려나요?

 

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

 

이 부분은 실습과 연관이 없이 vagrant guest additions이 설치되어 있지 않아 발생하는거라서요. 

문구에서 보실 수 있는 것처럼 메시지를 무시(ignore)하셔도 될 것 같습니다. 

다른 거라면 다시 한번 말씀해 주세요.