{"record":{"id":"774ee20f34689228","repo":"hashicorp/vagrant","slug":"vagrant-was-instructed-to-configure-the-device","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/alt/cap/configure_networks.rb","lineNumber":51,"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            template_options = extra_opts.merge(network)\n\n            # ALT expects netmasks to be in the CIDR notation, but users may\n            # specify IPV4 netmasks like \"255.255.255.0\". This magic converts\n            # the netmask to the proper value.\n            if template_options[:netmask] && template_options[:netmask].to_s.include?(\".\")\n              template_options[:netmask] = (32-Math.log2((IPAddr.new(template_options[:netmask], Socket::AF_INET).to_i^0xffffffff)+1)).to_i\n            end\n\n            options_entry = TemplateRenderer.render(\"guests/alt/network_#{network[:type]}\", options: template_options)\n\n            # Upload the new configuration\n            options_remote_path = \"/tmp/vagrant-network-entry-#{network[:device]}-#{Time.now.to_i}-#{i}\"\n            ipv4_address_remote_path = \"/tmp/vagrant-network-ipv4-address-entry-#{network[:device]}-#{Time.now.to_i}-#{i}\"\n            ipv4_route_remote_path = \"/tmp/vagrant-network-ipv4-route-entry-#{network[:device]}-#{Time.now.to_i}-#{i}\"","sourceCodeStart":33,"sourceCodeEnd":69,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/guests/alt/cap/configure_networks.rb#L33-L69","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/alt/cap/configure_networks.rb:51 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"}