Reputation: 827
We are trying to create a horizontaly Scalable web service via Google Compute Engine.
In order to do so, we have created an Instance Template and a Group of Instances based on this new template. The group of instances create a new virtual machine (we chose Debian) in which we can install our NodeJs application and other stuff.
We unlucky found out that when the VM is turned off everything inside the VM is erased. We would like to create a Snapshot or a Disk Image in order to avoid completely rebuild an instance from sketch, but we encountered two problems:
How can we get to the solution with those tools? Thanks
Upvotes: 0
Views: 56
Reputation: 81346
Although it is recommended to shutdown your VM instance before creating an image, it is possible to create an image of a running system.
sudo sync
. Windows: Sysinternals wrote Sync
which will help. Sysinternals's SyncCREATE IMAGE
.Keep instance running (not recommended)
.Note: You can also create a disk snapshot.
Upvotes: 0