# Vagrant box rockylinux/8 v7.0.0 with libvirt provider fails to boot

**URL:** <https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-v7-0-0-with-libvirt-provider-fails-to-boot/8212>\
**Category:** Rocky Linux Help & Support\
**Created:** [December 11, 2022, 9:39pm UTC](https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-v7-0-0-with-libvirt-provider-fails-to-boot/8212 "2022-12-11T21:39:26Z")\
**Posts on this page:** 6\
**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 11, 2022, 9:39pm UTC](https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-v7-0-0-with-libvirt-provider-fails-to-boot/8212/1 "2022-12-11T21:39:26Z")

</div>

I’ve tried to start a new Vagrant box from [https://app.vagrantup.com/rockylinux/boxes/8/versions/7.0.0](https://app.vagrantup.com/rockylinux/boxes/8/versions/7.0.0) but it never boots.

Version info:  
OS: Fedora release 37 (Thirty Seven)  
Vagrant: Vagrant 2.2.19

Vagrantfile:

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

```

Provider: libvirt

The box never boots:

 ![Screenshot from 2022-12-11 21-20-40](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/c/c5dd1b4a6aea1d6dcd90e4059cb4a255091362c2.png)

Where/how can I raise an issue regarding this bug?

---

<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 11, 2022, 11:53pm UTC](https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-v7-0-0-with-libvirt-provider-fails-to-boot/8212/2 "2022-12-11T23:53:56Z")

</div>

If you have a way of telling vagrant/libvirt to boot using UEFI, it’ll likely boot.

---

<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, 2:59am UTC](https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-v7-0-0-with-libvirt-provider-fails-to-boot/8212/3 "2022-12-12T02:59:02Z")

</div>

REF:

- [Configuration - Vagrant Libvirt Documentation](https://vagrant-libvirt.github.io/vagrant-libvirt/configuration.html)
- [libvirt: Domain XML format](https://libvirt.org/formatdomain.html#bios-bootloader)

> - `loader` - Sets path to custom UEFI loader.

I came across [Support UEFI boot in ibvirt-manager](https://forums.rockylinux.org/t/support-uefi-boot-in-ibvirt-manager/7573) that mentions `edk2-ovmf` which should be installed on the hypervisor host. Setting loader value to `/usr/share/OVMF/OVMF_CODE.fd` got the box to boot.

e.g.

```auto
  config.vm.provider "libvirt" do |domain|
    domain.loader = "/usr/share/OVMF/OVMF_CODE.fd"
  end

```

Thanks for the hint.

---

<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 12, 2022, 3:27am UTC](https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-v7-0-0-with-libvirt-provider-fails-to-boot/8212/4 "2022-12-12T03:27:05Z")

</div>

You’re welcome. Sorry that you had to deal with that - I think we haven’t rebuilt our vagrant images like our cloud images to support both BIOS and UEFI booting simultaneously (in particular for libvirt). Through the week when I get a moment I’ll see what we can do about that so this gotcha won’t come up again.

---

<div class="post-metadata">

**Author:** ![microlinux](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/microlinux/32/1244_2.png) [@microlinux](https://forums.rockylinux.org/u/microlinux)\
**Post date:** [December 17, 2022, 10:23pm UTC](https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-v7-0-0-with-libvirt-provider-fails-to-boot/8212/5 "2022-12-17T22:23:42Z")

</div>

For what it’s worth, the `generic/rocky8` v4.2.4 box works perfectly on Vagrant/libvirt.

---

<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:30am UTC](https://forums.rockylinux.org/t/vagrant-box-rockylinux-8-v7-0-0-with-libvirt-provider-fails-to-boot/8212/6 "2023-08-25T03:30:44Z")

</div>


