{"record":{"id":"b2b968785ce1013d","repo":"hashicorp/vagrant","slug":"installation-of-the-provider-provider-failed-b2b968","errorCode":null,"errorMessage":"Installation of the provider '%{provider}' failed! The stdout\nand stderr are shown below. Please read the error output, resolve it,\nand try again. If problem persists, please install the provider\nmanually.\n\nStdout: %{stdout}\nStderr: %{stderr}","messagePattern":"Installation of the provider '%(.+?)' failed! The stdout\nand stderr are shown below\\. Please read the error output, resolve it,\nand try again\\. If problem persists, please install the provider\nmanually\\.\n\nStdout: %(.+?)\nStderr: %(.+?)","errorType":"exception","errorClass":"Vagrant::Errors::ProviderInstallFailed","httpStatus":null,"severity":"error","filePath":"plugins/hosts/windows/cap/provider_install_virtualbox.rb","lineNumber":54,"sourceCode":"\n          # Validate that the file checksum matches\n          actual = FileChecksum.new(path, Digest::SHA2).checksum\n          if actual != SHA256SUM\n            raise Vagrant::Errors::ProviderChecksumMismatch,\n              provider: \"virtualbox\",\n              actual: actual,\n              expected: SHA256SUM\n          end\n\n          # Launch it\n          ui.output(I18n.t(\n            \"vagrant.hosts.windows.virtualbox_install_install\"))\n          ui.detail(I18n.t(\n            \"vagrant.hosts.windows.virtualbox_install_install_detail\"))\n          script = File.expand_path(\"../../scripts/install_virtualbox.ps1\", __FILE__)\n          result = Vagrant::Util::PowerShell.execute(script, path)\n          if result.exit_code != 0\n            raise Vagrant::Errors::ProviderInstallFailed,\n              provider: \"virtualbox\",\n              stdout: result.stdout,\n              stderr: result.stderr\n          end\n\n          ui.success(I18n.t(\"vagrant.hosts.windows.virtualbox_install_success\"))\n        end\n      end\n    end\n  end\nend\n","sourceCodeStart":36,"sourceCodeEnd":66,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/hosts/windows/cap/provider_install_virtualbox.rb#L36-L66","documentation":"Vagrant::Errors::ProviderInstallFailed raised at plugins/hosts/windows/cap/provider_install_virtualbox.rb:54. After the checksum passes, Vagrant runs the bundled scripts/install_virtualbox.ps1 with the downloaded file via Vagrant::Util::PowerShell; a non-zero exit raises with the script's stdout/stderr. The installer stage — not the download — failed.","triggerScenarios":"`vagrant up` on Windows without VirtualBox; download and checksum succeed; install_virtualbox.ps1 exits non-zero — execution policy blocks it, elevation is denied, the MSU/EXE installer rejects the package, or a pending reboot blocks setup.","commonSituations":"ExecutionPolicy Restricted; UAC elevation declined; Windows version/patch level incompatible with the VirtualBox build (missing VC runtime, pending-reboot WU states); AV blocking the installer.","solutions":["Read the Stdout/Stderr embedded in the error — the installer's own failure message is there","Install VirtualBox manually from the downloaded package or virtualbox.org","Set `Set-ExecutionPolicy -Scope CurrentUser RemoteSigned` and run vagrant from an elevated shell if UAC is the issue","Reboot to clear pending-update states, ensure free disk space, then retry"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":"begin\n  provider_install.call\nrescue Vagrant::Errors::ProviderInstallFailed => e\n  warn \"installer failed:\\n#{e.data[:stderr]}\"\n  raise unless virtualbox_manually_installed?  # fallback: manual install then retry vagrant\nend","preventionTips":["Set ExecutionPolicy RemoteSigned and pre-elevate shells used for provider installs","Clear pending reboots before installs","Bake VirtualBox into images used by automation"],"tags":["virtualbox","provider-install","windows","powershell","installer"],"backgroundTag":"installer-exit-nonzero","analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}