{"record":{"id":"130ffa3c9d460e7d","repo":"hashicorp/vagrant","slug":"vagrant-was-unable-to-determine-the-recommended-na-130ffa","errorCode":null,"errorMessage":"Vagrant was unable to determine the recommended name for your\nVirtualBox VM. This is usually an issue with VirtualBox. The output\nfrom VirtualBox is shown below, which may contain an error to fix.\nThe best way to fix this issue is usually to uninstall VirtualBox,\nrestart your computer, then reinstall VirtualBox.\n\nVirtualBox output:\n\n%{output}","messagePattern":"Vagrant was unable to determine the recommended name for your\nVirtualBox VM\\. This is usually an issue with VirtualBox\\. The output\nfrom VirtualBox is shown below, which may contain an error to fix\\.\nThe best way to fix this issue is usually to uninstall VirtualBox,\nrestart your computer, then reinstall VirtualBox\\.\n\nVirtualBox output:\n\n%(.+?)","errorType":"exception","errorClass":"Vagrant::Errors.VirtualBoxNoName","httpStatus":null,"severity":"error","filePath":"plugins/providers/virtualbox/driver/version_6_0.rb","lineNumber":29,"sourceCode":"        def initialize(uuid)\n          super\n\n          @logger = Log4r::Logger.new(\"vagrant::provider::virtualbox_6_0\")\n        end\n\n        def import(ovf)\n          ovf = Vagrant::Util::Platform.windows_path(ovf)\n\n          output = \"\"\n          total = \"\"\n          last  = 0\n\n          # Dry-run the import to get the suggested name and path\n          @logger.debug(\"Doing dry-run import to determine parallel-safe name...\")\n          output = execute(\"import\", \"-n\", ovf)\n          result = /Suggested VM name \"(.+?)\"/.match(output)\n          if !result\n            raise Vagrant::Errors::VirtualBoxNoName, output: output\n          end\n          suggested_name = result[1].to_s\n\n          # Append millisecond plus a random to the path in case we're\n          # importing the same box elsewhere.\n          specified_name = \"#{suggested_name}_#{(Time.now.to_f * 1000.0).to_i}_#{rand(100000)}\"\n          @logger.debug(\"-- Parallel safe name: #{specified_name}\")\n\n          # Build the specified name param list\n          name_params = [\n            \"--vsys\", \"0\",\n            \"--vmname\", specified_name,\n          ]\n\n          # Target path for disks is no longer a full path. Extract the path for the\n          # settings file to determine the base directory which we can then use to\n          # build the disk paths\n          result = /Suggested VM settings file name \"(?<settings_path>.+?)\"/.match(output)","sourceCodeStart":11,"sourceCodeEnd":47,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/providers/virtualbox/driver/version_6_0.rb#L11-L47","documentation":"Identical logic to the 5.x driver, but in the VirtualBox 6.x driver: `vagrant up` dry-runs `VBoxManage import -n <ovf>` and matches `Suggested VM name \"...\"` to derive a collision-free VM name. When the regex fails to match VBoxManage's output, VirtualBoxNoName is raised with the raw output attached. It points at a VirtualBox-side failure (install, version, or box OVF), not at Vagrant configuration.","triggerScenarios":"First `vagrant up` of a box under VirtualBox 6.x where `execute(\"import\", \"-n\", ovf)` output contains an error or omits the 'Suggested VM name' line — e.g. broken VBoxManage, unreadable/corrupt .ovf, or an import blocked by disk space/permissions before the name is suggested.","commonSituations":"VirtualBox 6.x installation damaged by an OS upgrade or partial uninstall; box archive corrupted during download; host disk full so the import dry-run fails early; mixing old VBoxManage 5.x binaries on PATH with a 6.x install.","solutions":["Inspect the 'VirtualBox output:' block in the message for the concrete VBoxManage error","Run `VBoxManage import -n <extracted box .ovf>` by hand to reproduce and see the failure","Free disk space / fix permissions on the VirtualBox VMs directory if import reports write errors","Re-download the box (`vagrant box remove` then `vagrant up`)","Uninstall VirtualBox, reboot, reinstall the current 6.x release"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"out = `VBoxManage import -n /path/to/box/box.ovf 2>&1`\nabort 'VirtualBox import dry-run broken - reinstall VirtualBox' unless out.match?(/Suggested VM name \"/)","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Keep VirtualBox 6.x and Vagrant updated together","Check host disk space before importing large boxes","Validate boxes by importing them once via VBoxManage directly"],"tags":["virtualbox","vboxmanage","import","vm-name","driver-6-0"],"backgroundTag":"virtualbox-import-failed","analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}