[vagrant] host-only network ip range error ์™ธ ๊ธฐํƒ€๐Ÿ˜ต

haryunยท2023๋…„ 2์›” 16์ผ
0

vagrant

๋ชฉ๋ก ๋ณด๊ธฐ
2/2

vagrant up error

vagrant๋กœ ๊ฐ€์ƒํ™˜๊ฒฝ ๊ตฌ์„ฑ์ค‘์— ์—๋Ÿฌ๊ฐ€ ๋‚ฌ๋‹ค.. ๊ธฐ์–ตํ•ด๋‘˜๊ฒธ ํฌ์ŠคํŒ…

โ—๏ธ host-only network error ...


macOS์—์„œ ์ฃผ๋กœ ๋ฐœ์ƒํ•˜๋Š” ์—๋Ÿฌ์ธ๋“ฏ ์‚ฌ์šฉ๊ฐ€๋Šฅํ•œ IP ๋ฒ”์œ„์— ๋งž์ง€ ์•Š์•„์„œ ๊ทธ๋ ‡๋‹ค๊ณ  ํ•œ๋‹ค!

server01.vm.network "private_network", ip: "192.168.56.10"

vagrantfile์˜ ip์ฃผ์†Œ๋ฅผ ๋ณ€๊ฒฝํ•ด์ฃผ๋ฉด ๋œ๋‹ค. ์ฐธ๊ณ 

โ—๏ธ executing VBoxManage ...

1)

Command: ["hostif"], ["create"] ...

์ด๊ฑด vbox์˜ ํ™•์žฅํŒฉ์ด ์—†์–ด์„œ ๋ฐœ์ƒํ•˜๋Š” ์—๋Ÿฌ!
ํ™•์žฅํŒฉ ๋‹ค์šด๋กœ๋“œ ์—ฌ๊ธฐ์„œ ๋ฒ„์ „์— ๋งž๋Š” ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œ ํ•œ ๋’ค, ๋„๊ตฌ - ํ™•์žฅ - ์„ค์น˜๋กœ ์ ์šฉํ•œ๋‹ค.

2)

์œ„์™€ ๊ฐ™์€ ์—๋Ÿฌ์ธ๋ฐ Command ๋ถ€๋ถ„์ด ์กฐ๊ธˆ ๋‹ฌ๋ผ์กŒ๋‹ค.
์—ฌ๊ธฐ์„  vagrant, vBox ๋ชจ๋‘ ์žฌ์„ค์น˜ ํ›„ ์ปค๋„์„ ๋‹ค์‹œ ๋กœ๋“œํ•˜๋‹ˆ๊นŒ ๋œ๋‹น

sudo kextload -b org.virtualbox.kext.VBoxDrv;
sudo kextload -b org.virtualbox.kext.VBoxNetFlt;
sudo kextload -b org.virtualbox.kext.VBoxNetAdp;
sudo kextload -b org.virtualbox.kext.VBoxUSB;

์ฐธ๊ณ ๋งํฌ

โ—๏ธ guest additional error

GA๊ฐ€ ์—†์–ด์„œ ์–ด์ฉŒ๊ตฌํ•˜๋Š” ์—๋Ÿฌ

$ vagrant plugin install vagrant-vbguest

ํ•ด๋‹น ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ค์น˜ํ•˜๋ฉด ๋จ

โ—๏ธThe following SSH command responded with a non-zero exit status.

๋ญ ํ•˜๋‚˜ ํ•ด๊ฒฐํ•˜๋ฉด ์—ด์ค„ ์‹คํ–‰๋˜๋‹ค๊ฐ€ ๋š ๋Š๊น€ ๋‚œ์ƒ ์ฒ˜์Œ ์ดํด๋ฆฝ์Šค ์„ธํŒ…ํ–ˆ์„ ๋•Œ ๋Š๋‚€ ๊ธฐ๋ถ„

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-vbguest ๋ฒ„์ „์„ ๋‹ค์šด๊ทธ๋ ˆ์ด๋“œ ํ•ด๋ด„

$ vagrant plugin uninstall vagrant-vbguest
$ vagrant plugin install vagrant-vbguest --plugin-version 0.21

ใ…‹ใ…‹
๋ญ”๊ฐ€ ์ž˜๋ชป๋œ ๊ฒƒ ๊ฐ™๋‹ค ๋‚œ ๊ฐ•์˜ ๋“ค์„ ํ™˜๊ฒฝ์„ ์„ธํŒ…ํ•˜๋ ค๋˜ ๊ฒƒ ๋ฟ์ธ๋ฐ,,,,,
์‚ฝ์งˆ์„ ์ž”๋œฉ ํ•˜๊ณ  ์žˆ์Œ

0๊ฐœ์˜ ๋Œ“๊ธ€