hashicorp/vagrant · error

Podman can not be installed

Error message

Podman can not be installed

What it means

Error "Podman can not be installed" thrown in hashicorp/vagrant.

Source

Thrown at plugins/provisioners/podman/installer.rb:19

# Copyright IBM Corp. 2010, 2025
# SPDX-License-Identifier: BUSL-1.1

require_relative "../container/installer"

module VagrantPlugins
  module PodmanProvisioner
    class Installer < VagrantPlugins::ContainerProvisioner::Installer
      # This handles verifying the Podman installation, installing it if it was
      # requested, and so on. This method will raise exceptions if things are
      # wrong.
      # @params [Boolean] - if true install should use kubic project (this will)
      #                     add a yum repo.
      #                     if false install comes from default yum
      # @return [Boolean] - false if podman cannot be detected on machine, else
      #                     true if podman installs correctly or is installed
      def ensure_installed(kubic)
        if !@machine.guest.capability?(:podman_installed)
          @machine.ui.warn("Podman can not be installed")
          return false
        end

        if !@machine.guest.capability(:podman_installed)
          @machine.ui.detail("Podman installing")
          @machine.guest.capability(:podman_install, kubic)
        end

        if !@machine.guest.capability(:podman_installed)
          raise PodmanError, :install_failed
        end

        true
      end
    end
  end
end

View on GitHub (pinned to 35f3160f4a)

When it happens

Trigger: Thrown at plugins/provisioners/podman/installer.rb:19 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/8229cca0925772d0. Report an issue: GitHub.