hashicorp/vagrant · error

vagrant.cap.configure_disks.recovery_attached_disks

Error message

vagrant.cap.configure_disks.recovery_attached_disks

What it means

Error "vagrant.cap.configure_disks.recovery_attached_disks" thrown in hashicorp/vagrant.

Source

Thrown at plugins/providers/virtualbox/cap/configure_disks.rb:432

        # @param [VagrantPlugins::ProviderVirtualBox::Model::StorageController] controller - the storage controller to use
        def self.recover_from_resize(machine, disk_info, backup_disk_location, original_disk, vdi_disk_file, controller)
          begin
            # move backup to original name
            FileUtils.mv(backup_disk_location, original_disk[:location], force: true)
            # Attach disk
            machine.provider.driver.attach_disk(controller.name,
                                                disk_info[:port],
                                                disk_info[:device],
                                                "hdd",
                                                original_disk[:location])

            # Remove cloned disk if still hanging around
            if vdi_disk_file
              machine.provider.driver.close_medium(vdi_disk_file)
            end

            # We recovered!
            machine.ui.warn(I18n.t("vagrant.cap.configure_disks.recovery_attached_disks"))
          rescue => e
            LOGGER.error("Vagrant encountered an error while trying to recover. It will now show the original error and continue...")
            LOGGER.error(e)
          end
        end
      end
    end
  end
end

View on GitHub (pinned to 35f3160f4a)

When it happens

Trigger: Thrown at plugins/providers/virtualbox/cap/configure_disks.rb:432 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of hashicorp/vagrant@35f3160f4a (2026-08-21). Data as JSON: /api/errors/834f9423856f601b. Report an issue: GitHub.