{"record":{"id":"56fda2e132425cab","repo":"hashicorp/vagrant","slug":"guest-specific-operations-were-attempted-on-a-mach","errorCode":null,"errorMessage":"Guest-specific operations were attempted on a machine that is not\nready for guest communication. This should not happen and a bug\nshould be reported.","messagePattern":"Guest-specific operations were attempted on a machine that is not\nready for guest communication\\. This should not happen and a bug\nshould be reported\\.","errorType":"exception","errorClass":"Vagrant::Errors::MachineGuestNotReady","httpStatus":null,"severity":"error","filePath":"lib/vagrant/machine.rb","lineNumber":279,"sourceCode":"    def communicate\n      if !@communicator\n        requested  = @config.vm.communicator\n        requested ||= :ssh\n        klass = Vagrant.plugin(\"2\").manager.communicators[requested]\n        raise Errors::CommunicatorNotFound, comm: requested.to_s if !klass\n        @communicator = klass.new(self)\n      end\n\n      @communicator\n    end\n\n    # Returns a guest implementation for this machine. The guest implementation\n    # knows how to do guest-OS specific tasks, such as configuring networks,\n    # mounting folders, etc.\n    #\n    # @return [Guest]\n    def guest\n      raise Errors::MachineGuestNotReady if !communicate.ready?\n      @guest.detect! if !@guest.ready?\n      @guest\n    end\n\n    # This sets the unique ID associated with this machine. This will\n    # persist this ID so that in the future Vagrant will be able to find\n    # this machine again. The unique ID must be absolutely unique to the\n    # virtual machine, and can be used by providers for finding the\n    # actual machine associated with this instance.\n    #\n    # **WARNING:** Only providers should ever use this method.\n    #\n    # @param [String] value The ID.\n    def id=(value)\n      @logger.info(\"New machine ID: #{value.inspect}\")\n\n      id_file = nil\n      if @data_dir","sourceCodeStart":261,"sourceCodeEnd":297,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/lib/vagrant/machine.rb#L261-L297","documentation":"Error \"Guest-specific operations were attempted on a machine that is not\nready for guest communication. This should not happen and a bug\nshould be reported.\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at lib/vagrant/machine.rb:279 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"}