{"record":{"id":"743acd5d2315e13d","repo":"hashicorp/vagrant","slug":"vagrant-was-instructed-to-configure-the-device-743acd","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/debian/cap/configure_networks.rb","lineNumber":73,"sourceCode":"                end\n                if network[:gateway]\n                  entry[\"gateway4\"] = network[:gateway]\n                end\n              end\n              e_nets[interfaces[network[:interface]]] = e_config\n            end\n          end\n\n          # By default, netplan expects the renderer to be systemd-networkd,\n          # but if any device is managed by NetworkManager, then we use that renderer\n          # ref: https://netplan.io/reference\n          if systemd_networkd?(comm)\n            renderer = \"networkd\"\n            ethernets.keys.each do |k|\n              if nm_controlled?(comm, k)\n                renderer = \"NetworkManager\"\n                if !nmcli?(comm)\n                  raise Vagrant::Errors::NetworkManagerNotInstalled, device: k\n                end\n                break\n              end\n            end\n          elsif nmcli?(comm)\n            renderer = \"NetworkManager\"\n          else\n            raise Vagrant::Errors::NetplanNoAvailableRenderers\n          end\n\n          np_config = {\"network\" => {\"version\" => NETPLAN_DEFAULT_VERSION,\n            \"renderer\" => renderer, \"ethernets\" => ethernets}}\n\n          remote_path = upload_tmp_file(comm, np_config.to_yaml)\n          dest_path = \"#{NETPLAN_DIRECTORY}/50-vagrant.yaml\"\n          comm.sudo([\"mv -f '#{remote_path}' '#{dest_path}'\",\n            \"chown root:root '#{dest_path}'\",\n            \"chmod 0644 '#{dest_path}'\",","sourceCodeStart":55,"sourceCodeEnd":91,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/guests/debian/cap/configure_networks.rb#L55-L91","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/debian/cap/configure_networks.rb:73 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"}