{"record":{"id":"67febc9e11f9a13a","repo":"hashicorp/vagrant","slug":"vagrant-was-instructed-to-configure-the-device-67febc","errorCode":null,"errorMessage":"Vagrant was instructed to configure the %{device} network device to\nbe managed by NetworkManager. However, the configured guest VM does\nnot have NetworkManager installed. To fix this error please remove\nthe `nm_controlled` setting from local Vagrantfile. If NetworkManager\nis required to manage the network devices, please use a box with\nNetworkManager installed.","messagePattern":"Vagrant was instructed to configure the %(.+?) network device to\nbe managed by NetworkManager\\. However, the configured guest VM does\nnot have NetworkManager installed\\. To fix this error please remove\nthe `nm_controlled` setting from local Vagrantfile\\. If NetworkManager\nis required to manage the network devices, please use a box with\nNetworkManager installed\\.","errorType":"exception","errorClass":"Vagrant::Errors::NetworkManagerNotInstalled","httpStatus":null,"severity":"error","filePath":"plugins/guests/redhat/cap/configure_networks.rb","lineNumber":71,"sourceCode":"              # Now check if the device is actively being managed by NetworkManager\n              nm_controlled = nm_controlled?(comm, network[:device])\n            end\n\n            if !extra_opts.key?(:nm_controlled)\n              extra_opts[:nm_controlled] = !!nm_controlled\n            end\n\n            extra_opts[:nm_controlled] = case extra_opts[:nm_controlled]\n                                      when true\n                                        \"yes\"\n                                      when false, nil\n                                        \"no\"\n                                      else\n                                        extra_opts[:nm_controlled].to_s\n                                      end\n\n            if extra_opts[:nm_controlled] == \"yes\" && !nmcli_installed\n              raise Vagrant::Errors::NetworkManagerNotInstalled, device: network[:device]\n            end\n\n            # Render a new configuration\n            entry = TemplateRenderer.render(\"guests/redhat/network_#{network[:type]}\",\n              options: extra_opts.merge(network),\n            )\n\n            # Upload the new configuration\n            remote_path = \"/tmp/vagrant-network-entry-#{network[:device]}-#{Time.now.to_i}-#{i}\"\n            Tempfile.open(\"vagrant-redhat-configure-networks\") do |f|\n              f.binmode\n              f.write(entry)\n              f.fsync\n              f.close\n              machine.communicate.upload(f.path, remote_path)\n            end\n\n            # Add the new interface and bring it back up","sourceCodeStart":53,"sourceCodeEnd":89,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/guests/redhat/cap/configure_networks.rb#L53-L89","documentation":"Error \"Vagrant was instructed to configure the %{device} network device to\nbe managed by NetworkManager. However, the configured guest VM does\nnot have NetworkManager installed. To fix this error please remove\nthe `nm_controlled` setting from local Vagrantfile. If NetworkManager\nis required to manage the network devices, please use a box with\nNetworkManager installed.\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at plugins/guests/redhat/cap/configure_networks.rb:71 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"}