r/openstack • u/Forodrim • 14d ago
change image of existing machine?
hi, is it possible to replace an image of an instance?
4
Upvotes
2
u/rackpathlabs 11d ago
one thing the rebuild answer does not cover, if the instance is boot from volume it depends on your api microversion. volume backed rebuild only landed in 2.93, so on an older cloud or with an older client the call just gets refused for those instances.
with 2.93 it does work, but it re-images the root volume in place, so whatever sits on that volume is gone, same as the ephemeral case. extra attached volumes are left alone. worth checking which of the two you have before trying it on something you care about.
-1
3
u/redfoobar 14d ago
When you chose to rebuild you can select the image you want to have. Off course make sure that if there is not any data on the disk but it will keep the same IP etc.