본문 바로가기
DevOps

[Vagrant 에러]VBOX_E_OBJECT_NOT_FOUND

by Rainbound-IT 2023. 3. 9.
반응형

Environments

windows 11(vt 옵션 다 enable)

vagrant  2.3.4

virtualbox 7.0

 

Error

Stderr: 0%...VBOX_E_OBJECT_NOT_FOUND
VBoxManage.exe: error: Appliance read failed
VBoxManage.exe: error: Failed to open OVF file '\\?\C:\Users\...\.vagrant.d\boxes\rockylinux-VAGRANTSLASH-8\7.0.0\virtualbox\box.ovf' (VERR_FILE_NOT_FOUND)
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component ApplianceWrap, interface IAppliance
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleImportAppliance(struct HandlerArg *)" at line 510 of file VBoxManageAppliance.cpp

 

 

 

Trouble shooting

에러만 보면  ovf 파일이 없다고 나와 있길래 해당 경로 가보니 정말 파일이 없었다.

가상머신 파일은 down이 되야하는데 왜 안되지 하고 뒤져보는데 

rocky linux 관련 에러였던것 같습니다.

 

다음과 같이 하면 오류가 해결됩니다!

{
  "name" : "rockylinux/8",
  "description" : "Rocky Linux 8 7.0.0 Bugfix",
  "versions" : [
    {
      "version" : "7.0.1-20221213.0",
      "providers" : [
        {
          "name" : "virtualbox",
          "url" : "http://dl.rockylinux.org/pub/rocky/8/images/x86_64/Rocky-8-Vagrant-Vbox-8.7-20221213.0.x86_64.box"
        }
      ]
    }
  ]
}

 

작업하고 있는 폴더 내에 위 코드를 입력한 파일을 하나 생성해 줍니다.

저는 귀찮아서 찾은 곳에서 설정한 box-metadata.json 라는 이름으로 파일생성을 했습니다.

생성한뒤 다음 명령어를 입력합니다.

 

vagrant box add box-metadata.json

 

 

실행을 완료하고

vagrant up

을 하면 정상적으로 실행이 됩니다!

 

메타데이터를 vagrant box에 넣어 box파일을 다운로드 합니다.

 

제대로 실행되고 있는 모습..ㅠㅠ

 

 

 

Reference

https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-fails-for-virtualbox-provider-with-error-vbox-e-object-not-found/8228/4

 

Vagrant box rockylinux/8 fails for virtualbox provider with error VBOX_E_OBJECT_NOT_FOUND

To enable UEFI in VirtualBox 7.0 there’s info in the respective manuals: Oracle® VM VirtualBox User Manual for Release 7.0 - Chapter 3 Configuring Virtual Machines Configuration - VirtualBox Provider | Vagrant | HashiCorp Developer To test the s

forums.rockylinux.org

 

끝~

반응형

댓글