{"record":{"id":"066076652988b0c7","repo":"hashicorp/vagrant","slug":"dvd-d-name-no-longer-exists-in-vagrant-con","errorCode":null,"errorMessage":"DVD '#{d[\"name\"]}' no longer exists in Vagrant config. Removing medium from guest...","messagePattern":"DVD '#(.+?)' no longer exists in Vagrant config\\. Removing medium from guest\\.\\.\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugins/providers/virtualbox/cap/cleanup_disks.rb","lineNumber":69,"sourceCode":"              end\n\n              machine.provider.driver.close_medium(d[\"uuid\"])\n            end\n          end\n        end\n\n        # @param [Vagrant::Machine] machine\n        # @param [VagrantPlugins::Kernel_V2::VagrantConfigDisk] defined_dvds\n        # @param [Array<Hash>] dvd_meta - An array of all the previously defined dvds from the last configure_disk action\n        def self.handle_cleanup_dvd(machine, defined_dvds, dvd_meta)\n          raise TypeError, \"Expected `Array` but received `#{dvd_meta.class}`\" if !dvd_meta.is_a?(Array)\n          dvd_meta.each do |d|\n            dsk = defined_dvds.select { |dk| dk.name == d[\"name\"] }\n            if !dsk.empty?\n              next\n            else\n              LOGGER.warn(\"Found dvd not in Vagrantfile config: '#{d[\"name\"]}'. Removing dvd from guest #{machine.name}\")\n              machine.ui.warn(\"DVD '#{d[\"name\"]}' no longer exists in Vagrant config. Removing medium from guest...\", prefix: true)\n\n              storage_controllers = machine.provider.driver.read_storage_controllers\n              controller = storage_controllers.get_controller(d[\"controller\"])\n              attachment = controller.get_attachment(uuid: d[\"uuid\"])\n\n              if !attachment\n                LOGGER.warn(\"DVD '#{d[\"name\"]}' not attached to guest, but still exists.\")\n              else\n                machine.provider.driver.remove_disk(controller.name, attachment[:port], attachment[:device])\n              end\n            end\n          end\n        end\n      end\n    end\n  end\nend\n","sourceCodeStart":51,"sourceCodeEnd":87,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/providers/virtualbox/cap/cleanup_disks.rb#L51-L87","documentation":"Error \"DVD '#{d[\"name\"]}' no longer exists in Vagrant config. Removing medium from guest...\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at plugins/providers/virtualbox/cap/cleanup_disks.rb:69 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}