Created
September 24, 2021 16:32
-
-
Save wingsum93/79f563823e7ba36a23c676562e643867 to your computer and use it in GitHub Desktop.
Transfer google vm image between different account
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcloud alpha compute images export --destination-uri gs://yourbucket/yourimagename.vmdk --image yourImageName --export-format vmdk --project yourProjectID | |
gcloud alpha compute images export --destination-uri gs://j111-cloud/vmold.vmdk --image j-image --export-format vmdk --project calendardate-1618304432238 | |
gsutil cp gs://j111-cloud/vmold.vmdk gs://james-2021/vmnew.vmdk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment