Avoid Reboot After Cloning Volume? [closed]

asked 2017-07-27 22:43:35 +0300

rholloway gravatar image

I've noticed that if I take a snapshot of a Windows volume and launch new instances based on that snapshot, everything works fine except after the first boot when launching, it almost immediately reboots the instance. After this second boot, it stays up.

I'm assuming this is a cloudbase cloud-init thing but not sure. If so, is it possible to get an image from a snapshot that won't reboot after the first boot?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by rholloway
close date 2017-07-28 01:50:45.805842


Found it. Added allow_reboot=false to configuration file on disk for cloudbase-init resolved.

rholloway gravatar imagerholloway ( 2017-07-28 01:50:20 +0300 )edit

The reason why a reboot is performed by cloudbase-init, is that Windows requires a reboot after changing the hostname. Disabling the hostname plugin avoids the reboot.

alexpilotti gravatar imagealexpilotti ( 2017-07-28 01:55:23 +0300 )edit