Can I upload a snapshot to Google Compute Engine?

Sorry if it's duplicated, I haven't found anything like this. I have my virtual machine running and have a snapshot already created, and now I want my snapshot somewhere else. Let's say download it to your computer, save it on another cloud product, or reuse it on another account. How can i do this? Thanks to

+5


source to share


2 answers


For my purposes, it was better to just create an image, save it to another secondary drive, and then send it from the VM to Google Storage.



This link helped me: https://cloud.google.com/compute/docs/creating-custom-image

+2


source


for those who are new to google, you cannot upload a snapshot directly, there is no such command, I didn't know why, but you have first go to images, then select create image based on the snapshot you want to upload then go to home page and create something called bucket and copy your bucket url. then export the image with the following command

gcloud alpha compute images export --destination-uri gs://yourbucket/yourimagename.vmdk  --image     yourImageName   --export-format vmdk  --project yourProjectID

      



finally go into your bucket, upload the image and attach it to VMware and Go * Note: you need to wait a while, maybe 30 minutes before you can load the exported image from the recycle bin and if you get an error try changing the settings shopping cart and make it public

Hope this answer will save one more time, it will take me one week to understand the magic and obscure documentation.

+1


source







All Articles