카테고리 없음

[Troubleshooting] vagrant up 명령어 실행시 Appliance import failed

모클 2024. 6. 20. 13:13

kubernetes 실습중 vagrant up 명령어 실행시 아래와 같이 에러가 발생하였습니다. 

 

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Preparing master VM for linked clones...
    default: This is a one time operation. Once the master VM is prepared,
    default: it will be used as a base for linked clones, making the creation
    default: of new VMs take milliseconds on a modern system.
==> default: Importing base box 'hashicorp/bionic64'...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["import", "\\\\?\\C:\\HashiCorp\\boxes\\hashicorp-VAGRANTSLASH-bionic64\\1.0.282\\virtualbox\\box.ovf", "--vsys", "0", "--vmname", "ubuntu-18.04-amd64_1574870798285_57998", "--vsys", "0", "--unit", "11", "--disk", "C:/Users/\u256C\u044B\u0445\u0443/VirtualBox VMs/ubuntu-18.04-amd64_1574870798285_57998/ubuntu-18.04-amd64-disk001.vmdk"]

Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting \\?\C:\HashiCorp\boxes\hashicorp-VAGRANTSLASH-bionic64\1.0.282\virtualbox\box.ovf...
OK.
0%...
Progress state: E_INVALIDARG
VBoxManage.exe: error: Appliance import failed
VBoxManage.exe: error: Code E_INVALIDARG (0x80070057) - One or more arguments are invalid (extended info not available)
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleImportAppliance(struct HandlerArg *)" at line 957 of file VBoxManageAppliance.cpp

 

원인 : virtualbox 실행시 경로가 잘못된경로로 지정이 되있어 발생한 이슈입니다. 

 

해결방법: 

 

1. Oracle VM virtualbox>파일>환경설정 

2. 일반>기본머신폴더를 새 경로로 지정 

 

3. vagrant up 명령어 재실행

 

 

잘 해결된것을 볼 수 있습니다. 

 

감사합니다. 

 

 

참고 : https://stackoverflow.com/questions/59074939/vagrant-up-doesnt-running-progress-state-e-invalidarg-vboxmanage-exe-error-a