• 카테고리

    질문 & 답변
  • 세부 분야

    데브옵스 · 인프라

  • 해결 여부

    미해결

안녕하세요 vagrant 설치중 이슈가 있습니다.

22.01.25 23:04 작성 조회수 1.08k

0

vagrant 설치중에 해당 이슈를 해결하지 못하여 커뮤니티 게시판에 올리게 되었습니다.

 

현재 github에서 제공중인 코드를 가지고 설치중에 해당 이슈가 발생하였습니다.

virtualbox에서는 CentOS-8-Vagrant 이미지 및 cent1까지 생성이 완료되었지만 다음으로 넘어가지를 않았습니다.

제가 해본 부분은 아래 사이트를 참고하엿지만 해결하지 못하였습니다.

(참고사이트: https://foxtrotin.tistory.com/482)

설치 버전은
oracle virtual box 6.1.32

vagrant 2.2.19

입니다.

 

---- 

아래는 에러 코드입니다.

PS C:\Users\95par\Desktop\SourceCode\ShellScript_inflearn\VWS_vagrant_script> vagrant up

Bringing machine 'cent1' up with 'virtualbox' provider...

Bringing machine 'cent2' up with 'virtualbox' provider...

Bringing machine 'cent3' up with 'virtualbox' provider...

==> cent1: Preparing master VM for linked clones...

    cent1: This is a one time operation. Once the master VM is prepared,

    cent1: it will be used as a base for linked clones, making the creation

    cent1: of new VMs take milliseconds on a modern system.

==> cent1: Importing base box 'centos/8'...

==> cent1: Cloning VM...

==> cent1: Matching MAC address for NAT networking...

==> cent1: Checking if box 'centos/8' version '2011.0' is up to date...

==> cent1: Setting the name of the VM: cent1

==> cent1: Clearing any previously set network interfaces...

==> cent1: Preparing network interfaces based on configuration...

    cent1: Adapter 1: nat

    cent1: Adapter 2: hostonly

    cent1: Adapter 3: hostonly

==> cent1: Forwarding ports...

    cent1: 22 (guest) => 2222 (host) (adapter 1)

==> cent1: Running 'pre-boot' VM customizations...

==> cent1: Booting VM...

There was an error while executing `VBoxManage`, a CLI used by Vagrant

for controlling VirtualBox. The command and stderr is shown below.

 

Command: ["startvm", "559fc6ea-9b8c-4885-8832-465175169c51", "--type", "headless"]

 

Stderr: VBoxManage.exe: error: The virtual machine 'cent1' has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005).  More details may be available in 'C:\VirtaulBox\cent1\Logs\VBoxHardening.log'

VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine

 

답변 6

·

답변을 작성해보세요.

0

Jei Cho님의 프로필

Jei Cho

2022.04.03

아래 url 을 찾을수가 없다고 오류가 발생하는데, 확인부탁드립니다.

 

 Downloading: https://vagrantcloud.com/rockylinux/boxes/8/versions/5.0.0/providers/virtualbox.box

    cent1:

An error occurred while downloading the remote file. The error

message, if any, is reproduced below. Please fix this error and try

again.

 

The requested URL returned error: 404

0

vagrant script를 업데이트 했습니다. 

https://www.inflearn.com/news/438345

현재 환경을 vagrant destroy로 삭제하시고 vagrant script를 업데이트한 후에 다시 vagrant up으로 설치해주세요.

실습 환경설정을 빠르고 쉽게 구축할 수 있도록 지속적인 업데이트를 해 나가겠습니다.

95park님의 프로필

95park

질문자

2022.02.10

감사합니다. 테스트정상적으로 됩니다.

0

김진님의 프로필

김진

2022.01.28

Mac 사용중인데 vagrant up 하면 비슷한 에러가 발생하네요

 

설치 버전은

oracle virtual box 6.1.22

1. vagrant 2.2.19

2. vagrant 2.2.14

두 버젼으로 실행 해봤으나 동일

 

Mac version은

Monterey 12.1

입니다.

혹시 해결하신 분 계신지요?

 

==> cent1: Running 'pre-boot' VM customizations...

==> cent1: Booting VM...

There was an error while executing `VBoxManage`, a CLI used by Vagrant

for controlling VirtualBox. The command and stderr is shown below.

 

Command: ["startvm", "56158e27-17dd-4fb3-ba58-bce1867b714d", "--type", "headless"]

 

Stderr: VBoxManage: error: The virtual machine 'cent1' has terminated unexpectedly during startup because of signal 10

VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine

95park님의 프로필

95park

질문자

2022.01.28

저는 위 에러는 C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv\VboxDrv.inf 이부분을 다시 설치하고 재시작하니 없어지긴 했습니다.(window 기준)

맥에서는 해당 보안권한 이슈가 있다고 들었는데 그부분 해제해보세요 ~

다만, 기존 스크립트대로 설치가 되지않아서 네트워크 및 Nginx , MariaDB , Storage 모두 개별로 잡아주었습니다.

0

95park님의 프로필

95park

질문자

2022.01.26

안녕하세요 window를 사용하시는분들중에 위와 같은 이슈가 있으실것같아 추가적으로 남겨놓습니다.

 

1. 기본적으로 virtualbox 와 vagrant version에 대해 버전 Down  -> 실패

저는 아래 버전으로 진행하였습니다. 

 virtualbox : 6/1/22

 vagramt : 2/2/16

 

2. virtualbox에 virtualbox 버전에 맞춰 플러그인을 추가 -> 실패

 virtualbox -> 파일탭 -> 환경설정탭 -> 확장 -> 버전에 맞추어 extension_pack 다운로드후 추가(공식홈페이지 이용)

 

3. window Hyper-V  설정  -> 실패

 1) bios에 진행하여 해당 virtualization techenology(CPU) enable

 2) window 환경에서  해당 명령어 진행

    $ bcdedit /set hypervisorlaunchtype off

 

4. Fasoo DRM client(교보 Ebook) 삭제   -> 일시적 성공

 

5. virtualbox drivers -> XboxDrv.inf 재설치  -> 성공

C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv\VboxDrv.inf (오른쪽클릭후 설치)

-----

현재, 위와같이 Virtualbox Headless 상태는 정상작동을 하게되어, Vagarnt가 VM을 실행할수 있게는 작동하였습니다.

다만, 해당 스크립트가 적용이 되지 않는것인지 모르겠지만 hostname 및 OS IP가 생성한 "VirtualBox Host-Only Ethernet Adapter"의 IP 대역대로 설치가 되지 않는게 있습니다.

 

제가 Vagarnt를 사용해본적이 없어서 해당 문제가 Vagarnt 설정을 지정을 해줘야하는것일까요?

0

안녕하세요:)

굉장히 복잡 다단한 메시지가 떴지만 결론은 버전 문제같아요 :)

버전이 올라가면서 설치 문제가 생기는 경우가 있는 것 같네요. 
버철박스 6.1.28이상 버전에서 다양한 문제가 발생하는 것 같습니다.
6.1.26이하 버전으로 다운그레이드 하시고 설치를 해 보세요.
95park님의 프로필

95park

질문자

2022.01.26

감사합니다. 기존 버전으로 설치하면 해당 스크립트도 적용이 안되는것 같습니다.

6.1.22 버전으로 테스트하고 결과 공유하겠습니다~

0

95park님의 프로필

95park

질문자

2022.01.25

 아래는 해당 경로에 있는 Error Log 중 일부분을 발췌하였습니다.