hashicorp / nomad-driver-virt

Mozilla Public License 2.0
8 stars 1 forks source link

rebooting VM destroys it entirely #66

Closed tgross closed 3 weeks ago

tgross commented 3 weeks ago

If you run sudo systemctl reboot inside a VM deployed with this driver, the task is failed and restarts (if configured with an appropriate restart block). But the restarted task is completely new. The original domain is destroyed and the new domain gets a new DHCP lease, if you've thin-provisioned a disk that'll be replaced, etc.

Maybe this is ok for some workloads, but it feels like surprising behavior for VMs (vs containers, which we expect to be ephemeral). Losing the disk is unfortunate though.

Juanadelacuesta commented 3 weeks ago

This was a configurable behaviour that was changed here