# Vagrant box rockylinux/8 fails for virtualbox provider with error VBOX\_E\_OBJECT\_NOT\_FOUND

**URL:** <https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-fails-for-virtualbox-provider-with-error-vbox-e-object-not-found/8228>\
**Category:** Rocky Linux Help & Support\
**Created:** [December 12, 2022, 9:01pm UTC](https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-fails-for-virtualbox-provider-with-error-vbox-e-object-not-found/8228 "2022-12-12T21:01:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdeathe](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jdeathe/32/2558_2.png) [@jdeathe](https://forums.rockylinux.org/u/jdeathe)\
**Post date:** [December 12, 2022, 9:01pm UTC](https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-fails-for-virtualbox-provider-with-error-vbox-e-object-not-found/8228/1 "2022-12-12T21:01:23Z")

</div>

[https://app.vagrantup.com/rockylinux/boxes/8/versions/7.0.0](https://app.vagrantup.com/rockylinux/boxes/8/versions/7.0.0)

OS: OSX 11.7 (BigSur)  
Vagrant: 2.3.4  
Virtualbox: 7.0.4r154605

```auto
$ cat Vagrantfile
Vagrant.configure("2") do |config|
  config.vm.box = "rockylinux/8"
  config.vm.box_version = "7.0.0"
end

```

```auto
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'rockylinux/8'...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["import", "-n", "/Users/jamesd/.vagrant.d/boxes/rockylinux-VAGRANTSLASH-8/7.0.0/virtualbox/box.ovf"]

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

```

```auto
$ ls -la /Users/jamesd/.vagrant.d/boxes/rockylinux-VAGRANTSLASH-8/7.0.0/virtualbox/
total 2491288
drwxr-xr-x 7 jamesd staff 224 12 Dec 20:47 .
drwxr-xr-x 3 jamesd staff 96 12 Dec 20:47 ..
-rw-r--r-- 1 jamesd staff 72 12 Dec 20:46 .imagefactory-metadata.json
-rw-r--r-- 1 jamesd staff 1273623040 12 Dec 20:47 Rocky-8-Vagrant-Vbox-8.7-20221121.0.x86_64.vmdk
-rw-r--r-- 1 jamesd staff 592 12 Dec 20:46 Vagrantfile
-rw-r--r-- 1 jamesd staff 244 12 Dec 20:46 info.json
-rw-r--r-- 1 jamesd staff 50 12 Dec 20:46 metadata.json

```

---

<div class="post-metadata">

**Author:** ![jdeathe](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jdeathe/32/2558_2.png) [@jdeathe](https://forums.rockylinux.org/u/jdeathe)\
**Post date:** [December 16, 2022, 7:19pm UTC](https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-fails-for-virtualbox-provider-with-error-vbox-e-object-not-found/8228/2 "2022-12-16T19:19:40Z")

</div>

Any more info required here or anywhere else I should raise this bug report?

---

<div class="post-metadata">

**Author:** ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)\
**Post date:** [December 17, 2022, 2:02am UTC](https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-fails-for-virtualbox-provider-with-error-vbox-e-object-not-found/8228/3 "2022-12-17T02:02:55Z")

</div>

Please try the latest image:

- [http://dl.rockylinux.org/pub/rocky/8/images/x86\_64/Rocky-8-Vagrant-Vbox.latest.x86\_64.box](http://dl.rockylinux.org/pub/rocky/8/images/x86_64/Rocky-8-Vagrant-Vbox.latest.x86_64.box)
- [http://dl.rockylinux.org/pub/rocky/8/images/x86\_64/Rocky-8-Vagrant-Vbox-8.7-20221213.0.x86\_64.box](http://dl.rockylinux.org/pub/rocky/8/images/x86_64/Rocky-8-Vagrant-Vbox-8.7-20221213.0.x86_64.box)

This will also require UEFI for now. Unfortunately I don’t know how to tell vagrant to use VirtualBox’s UEFI implementation.

---

<div class="post-metadata">

**Author:** ![jdeathe](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jdeathe/32/2558_2.png) [@jdeathe](https://forums.rockylinux.org/u/jdeathe)\
**Post date:** [December 17, 2022, 11:39am UTC](https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-fails-for-virtualbox-provider-with-error-vbox-e-object-not-found/8228/4 "2022-12-17T11:39:27Z")

</div>

To enable UEFI in VirtualBox 7.0 there’s info in the respective manuals:

- [OracleÂ® VM VirtualBox User Manual for Release 7.0 - ChapterÂ&nbsp;3Â&nbsp;Configuring Virtual Machines](https://docs.oracle.com/en/virtualization/virtualbox/7.0/user/BasicConcepts.html#efi)
- [Configuration - VirtualBox Provider | Vagrant | HashiCorp Developer](https://developer.hashicorp.com/vagrant/docs/providers/virtualbox/configuration#vboxmanage-customizations)

To test the supplied fix:

- Create Vagrantfile in working directory:

```auto
Vagrant.configure("2") do |config|
  config.vm.box = "rockylinux/8"
  config.vm.provider "virtualbox" do |domain|
    domain.customize ["modifyvm", :id, "--firmware", "efi"]
  end
end

```

- Create bugfix box metadata file named `box-metadata.json` in working directory:

```auto
{
  "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"
        }
      ]
    }
  ]
}

```

- Add bugfix box:

```auto
vagrant box add box-metadata.json

```

- Bring up the box:

```auto
vagrant up

```

- Box runs without error.

```auto
$ vagrant ssh -- "sudo cat /etc/rocky-release"
Rocky Linux release 8.7 (Green Obsidian)

```

Thanks again @label

---

<div class="post-metadata">

**Author:** ![tonyduan](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/tonyduan/32/2900_2.png) [@tonyduan](https://forums.rockylinux.org/u/tonyduan)\
**Post date:** [March 23, 2023, 3:54am UTC](https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-fails-for-virtualbox-provider-with-error-vbox-e-object-not-found/8228/5 "2023-03-23T03:54:04Z")

</div>

Thank you for composing this solution! It saves my day.

I would like to mention some other useful information for others who run in to this issue.

> [@jdeathe](#):
>
> - Create bugfix box metadata file named `box-metadata.json` in working directory:
> 
> ```auto
> {
> "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"
> }
> ]
> }
> ]
> }
> 
> ```
> 
> - Add bugfix box:
> 
> ```auto
> vagrant box add box-metadata.json
> 
> ```

1. another way is to just specify the `box_url`n Vagrantfile

```ruby
Vagrant.configure("2") do |config|
  config.vm.box_url = ["http://dl.rockylinux.org/pub/rocky/8/images/x86_64/Rocky-8-Vagrant-Vbox-8.7-20230215.0.x86_64.box"]
end

```

1. [Boxes of rockylinux 8 on Vagrantcloud](https://app.vagrantup.com/rockylinux/boxes/8) seems not to be updated. It says the latest version of rockylinux 8 is created on 2022-12-06  
We can check the latest available version of Vagrant box here: [Index of /pub/rocky/8/images/x86\_64/](http://dl.rockylinux.org/pub/rocky/8/images/x86_64/)  
The latest box of rockylinux 8 at the time of writing was uploaded on 2023-02-15, which is newer than the version on Vagrantcloud

---

<div class="post-metadata">

**Author:** ![jdeathe](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jdeathe/32/2558_2.png) [@jdeathe](https://forums.rockylinux.org/u/jdeathe)\
**Post date:** [April 18, 2023, 4:05pm UTC](https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-fails-for-virtualbox-provider-with-error-vbox-e-object-not-found/8228/6 "2023-04-18T16:05:59Z")

</div>

@label Would it be possible to update the versions hosted on Vagrant Cloud? There’s only 7.0.0 available and it seems there’s been a couple of iterations since that under [Index of /pub/rocky/8/images/x86\_64/](http://dl.rockylinux.org/pub/rocky/8/images/x86_64/)

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:17am UTC](https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-fails-for-virtualbox-provider-with-error-vbox-e-object-not-found/8228/7 "2023-08-25T03:17:39Z")

</div>


