{"id":11121,"date":"2024-01-17T06:00:24","date_gmt":"2024-01-16T20:00:24","guid":{"rendered":"https:\/\/www.penguinpunk.net\/blog\/?p=11121"},"modified":"2024-01-16T14:03:42","modified_gmt":"2024-01-16T04:03:42","slug":"vmware-cloud-disaster-recovery-using-a-script-vm","status":"publish","type":"post","link":"https:\/\/www.penguinpunk.net\/blog\/vmware-cloud-disaster-recovery-using-a-script-vm\/","title":{"rendered":"VMware Cloud Disaster Recovery &#8211; Using A Script VM"},"content":{"rendered":"<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2019\/11\/VMware-Logo-200x200-01-1024x1024.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8656 size-medium\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2019\/11\/VMware-Logo-200x200-01-1024x1024-300x76.png\" alt=\"\" width=\"300\" height=\"76\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2019\/11\/VMware-Logo-200x200-01-1024x1024-300x76.png 300w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2019\/11\/VMware-Logo-200x200-01-1024x1024-768x194.png 768w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2019\/11\/VMware-Logo-200x200-01-1024x1024.png 1012w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2023\/10\/0-Icon-VCDR-1-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11038\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2023\/10\/0-Icon-VCDR-1-1.png\" alt=\"\" width=\"244\" height=\"228\" \/><\/a><\/p>\n<p>This is a quick post covering the steps required to configure a script VM for use in a recovery plan with <a href=\"https:\/\/www.vmware.com\/au\/products\/cloud-disaster-recovery.html\">VMware Cloud Disaster Recovery (VCDR)<\/a>. Why would you want to do this? You might be running a recovery for a Linux VM and you need to run a script to update the DNS settings of the VM once it&#8217;s powered on at another site. Or you might have a site-specific application that needs to be installed. Whatever. The point is that VCDR gives you that ability to do that via the Script VM. You can read the documentation on the feature <a href=\"https:\/\/docs.vmware.com\/en\/VMware-Cloud-Disaster-Recovery\/services\/vmware-cloud-disaster-recovery\/GUID-D9BB7FED-FB96-41A6-9028-BCAD6CBE20F5.html\">here<\/a>.<\/p>\n<p>Firstly, you configure the Script VM as part of the Recovery Plan creation process. Specify the name of the VM and the vCenter it&#8217;s hosted on.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/1.VCDR_Script_Screenshot-2023-10-17-at-3.53.20-pm.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11122 size-large\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/1.VCDR_Script_Screenshot-2023-10-17-at-3.53.20-pm-1024x821.png\" alt=\"\" width=\"1024\" height=\"821\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/1.VCDR_Script_Screenshot-2023-10-17-at-3.53.20-pm-1024x821.png 1024w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/1.VCDR_Script_Screenshot-2023-10-17-at-3.53.20-pm-300x241.png 300w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/1.VCDR_Script_Screenshot-2023-10-17-at-3.53.20-pm-768x616.png 768w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/1.VCDR_Script_Screenshot-2023-10-17-at-3.53.20-pm-1536x1232.png 1536w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/1.VCDR_Script_Screenshot-2023-10-17-at-3.53.20-pm.png 1808w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Under Recovery steps, click on Add Step to add a step to the recovery process.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/2.VCDR_Script_Screenshot-2023-10-17-at-3.53.29-pm.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11123 size-large\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/2.VCDR_Script_Screenshot-2023-10-17-at-3.53.29-pm-1024x821.png\" alt=\"\" width=\"1024\" height=\"821\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/2.VCDR_Script_Screenshot-2023-10-17-at-3.53.29-pm-1024x821.png 1024w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/2.VCDR_Script_Screenshot-2023-10-17-at-3.53.29-pm-300x241.png 300w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/2.VCDR_Script_Screenshot-2023-10-17-at-3.53.29-pm-768x616.png 768w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/2.VCDR_Script_Screenshot-2023-10-17-at-3.53.29-pm-1536x1232.png 1536w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/2.VCDR_Script_Screenshot-2023-10-17-at-3.53.29-pm.png 1808w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>When you add the step, you&#8217;ll want to add an action for the post-recovery phase.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/3.VCDR_Script_Screenshot-2023-10-17-at-3.53.51-pm.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11124 size-large\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/3.VCDR_Script_Screenshot-2023-10-17-at-3.53.51-pm-1024x1013.png\" alt=\"\" width=\"1024\" height=\"1013\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/3.VCDR_Script_Screenshot-2023-10-17-at-3.53.51-pm-1024x1013.png 1024w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/3.VCDR_Script_Screenshot-2023-10-17-at-3.53.51-pm-300x297.png 300w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/3.VCDR_Script_Screenshot-2023-10-17-at-3.53.51-pm-768x760.png 768w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/3.VCDR_Script_Screenshot-2023-10-17-at-3.53.51-pm-1536x1519.png 1536w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/3.VCDR_Script_Screenshot-2023-10-17-at-3.53.51-pm.png 1808w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>You can then select &#8220;Run script on the Script VM&#8221;.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/4.VCDR_Script_Screenshot-2023-10-17-at-3.53.59-pm.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11125 size-large\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/4.VCDR_Script_Screenshot-2023-10-17-at-3.53.59-pm-1024x470.png\" alt=\"\" width=\"1024\" height=\"470\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/4.VCDR_Script_Screenshot-2023-10-17-at-3.53.59-pm-1024x470.png 1024w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/4.VCDR_Script_Screenshot-2023-10-17-at-3.53.59-pm-300x138.png 300w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/4.VCDR_Script_Screenshot-2023-10-17-at-3.53.59-pm-768x353.png 768w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/4.VCDR_Script_Screenshot-2023-10-17-at-3.53.59-pm.png 1152w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>At this point you can specify the full path to the script file, keeping in mind that Windows looks different to Linux. You can also set a timeout for the script.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/5.VCDR_Script_Screenshot-2023-10-17-at-3.54.06-pm.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11126 size-large\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/5.VCDR_Script_Screenshot-2023-10-17-at-3.54.06-pm-886x1024.png\" alt=\"\" width=\"886\" height=\"1024\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/5.VCDR_Script_Screenshot-2023-10-17-at-3.54.06-pm-886x1024.png 886w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/5.VCDR_Script_Screenshot-2023-10-17-at-3.54.06-pm-259x300.png 259w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/5.VCDR_Script_Screenshot-2023-10-17-at-3.54.06-pm-768x888.png 768w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2024\/01\/5.VCDR_Script_Screenshot-2023-10-17-at-3.54.06-pm.png 1292w\" sizes=\"auto, (max-width: 886px) 100vw, 886px\" \/><\/a><\/p>\n<p>And that&#8217;s pretty much it. Remember that you&#8217;ll need working DNS, or, failing that, valid IP addresses for things to work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a quick post covering the steps required to configure a script VM for use in a recovery plan with VMware Cloud Disaster Recovery (VCDR). Why would you want to do this? You might be running a recovery for a Linux VM and you need to run a script to update the DNS settings [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,1409],"tags":[1139,110,227,1389,786,1383],"class_list":["post-11121","post","type-post","status-publish","format-standard","hentry","category-vmware","category-vmware-cloud-disaster-recovery","tag-disaster-recovery","tag-howto","tag-recovery","tag-vcdr","tag-vmware","tag-vmware-cloud"],"_links":{"self":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/11121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/comments?post=11121"}],"version-history":[{"count":1,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/11121\/revisions"}],"predecessor-version":[{"id":11127,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/11121\/revisions\/11127"}],"wp:attachment":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/media?parent=11121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/categories?post=11121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/tags?post=11121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}