• 카테고리

    질문 & 답변
  • 세부 분야

    데브옵스 · 인프라

  • 해결 여부

    미해결

vagrant up 설치 오류

22.10.28 11:26 작성 조회수 569

1

잘 설치되는 듯 하다가 아래와 같은 오류가 발생했습니다.

검색해봐도 마땅한 답이 안나오는 것 같아서... 문의드립니다.

 

Error: 0 [main] rsync (28752) C:\HashiCorp\Vagrant\embedded\usr\bin\rsync.EXE: *** fatal error - cygheap base mismatch detected - 0x11B2408/0x1462408.

This problem is probably due to using incompatible versions of the cygwin DLL.

Search for cygwin1.dll using the Windows Start->Find/Search facility

and delete all but the most recent version. The most recent version should

reside in x:\cygwin\bin, where 'x' is the drive on which you have

installed the cygwin distribution. Rebooting is also suggested if you

are unable to find another cygwin DLL.

0 [main] rsync 940 dofork: child -1 - forked process 28752 died unexpectedly, retry 0, exit code 0xC0000142, errno 11

rsync: [sender] fork: Resource temporarily unavailable (11)

rsync error: error in IPC code (code 14) at pipe.c(65) [sender=3.2.3]

 

 

답변 4

·

답변을 작성해보세요.

1

이수연님의 프로필

이수연

질문자

2022.11.02

알려주신 방법대로 설정하고 나니

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

==> k8s-node2: Checking for guest additions in VM...

k8s-node2: No guest additions were detected on the base box for this VM! Guest

k8s-node2: additions are required for forwarded ports, shared folders, host only

k8s-node2: networking, and more. If SSH fails on this machine, please install

k8s-node2: the guest additions and repackage the box to continue.

k8s-node2:

k8s-node2: This is not an error message; everything may continue to work properly,

k8s-node2: 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!

 

이런 오류가 나왔습니다.

인터넷을 뒤져보니 guest edition 버전에 대한 문제인 것 같아서

vagrant plugin install vagrant-vbguest --plugin-version 0.21

 

이걸 다시 한번 해주고, vagrant up 을 다시 실행했더니 드디어 설치에 성공했습니다!!

같이 고민해주셔서 감사합니다!

1

안녕하세요.

흔한 에러가 아니라 저도 확인은 하고 있지만, 쉽게 해결 방법이 보이지 않네요

현재 운영체제가 어떻게 되시는지?

그리고 Vagrant 버전도 강의에 나오는 버전으로 설치되었나요?

이수연님의 프로필

이수연

질문자

2022.10.31

windows 11, 64bit

RAM 은 16GB 입니다.

vagrant 버전은 강의에 나오는 버전 2.2.18버전 그대로 설치했습니다.

 

0

저도 내용을 찾아보니 운영체제에서 사용되는 cygwin에 대한 버전과 안맞는다는 것 같네요

제 강의 영상은 windows 10이라 차이가 있을 수 있겠고요.

cygwin 다시 설치해봤다고 하시니, vagrant를 최신 버전으로 설치해 보시겠어요?

이수연님의 프로필

이수연

질문자

2022.11.01

vagrant 최신 버전 2.3.2 로 다시 설치하고

혹시몰라 cygwin 도 다시 다운받아서 설치했는데 여전히 아래 오류가 발생하네요 ㅠㅠㅠㅠㅠㅠ

환경 설정이 되지 않아 실습을 못하고 있습니다 . 혹시 다른 방법은 없을까요? ㅠ

 

Rsyncing folder: /cygdrive/c/Users/user/k8s/ => /vagrant

1 [main] rsync (2020) C:\HashiCorp\Vagrant\embedded\usr\bin\rsync.EXE: *** fatal error - cygheap base mismatch detected - 0x13C0408/0x1550408.

This problem is probably due to using incompatible versions of the cygwin DLL.

Search for cygwin1.dll using the Windows Start->Find/Search facility

and delete all but the most recent version. The most recent version should

reside in x:\cygwin\bin, where 'x' is the drive on which you have

installed the cygwin distribution. Rebooting is also suggested if you

are unable to find another cygwin DLL.

0 [main] rsync 533 dofork: child -1 - forked process 2020 died unexpectedly, retry 0, exit code 0xC0000142, errno 11

There was an error when attempting to rsync a synced folder.

Please inspect the error message below for more info.

Host path: /cygdrive/c/Users/user/k8s/

Guest path: /vagrant

Command: "rsync" "--verbose" "--archive" "--delete" "-z" "--copy-links" "--chmod=ugo=rwX" "--no-perms" "--no-owner" "--no-group" "--rsync-path" "sudo rsync" "-e" "ssh -p 2201 -o LogLevel=FATAL -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i 'C:/Users/user/k8s/.vagrant/machines/k8s-node1/virtualbox/private_key'" "--exclude" ".vagrant/" "/cygdrive/c/Users/user/k8s/" "vagrant@127.0.0.1:/vagrant"

Error: 1 [main] rsync (2020) C:\HashiCorp\Vagrant\embedded\usr\bin\rsync.EXE: *** fatal error - cygheap base mismatch detected - 0x13C0408/0x1550408.

This problem is probably due to using incompatible versions of the cygwin DLL.

Search for cygwin1.dll using the Windows Start->Find/Search facility

and delete all but the most recent version. The most recent version should

reside in x:\cygwin\bin, where 'x' is the drive on which you have

installed the cygwin distribution. Rebooting is also suggested if you

are unable to find another cygwin DLL.

0 [main] rsync 533 dofork: child -1 - forked process 2020 died unexpectedly, retry 0, exit code 0xC0000142, errno 11

rsync: [sender] fork: Resource temporarily unavailable (11)

rsync error: error in IPC code (code 14) at pipe.c(65) [sender=3.2.6]

이수연님의 프로필

이수연

질문자

2022.11.01

sygwin1.dll 을 강제로 x:\cygwin\bin 경로로 이동시키고,

윈도우 보안설정에서

C:\HashiCorp\Vagrant\embedded\usr\bin\rsync.EXE

해당 경로의 프로그램에 대해 ASLR 보안 해제를 했더니 에러 메시지가 아래와 같이 변경되었습니다.

 

Rsyncing folder: /cygdrive/c/Users/user/k8s/ => /vagrant

There was an error when attempting to rsync a synced folder.

Please inspect the error message below for more info.

Host path: /cygdrive/c/Users/user/k8s/

Guest path: /vagrant

Command: "rsync" "--verbose" "--archive" "--delete" "-z" "--copy-links" "--chmod=ugo=rwX" "--no-perms" "--no-owner" "--no-group" "--rsync-path" "sudo rsync" "-e" "ssh -p 2222 -o LogLevel=FATAL -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i 'C:/Users/user/k8s/.vagrant/machines/k8s-master/virtualbox/private_key'" "--exclude" ".vagrant/" "/cygdrive/c/Users/user/k8s/" "vagrant@127.0.0.1:/vagrant"

Error: rsync: connection unexpectedly closed (0 bytes received so far) [sender]

rsync error: error in rsync protocol data stream (code 12) at io.c(231) [sender=3.2.6]

 

 

여전히 rsync 오류네요 ㅠㅠ

 

한번

vagrant plugin install vagrant-vbguest

명령어를 실행하고 reboot 해서 다시 해보시겠어요?

이전에 cygwin64 라는걸 별도로 설치한 적 있나요?

저도 잘 모르는 부분이라 확인해보니, 별도로 설치한 cygwin64에서 rsync.exe 파일이 있고

Vagrant에서 별도 설치해서 사용하는 rsync.exe가 있는데,

둘간에 버전이 다른 상태로 보이고, 현재 PC상에는 cygwin64에서 rsync.exe 가 기본으로 사용되서 Vagrant에서도 그걸 사용하고 있는 것 같네요.

다운 받은 Vagrantfile 에서

config.vm.box="centos/7" 밑으로 아래 내용 추가해서 실행해보시기 바랍니다.

config.vm.synced_folder ".", "/vagrant", type: ""

synced_folder를 사용 안하겠다는 설정입니다

0

이수연님의 프로필

이수연

질문자

2022.10.28

cygwin 을 별도로 설치해서 다시 시도해보았지만 마찬가지도 같은 오류메시지가 나오네요 ㅠㅠ