hashicorp / vagrant

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

reboot not working with el9 guest #13267

Open h-haaks opened 9 months ago

h-haaks commented 9 months ago

Reboot seem to be failing on el9 nodes started using a vagrant packaged box. When running systemctl reboot the node OS seems to shutdown but never reboot.

Expected behavior

vagrant ssh -- 'sudo systemctl reboot' should reboot the node vagrant reload should do a graceful shutdown and bring the node up

Actual behavior

Node get stuck in shutdown and never reboot. With vagrant reload a forced shutdown is needed

Reproduction information

Vagrant version

2.3.7

Virtualbox version

7.0.10

Host operating system

Linux abc 6.2.0-34-generic #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 13:12:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Guest operating system

rockylinux 9 or centos 9

Steps to reproduce

  1. vagrant init bento/rockylinux-9 or vagrant init bento/centos-stream-9
  2. vagrant up
  3. vagrant ssh -- 'sudo systemctl reboot' is working as expected
  4. vagrant halt
  5. vagrant package --output vagrant-el9-test.box
  6. vagrant box add --name vagrant-el9-test ./vagrant-el9-test.box
  7. in new empty dir vagrant init vagrant-el9-test
  8. vagrant up
  9. vagrant ssh -- 'sudo systemctl reboot'