Vagrant Plugin that implement Reboot guest capability for Linux. https://www.vagrantup.com/docs/provisioning/shell.html#reboot
This plugin is developed under vagrant 2.2.4
vagrant plugin install vagrant_reboot_linux
Vagrant.configure('2') do |config|
config.vm.box = 'ubuntu/bionic64'
config.vm.provision 'shell',
reboot: true,
inline: 'echo BRFORE_REBOOT'
config.vm.provision 'shell',
inline: 'echo AFTER_REBOOT'
end