{"record":{"id":"0a4d217093329728","repo":"hashicorp/vagrant","slug":"failed-to-mount-folders-in-linux-guest-this-is-us","errorCode":null,"errorMessage":"Failed to mount folders in Linux guest. This is usually because\nthe \"vboxsf\" file system is not available. Please verify that\nthe guest additions are properly installed in the guest and\ncan work properly. The command attempted was:\n\n%{command}\n\nThe error output from the last command was:\n\n%{output}","messagePattern":"Failed to mount folders in Linux guest\\. This is usually because\nthe \"vboxsf\" file system is not available\\. Please verify that\nthe guest additions are properly installed in the guest and\ncan work properly\\. The command attempted was:\n\n%(.+?)\n\nThe error output from the last command was:\n\n%(.+?)","errorType":"exception","errorClass":"Vagrant::Errors::LinuxMountFailed","httpStatus":null,"severity":"error","filePath":"plugins/guests/linux/cap/mount_smb_shared_folder.rb","lineNumber":69,"sourceCode":"#{domain ? \"domain=#{domain}\" : \"\"}\nEOF\nchmod 0600 /etc/smb_creds_#{name}\nSCRIPT\n\n          # Attempt to mount the folder. We retry here a few times because\n          # it can fail early on.\n          begin\n            retryable(on: Vagrant::Errors::LinuxMountFailed, tries: 10, sleep: 2) do\n              no_such_device = false\n              stderr = \"\"\n              status = machine.communicate.sudo(mount_command, error_check: false) do |type, data|\n                if type == :stderr\n                  no_such_device = true if data =~ /No such device/i\n                  stderr += data.to_s\n                end\n              end\n              if status != 0 || no_such_device\n                raise Vagrant::Errors::LinuxMountFailed,\n                  command: mount_command,\n                  output: stderr\n              end\n            end\n          ensure\n            # Always remove credentials file after mounting attempts\n            # have been completed\n            if !machine.config.vm.allow_fstab_modification\n              machine.communicate.sudo(\"rm /etc/smb_creds_#{name}\")\n            end\n          end\n\n          emit_upstart_notification(machine, expanded_guest_path)\n        end\n\n        def self.display_mfsymlinks_warning(env)\n          d_file = env.data_dir.join(\"mfsymlinks_warning\")\n          if !d_file.exist?","sourceCodeStart":51,"sourceCodeEnd":87,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/guests/linux/cap/mount_smb_shared_folder.rb#L51-L87","documentation":"Error \"Failed to mount folders in Linux guest. This is usually because\nthe \"vboxsf\" file system is not available. Please verify that\nthe guest additions are properly installed in the guest and\ncan work properly. The command attempted was:\n\n%{command}\n\nThe error output from the last command was:\n\n%{output}\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at plugins/guests/linux/cap/mount_smb_shared_folder.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"}