{"id":9450,"date":"2020-07-04T12:48:08","date_gmt":"2020-07-04T12:48:08","guid":{"rendered":"http:\/\/govinddas.com\/?p=9450"},"modified":"2020-07-29T04:23:00","modified_gmt":"2020-07-29T04:23:00","slug":"move-vm-instance-projects-google-cloud-platform","status":"publish","type":"post","link":"https:\/\/govinddas.com\/index.php\/move-vm-instance-projects-google-cloud-platform\/","title":{"rendered":"move a VM instance between projects on Google Cloud Platform"},"content":{"rendered":"<section class=\"fa fb fc fd fe\">\n<div class=\"n p\">\n<div class=\"z ab ac ae af ff ah ai\">\n<p id=\"4a8a\" class=\"hf hg bj hh b hi hj hk hl hm hn ho hp hq hr hs ht hu hv hw hx fa ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Currently there is no one-line command to move a Linux VM instance between Google Cloud Platform projects, but I\u2019ve created an easy to follow step-by-step guide that you can use. (Note: This guide does not cover Windows.)<\/span><\/p>\n<h2 id=\"da47\" class=\"hy hz bj bi ia ib ic hk id ie hn if ig hq ih ii ht ij ik hw il ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Quick summary of steps needed<\/span><\/h2>\n<ul class=\"\">\n<li id=\"9fa1\" class=\"hf hg bj hh b hi im hk hl in hn ho io hq hr ip ht hu iq hw hx ir is it ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Detach the boot disk from the VM that you intend to move by deselecting \u201cDelete boot disk on instance delete\u201d and terminating the VM<\/span><\/li>\n<li id=\"67f4\" class=\"hf hg bj hh b hi iu hk hl iv hn ho iw hq hr ix ht hu iy hw hx ir is it ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Create an image from the detached boot disk<\/span><\/li>\n<li id=\"d955\" class=\"hf hg bj hh b hi iu hk hl iv hn ho iw hq hr ix ht hu iy hw hx ir is it ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Upload the image to Google Cloud Storage and share it with the new project<\/span><\/li>\n<li id=\"20e9\" class=\"hf hg bj hh b hi iu hk hl iv hn ho iw hq hr ix ht hu iy hw hx ir is it ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Create a custom image under the new project based on the image you uploaded to Google Cloud Storage<\/span><\/li>\n<li id=\"4997\" class=\"hf hg bj hh b hi iu hk hl iv hn ho iw hq hr ix ht hu iy hw hx ir is it ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Create a new VM instance under the new project based on the custom image<\/span><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/section>\n<hr class=\"iz ej ja jb by jc jd je jf jg jh ji\" \/>\n<section class=\"fa fb fc fd fe\">\n<div class=\"n p\">\n<div class=\"z ab ac ae af ff ah ai\">\n<h2 id=\"20e2\" class=\"hy hz bj bi ia ib ic hk id ie hn if ig hq ih ii ht ij ik hw il ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Detailed steps of moving a VM between projects<\/span><\/h2>\n<p id=\"259a\" class=\"hf hg bj hh b hi im hk hl in hn ho io hq hr ip ht hu iq hw hx fa ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\"><strong class=\"hh jj\">Deselect boot disk deletion (Important!)<\/strong>\u00a0and terminate the VM that you want to move (I recommend shutting down gracefully before termination)<\/span><\/p>\n<figure class=\"jl jm jn jo jp jq et eu paragraph-image\">\n<div class=\"jr js cd jt ai\">\n<div class=\"et eu jk\">\n<div class=\"jy r cd jz\">\n<div class=\"ka kb r\">\n<div class=\"cc ju s t u jv ai bv jw jx\"><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"s t u jv ai kc kd ao sd\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/60\/1*OCupCo4W1X--D3ofpvbofg.png?q=20\" width=\"1091\" height=\"216\" \/><\/span><\/div>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"qe sc s t u jv ai kf\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/1091\/1*OCupCo4W1X--D3ofpvbofg.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/552\/1*OCupCo4W1X--D3ofpvbofg.png 276w, https:\/\/miro.medium.com\/max\/1104\/1*OCupCo4W1X--D3ofpvbofg.png 552w, https:\/\/miro.medium.com\/max\/1280\/1*OCupCo4W1X--D3ofpvbofg.png 640w, https:\/\/miro.medium.com\/max\/1400\/1*OCupCo4W1X--D3ofpvbofg.png 700w\" width=\"1091\" height=\"216\" \/><\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/figure>\n<figure class=\"jl jm jn jo jp jq et eu paragraph-image\">\n<div class=\"et eu kg\">\n<div class=\"jy r cd jz\">\n<div class=\"kh kb r\">\n<div class=\"cc ju s t u jv ai bv jw jx\"><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"s t u jv ai kc kd ao sd\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/60\/1*qLOKr8ep5uIjKg8E527DaA.png?q=20\" width=\"651\" height=\"166\" \/><\/span><\/div>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"qe sc s t u jv ai kf\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/651\/1*qLOKr8ep5uIjKg8E527DaA.png\" sizes=\"auto, 651px\" srcset=\"https:\/\/miro.medium.com\/max\/552\/1*qLOKr8ep5uIjKg8E527DaA.png 276w, https:\/\/miro.medium.com\/max\/1104\/1*qLOKr8ep5uIjKg8E527DaA.png 552w, https:\/\/miro.medium.com\/max\/1280\/1*qLOKr8ep5uIjKg8E527DaA.png 640w, https:\/\/miro.medium.com\/max\/1302\/1*qLOKr8ep5uIjKg8E527DaA.png 651w\" width=\"651\" height=\"166\" \/><\/span><\/div>\n<\/div>\n<\/div>\n<\/figure>\n<p id=\"3d9c\" class=\"hf hg bj hh b hi hj hk hl hm hn ho hp hq hr hs ht hu hv hw hx fa ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Create a temporary disk in the same zone as the disk from your terminated VM. Make it large enough to fit your VM image (use at least twice the size of the persistent disk of your VM &#8211; larger means faster)<\/span><\/p>\n<figure class=\"jl jm jn jo jp jq et eu paragraph-image\">\n<div class=\"jr js cd jt ai\">\n<div class=\"et eu ki\">\n<div class=\"jy r cd jz\">\n<div class=\"kj kb r\">\n<div class=\"cc ju s t u jv ai bv jw jx\"><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"s t u jv ai kc kd ao sd\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/60\/1*AS_0r6maTh3XHqiq5AzW2A.png?q=20\" width=\"1231\" height=\"311\" \/><\/span><\/div>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"qe sc s t u jv ai kf\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/1231\/1*AS_0r6maTh3XHqiq5AzW2A.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/552\/1*AS_0r6maTh3XHqiq5AzW2A.png 276w, https:\/\/miro.medium.com\/max\/1104\/1*AS_0r6maTh3XHqiq5AzW2A.png 552w, https:\/\/miro.medium.com\/max\/1280\/1*AS_0r6maTh3XHqiq5AzW2A.png 640w, https:\/\/miro.medium.com\/max\/1400\/1*AS_0r6maTh3XHqiq5AzW2A.png 700w\" width=\"1231\" height=\"311\" \/><\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/figure>\n<p id=\"89fb\" class=\"hf hg bj hh b hi hj hk hl hm hn ho hp hq hr hs ht hu hv hw hx fa ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Create a VM instance with full access to Google Cloud Storage under the old project. Use the same zone the temporary and terminated VM disks are in. Don\u2019t attach the temporary and terminated VM disks yet.<\/span><\/p>\n<figure class=\"jl jm jn jo jp jq et eu paragraph-image\">\n<div class=\"jr js cd jt ai\">\n<div class=\"et eu kk\">\n<div class=\"jy r cd jz\">\n<div class=\"kl kb r\">\n<div class=\"cc ju s t u jv ai bv jw jx\"><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"s t u jv ai kc kd ao sd\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/56\/1*bURrw4cvjkYyGIIOyry6xA.png?q=20\" width=\"931\" height=\"981\" \/><\/span><\/div>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"qe sc s t u jv ai kf\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/931\/1*bURrw4cvjkYyGIIOyry6xA.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/552\/1*bURrw4cvjkYyGIIOyry6xA.png 276w, https:\/\/miro.medium.com\/max\/1104\/1*bURrw4cvjkYyGIIOyry6xA.png 552w, https:\/\/miro.medium.com\/max\/1280\/1*bURrw4cvjkYyGIIOyry6xA.png 640w, https:\/\/miro.medium.com\/max\/1400\/1*bURrw4cvjkYyGIIOyry6xA.png 700w\" width=\"931\" height=\"981\" \/><\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/figure>\n<figure class=\"jl jm jn jo jp jq et eu paragraph-image\">\n<div class=\"jr js cd jt ai\">\n<div class=\"et eu km\">\n<div class=\"jy r cd jz\">\n<div class=\"kn kb r\">\n<div class=\"cc ju s t u jv ai bv jw jx\"><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"s t u jv ai kc kd ao sd\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/30\/1*--3ruSGil41jMPpb57j2Ow.png?q=20\" width=\"956\" height=\"1926\" \/><\/span><\/div>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"qe sc s t u jv ai kf\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/956\/1*--3ruSGil41jMPpb57j2Ow.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/552\/1*--3ruSGil41jMPpb57j2Ow.png 276w, https:\/\/miro.medium.com\/max\/1104\/1*--3ruSGil41jMPpb57j2Ow.png 552w, https:\/\/miro.medium.com\/max\/1280\/1*--3ruSGil41jMPpb57j2Ow.png 640w, https:\/\/miro.medium.com\/max\/1400\/1*--3ruSGil41jMPpb57j2Ow.png 700w\" width=\"956\" height=\"1926\" \/><\/span><\/div>\n<\/div>\n<\/div>\n<\/div><figcaption class=\"ko jd ev et eu kp kq bi ej cb bk bn\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Select Full access to Storage<\/span><\/figcaption><\/figure>\n<p id=\"10c6\" class=\"hf hg bj hh b hi hj hk hl hm hn ho hp hq hr hs ht hu hv hw hx fa ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Attach the temporary disk and the disk from your terminated VM to the running VM we just created for the image preparation. This attaches the disks after boot and avoids boot complications.<\/span><\/p>\n<figure class=\"jl jm jn jo jp jq et eu paragraph-image\">\n<div class=\"jr js cd jt ai\">\n<div class=\"et eu kr\">\n<div class=\"jy r cd jz\">\n<div class=\"ks kb r\">\n<div class=\"cc ju s t u jv ai bv jw jx\"><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"s t u jv ai kc kd ao sd\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/60\/1*YBS-Wd2TGKxg07YHmmI8Ng.png?q=20\" width=\"1151\" height=\"326\" \/><\/span><\/div>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"qe sc s t u jv ai kf\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/1151\/1*YBS-Wd2TGKxg07YHmmI8Ng.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/552\/1*YBS-Wd2TGKxg07YHmmI8Ng.png 276w, https:\/\/miro.medium.com\/max\/1104\/1*YBS-Wd2TGKxg07YHmmI8Ng.png 552w, https:\/\/miro.medium.com\/max\/1280\/1*YBS-Wd2TGKxg07YHmmI8Ng.png 640w, https:\/\/miro.medium.com\/max\/1400\/1*YBS-Wd2TGKxg07YHmmI8Ng.png 700w\" width=\"1151\" height=\"326\" \/><\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/figure>\n<p id=\"d8c9\" class=\"hf hg bj hh b hi hj hk hl hm hn ho hp hq hr hs ht hu hv hw hx fa ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">SSH into the preparation VM, format and mount the temporary disk<\/span><\/p>\n<figure class=\"jl jm jn jo jp jq et eu paragraph-image\">\n<div class=\"jr js cd jt ai\">\n<div class=\"et eu kt\">\n<div class=\"jy r cd jz\">\n<div class=\"ku kb r\">\n<div class=\"cc ju s t u jv ai bv jw jx\"><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"s t u jv ai kc kd ao sd\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/60\/1*sHmXV161rTmx8BEzlltwYg.png?q=20\" width=\"1401\" height=\"371\" \/><\/span><\/div>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"qe sc s t u jv ai kf\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/1401\/1*sHmXV161rTmx8BEzlltwYg.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/552\/1*sHmXV161rTmx8BEzlltwYg.png 276w, https:\/\/miro.medium.com\/max\/1104\/1*sHmXV161rTmx8BEzlltwYg.png 552w, https:\/\/miro.medium.com\/max\/1280\/1*sHmXV161rTmx8BEzlltwYg.png 640w, https:\/\/miro.medium.com\/max\/1400\/1*sHmXV161rTmx8BEzlltwYg.png 700w\" width=\"1401\" height=\"371\" \/><\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/figure>\n<pre class=\"jl jm jn jo jp kv kw dy\"><span id=\"700e\" class=\"ct hy hz bj kx b cb ky kz r la\" style=\"color: #000000;\" data-selectable-paragraph=\"\">$ \/usr\/share\/google\/safe_format_and_mount -m \"mkfs.ext4 -F\" \/dev\/sdb \/mnt\/temp\n$ cd \/mnt\/temp<\/span><\/pre>\n<p id=\"33a7\" class=\"hf hg bj hh b hi hj hk hl hm hn ho hp hq hr hs ht hu hv hw hx fa ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Use\u00a0<a class=\"cg dj lb lc ld le\" style=\"color: #000000;\" href=\"https:\/\/github.com\/GoogleCloudPlatform\/compute-image-packages\" target=\"_blank\" rel=\"noopener nofollow noreferrer\"><em class=\"lf\">gcimagebundle<\/em><\/a>\u00a0to create a compressed image of the boot disk from your terminated VM. Once that is done upload it to a bucket in Google Cloud Storage with\u00a0<em class=\"lf\">gsutil.\u00a0<\/em>Jump to the next step for instructions on how to create a bucket in Google Cloud Storage for the upload.<\/span><\/p>\n<pre class=\"jl jm jn jo jp kv kw dy\"><span id=\"7e72\" class=\"ct hy hz bj kx b cb ky kz r la\" style=\"color: #000000;\" data-selectable-paragraph=\"\">$ cd \/mnt\/temp\n$ sudo gcimagebundle -d \/dev\/sdc -r \/mnt\/old-vm-disk -o \/mnt\/temp\/ --log_file=\/mnt\/temp\/image-create.log\n> Created tar.gz file at \/mnt\/temp\/62a70588477be42caf45c5c5c58a7e59a8aa410e.image.tar.gz\n$ gsutil cp 62a70588477be42caf45c5c5c58a7e59a8aa410e.image.tar.gz gs:\/\/vm-transfer\n> Uploading   ...588477be42caf45c5c5c58a7e59a8aa410e.image.tar.gz: 235.73 MiB\/235.73 MiB<\/span><\/pre>\n<p id=\"5621\" class=\"hf hg bj hh b hi hj hk hl hm hn ho hp hq hr hs ht hu hv hw hx fa ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">While\u00a0<em class=\"lf\">gcimagebundle<\/em>\u00a0is running create a Google Cloud Storage bucket in your old project where the preparation VM is running<\/span><\/p>\n<figure class=\"jl jm jn jo jp jq et eu paragraph-image\">\n<div class=\"jr js cd jt ai\">\n<div class=\"et eu lg\">\n<div class=\"jy r cd jz\">\n<div class=\"lh kb r\">\n<div class=\"cc ju s t u jv ai bv jw jx\"><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"s t u jv ai kc kd ao sd\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/60\/1*Yya0zuGfIhMN3eEPWQJ_Iw.png?q=20\" width=\"996\" height=\"701\" \/><\/span><\/div>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"qe sc s t u jv ai kf\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/996\/1*Yya0zuGfIhMN3eEPWQJ_Iw.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/552\/1*Yya0zuGfIhMN3eEPWQJ_Iw.png 276w, https:\/\/miro.medium.com\/max\/1104\/1*Yya0zuGfIhMN3eEPWQJ_Iw.png 552w, https:\/\/miro.medium.com\/max\/1280\/1*Yya0zuGfIhMN3eEPWQJ_Iw.png 640w, https:\/\/miro.medium.com\/max\/1400\/1*Yya0zuGfIhMN3eEPWQJ_Iw.png 700w\" width=\"996\" height=\"701\" \/><\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/figure>\n<p id=\"d3e0\" class=\"hf hg bj hh b hi hj hk hl hm hn ho hp hq hr hs ht hu hv hw hx fa ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Make the Google Cloud Storage Object accessible to you in your new project by adding your email to the object permissions<\/span><\/p>\n<figure class=\"jl jm jn jo jp jq et eu paragraph-image\">\n<div class=\"jr js cd jt ai\">\n<div class=\"et eu li\">\n<div class=\"jy r cd jz\">\n<div class=\"lj kb r\">\n<div class=\"cc ju s t u jv ai bv jw jx\"><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"s t u jv ai kc kd ao sd\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/60\/1*2oiEXCcj9DoaLj_N_EA8Qg.png?q=20\" width=\"1526\" height=\"126\" \/><\/span><\/div>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"qe sc s t u jv ai kf\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/1526\/1*2oiEXCcj9DoaLj_N_EA8Qg.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/552\/1*2oiEXCcj9DoaLj_N_EA8Qg.png 276w, https:\/\/miro.medium.com\/max\/1104\/1*2oiEXCcj9DoaLj_N_EA8Qg.png 552w, https:\/\/miro.medium.com\/max\/1280\/1*2oiEXCcj9DoaLj_N_EA8Qg.png 640w, https:\/\/miro.medium.com\/max\/1400\/1*2oiEXCcj9DoaLj_N_EA8Qg.png 700w\" width=\"1526\" height=\"126\" \/><\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/figure>\n<figure class=\"jl jm jn jo jp jq et eu paragraph-image\">\n<div class=\"jr js cd jt ai\">\n<div class=\"et eu lk\">\n<div class=\"jy r cd jz\">\n<div class=\"ll kb r\">\n<div class=\"cc ju s t u jv ai bv jw jx\"><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"s t u jv ai kc kd ao sd\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/60\/1*cDqO3_5fmWYknRhgeTHyIw.png?q=20\" width=\"936\" height=\"651\" \/><\/span><\/div>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"qe sc s t u jv ai kf\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/936\/1*cDqO3_5fmWYknRhgeTHyIw.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/552\/1*cDqO3_5fmWYknRhgeTHyIw.png 276w, https:\/\/miro.medium.com\/max\/1104\/1*cDqO3_5fmWYknRhgeTHyIw.png 552w, https:\/\/miro.medium.com\/max\/1280\/1*cDqO3_5fmWYknRhgeTHyIw.png 640w, https:\/\/miro.medium.com\/max\/1400\/1*cDqO3_5fmWYknRhgeTHyIw.png 700w\" width=\"936\" height=\"651\" \/><\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/figure>\n<p id=\"56bf\" class=\"hf hg bj hh b hi hj hk hl hm hn ho hp hq hr hs ht hu hv hw hx fa ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Create a custom image from the Google Cloud Storage object in your new project<\/span><\/p>\n<figure class=\"jl jm jn jo jp jq et eu paragraph-image\">\n<div class=\"jr js cd jt ai\">\n<div class=\"et eu lm\">\n<div class=\"jy r cd jz\">\n<div class=\"ln kb r\">\n<div class=\"cc ju s t u jv ai bv jw jx\"><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"s t u jv ai kc kd ao sd\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/60\/1*ATZUNhn2NWSCr_vG9WCpIw.png?q=20\" width=\"791\" height=\"226\" \/><\/span><\/div>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"qe sc s t u jv ai kf\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/791\/1*ATZUNhn2NWSCr_vG9WCpIw.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/552\/1*ATZUNhn2NWSCr_vG9WCpIw.png 276w, https:\/\/miro.medium.com\/max\/1104\/1*ATZUNhn2NWSCr_vG9WCpIw.png 552w, https:\/\/miro.medium.com\/max\/1280\/1*ATZUNhn2NWSCr_vG9WCpIw.png 640w, https:\/\/miro.medium.com\/max\/1400\/1*ATZUNhn2NWSCr_vG9WCpIw.png 700w\" width=\"791\" height=\"226\" \/><\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/figure>\n<figure class=\"jl jm jn jo jp jq et eu paragraph-image\">\n<div class=\"jr js cd jt ai\">\n<div class=\"et eu kk\">\n<div class=\"jy r cd jz\">\n<div class=\"lo kb r\">\n<div class=\"cc ju s t u jv ai bv jw jx\"><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"s t u jv ai kc kd ao sd\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/60\/1*l1azedT5luaO9jNDXzNxjg.png?q=20\" width=\"931\" height=\"736\" \/><\/span><\/div>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"qe sc s t u jv ai kf\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/931\/1*l1azedT5luaO9jNDXzNxjg.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/552\/1*l1azedT5luaO9jNDXzNxjg.png 276w, https:\/\/miro.medium.com\/max\/1104\/1*l1azedT5luaO9jNDXzNxjg.png 552w, https:\/\/miro.medium.com\/max\/1280\/1*l1azedT5luaO9jNDXzNxjg.png 640w, https:\/\/miro.medium.com\/max\/1400\/1*l1azedT5luaO9jNDXzNxjg.png 700w\" width=\"931\" height=\"736\" \/><\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/figure>\n<figure class=\"jl jm jn jo jp jq et eu paragraph-image\">\n<div class=\"jr js cd jt ai\">\n<div class=\"et eu lp\">\n<div class=\"jy r cd jz\">\n<div class=\"lq kb r\">\n<div class=\"cc ju s t u jv ai bv jw jx\"><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"s t u jv ai kc kd ao sd\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/60\/1*SMdkEyviGLjNzt8Xavo84A.png?q=20\" width=\"1156\" height=\"246\" \/><\/span><\/div>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"qe sc s t u jv ai kf\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/1156\/1*SMdkEyviGLjNzt8Xavo84A.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/552\/1*SMdkEyviGLjNzt8Xavo84A.png 276w, https:\/\/miro.medium.com\/max\/1104\/1*SMdkEyviGLjNzt8Xavo84A.png 552w, https:\/\/miro.medium.com\/max\/1280\/1*SMdkEyviGLjNzt8Xavo84A.png 640w, https:\/\/miro.medium.com\/max\/1400\/1*SMdkEyviGLjNzt8Xavo84A.png 700w\" width=\"1156\" height=\"246\" \/><\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/figure>\n<p id=\"9111\" class=\"hf hg bj hh b hi hj hk hl hm hn ho hp hq hr hs ht hu hv hw hx fa ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Create a VM instance from your custom image and voil\u00e0! \u263a<\/span><\/p>\n<figure class=\"jl jm jn jo jp jq et eu paragraph-image\">\n<div class=\"jr js cd jt ai\">\n<div class=\"et eu lk\">\n<div class=\"jy r cd jz\">\n<div class=\"lr kb r\">\n<div class=\"cc ju s t u jv ai bv jw jx\"><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"s t u jv ai kc kd ao sd\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/48\/1*ong7eVmzdvjok8IiXkQnUg.png?q=20\" width=\"936\" height=\"1171\" \/><\/span><\/div>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"qe sc s t u jv ai kf\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/max\/936\/1*ong7eVmzdvjok8IiXkQnUg.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/552\/1*ong7eVmzdvjok8IiXkQnUg.png 276w, https:\/\/miro.medium.com\/max\/1104\/1*ong7eVmzdvjok8IiXkQnUg.png 552w, https:\/\/miro.medium.com\/max\/1280\/1*ong7eVmzdvjok8IiXkQnUg.png 640w, https:\/\/miro.medium.com\/max\/1400\/1*ong7eVmzdvjok8IiXkQnUg.png 700w\" width=\"936\" height=\"1171\" \/><\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/figure>\n<p id=\"fec5\" class=\"hf hg bj hh b hi hj hk hl hm hn ho hp hq hr hs ht hu hv hw hx fa ct\" data-selectable-paragraph=\"\"><span style=\"color: #000000;\">Last but not least, cleanup all the resource you don\u2019t need anymore. Once you\u2019ve verified that the move of your VM was successful you can delete the temporary disk, the disk from the terminated VM, the preparation VM and the bucket in Google Cloud Storage from the old project.<\/span><\/p>\n<\/div>\n<\/div>\n<\/section>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_9450\" class=\"pvc_stats all  \" data-element-id=\"9450\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/govinddas.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Currently there is no one-line command to move a Linux VM instance between Google Cloud Platform projects, but I\u2019ve created an easy to follow step-by-step guide that you can use. (Note: This guide does not cover Windows.) Quick summary of steps needed Detach the boot disk from the VM that you intend to move by deselecting \u201cDelete boot disk on instance delete\u201d and terminating the VM Create an image from the detached boot disk Upload the image to Google Cloud&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/govinddas.com\/index.php\/move-vm-instance-projects-google-cloud-platform\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_9450\" class=\"pvc_stats all  \" data-element-id=\"9450\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/govinddas.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"aside","meta":{"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[1066,1061],"tags":[],"class_list":["post-9450","post","type-post","status-publish","format-aside","hentry","category-cloud-storage","category-online-work","post_format-post-format-aside"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/posts\/9450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/comments?post=9450"}],"version-history":[{"count":2,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/posts\/9450\/revisions"}],"predecessor-version":[{"id":9454,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/posts\/9450\/revisions\/9454"}],"wp:attachment":[{"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/media?parent=9450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/categories?post=9450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/tags?post=9450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}