hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.21k stars 4.43k forks source link

`vagrant halt` throws NoMethodError #13405

Open fekoch opened 4 months ago

fekoch commented 4 months ago

Debug output

https://gist.github.com/fekoch/bfa850f213827ea1a697a4cf25633a0f

Expected behavior

vagrant halt should halt the machine without errors.

Actual behavior

vagrant halt throws an error:

/usr/share/gems/gems/net-ssh-7.1.0/lib/net/ssh/buffered_io.rb:65:in `block in fill': undefined method `length' for nil (NoMethodError)

        debug { "read #{data.length} bytes" }
                            ^^^^^^

Reproduction information

Vagrant version

Vagrant 2.3.4

Host operating system

fedora 40 (Kernel 6.8.10-300.fc40x86_64)

Guest operating system

Ubuntu 23.10

Steps to reproduce

  1. vagrant up --provider libvirt
  2. vagrant halt

Vagrantfile

Vagrant.configure("2") do |config|
  config.vm.box = "generic/ubuntu2310"
end