vagrant
vagrant copied to clipboard
reboot not working with el9 guest
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
-
vagrant init bento/rockylinux-9
orvagrant init bento/centos-stream-9
-
vagrant up
-
vagrant ssh -- 'sudo systemctl reboot'
is working as expected -
vagrant halt
-
vagrant package --output vagrant-el9-test.box
-
vagrant box add --name vagrant-el9-test ./vagrant-el9-test.box
- in new empty dir
vagrant init vagrant-el9-test
-
vagrant up
-
vagrant ssh -- 'sudo systemctl reboot'