Images and templates
Edited
Label images by their contents and a date, so no one needs to guess. Output printed below comes from hare with the stock settings.
Before You Begin
- Editor rights in the project you work in
harefrom the last few months- A co-worker who can review the change
Steps
-
01
Clean Up the Machine
Remove host keys, command history and secrets from the node, then power it down.
-
02
Make the Image
Save the image with
hare image new --from node1 --name golden. -
03
Start from It
hare server new node2 --image goldenboots a copy; check that your services run.
hare server stop node1
hare image new --from node1 --name golden
hare image list
hare server new node2 --image golden
Shutting down the machine before you make the image produces a consistent disk; a running node works too but might need a fsck run.
Check the Result
The new image becomes usable once hare image list displays it as ready; one still marked pending is still being written.
Going Back
Removing an image with hare image rm leaves alone the machines already started from it.