{"id":283,"date":"2017-12-26T15:29:51","date_gmt":"2017-12-26T15:29:51","guid":{"rendered":"https:\/\/carminebufano.com\/?p=283"},"modified":"2020-11-12T14:35:51","modified_gmt":"2020-11-12T19:35:51","slug":"digital-ocean-how-to-download-a-copy-or-snapshot-of-your-droplet-or-vm-locally-and-run-it-on-your-own-server","status":"publish","type":"post","link":"https:\/\/carminebufano.com\/index.php\/2017\/12\/26\/digital-ocean-how-to-download-a-copy-or-snapshot-of-your-droplet-or-vm-locally-and-run-it-on-your-own-server\/","title":{"rendered":"Digital Ocean How to download a copy or snapshot of your droplet or vm locally and run it on your own server"},"content":{"rendered":"<h3><span style=\"color: #ff0000;\">* This post uses the DD command which if used improperly WILL completely destroy your system.&nbsp; If you are unsure about what you are doing do not even attempt anything below. The command below will overwrite any drive you tell it to, with no regard or warning. Make absolutely sure you know the drive letters wyouo want to write over. you have been warned! The command below has purposely been written that if you copy and paste it will return an error. if you can not easily figure out the correct syntax you probably should not be using it. -Carmine<br \/>\n<\/span><\/h3>\n<p>I&#8217;ve scoured the internet for days and found bits and pieces on how to do this, however no clear cut instructions.<\/p>\n<p>I am running a Citrix Xenserver datacenter and this worked like a charm for me.<\/p>\n<p>Create a machine on your local Xenserver of the same type you have running on Digital Ocean. For instance I had WordPress running on a Ubuntu droplet. I created an Ubuntu Vm on Xenserver of the same version running on DO. Then create a second disk and attach it to the vm you just created. So now i have a Ubuntu vm (with xenserver tools installed) and two vdisks, xvda and xvdb.<\/p>\n<p>Next log into your Digital Ocean droplet and make sure you can log into it as root using a password. next type:<\/p>\n<p>&nbsp;<\/p>\n<p>dd if=\/dev\/vda | ssh root@yourxenservervmipaddress &#8216;dd of=\/dev\/xvdb&#8217;<\/p>\n<p>you should see text to the effect that the key has not been cached&#8230;&nbsp; type &#8220;yes&#8221;<\/p>\n<p>next type your vm&#8217;s root password.<\/p>\n<p>now.. wait&#8230; wait&#8230;. wait<\/p>\n<p>it will take a while depending how large your vm is (Make sure the disk you created for \/dec\/xvdb is the same geometry as the Digital Ocean droplet)<\/p>\n<p>when the prompt returns, as long as you dont see an error you have created your virtual machine!<\/p>\n<p>shutdown both the droplet and the xenserver vm.<\/p>\n<p>detach the second disk (\/dev\/xvdb) from the xenserver vm you created.<\/p>\n<p>create a new xenserver vm with the same specs as your Digital ocean droplet and attach the disk from the previous step as \/dev\/xvda to it.<\/p>\n<p>Boot the vm!<\/p>\n<p>I was able to install xenserver tools and had a perfectly working WordPress installation.<\/p>\n<p>&nbsp;<\/p>\n<p>NOTE: change your networking..<\/p>\n<p>nano \/etc\/network\/interfaces<\/p>\n<p>and delete or &#8220;#&#8221; out the line that sources \/etc\/network\/interfaces.d<\/p>\n<p>then setup \/etc\/network\/interfaces as you would normally for your local network.<\/p>\n<p>Hope this helps!<\/p>\n<p>for centos it would be a little different but you get the idea.. (have not tried it yet)<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>* This post uses the DD command which if used improperly WILL completely destroy your system.&nbsp; If you are unsure about what you are doing do not even attempt anything below. The command below will overwrite any drive you tell it to, with no regard or warning. Make absolutely sure you know the drive letters&hellip; <a class=\"read-more\" href=\"https:\/\/carminebufano.com\/index.php\/2017\/12\/26\/digital-ocean-how-to-download-a-copy-or-snapshot-of-your-droplet-or-vm-locally-and-run-it-on-your-own-server\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3,4,5,6,8,11,12,15],"tags":[61,55,57,58,22,59,56,60,62,46],"class_list":["post-283","post","type-post","status-publish","format-standard","hentry","category-announcements","category-centos","category-citrix-xenserver","category-digital-ocean","category-linux","category-ubuntu","category-vmware","category-walkthroughs","tag-copy","tag-digital","tag-download","tag-droplet","tag-how","tag-local","tag-ocean","tag-server","tag-snapshot","tag-to"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":428,"url":"https:\/\/carminebufano.com\/index.php\/2021\/01\/30\/install-virtual-box-on-ubuntu-16-04-on-a-digitalocean-droplet\/","url_meta":{"origin":283,"position":0},"title":"How to Install Oracle Virtual Box on Ubuntu 16.04 on a DigitalOcean Droplet","author":"Carmine Bufano","date":"January 30, 2021","format":false,"excerpt":"I wanted to circumvent my residential FIOS with my one dynamic public ip in my home lab without upgrading to a commercial account with Verizon. Right now I'm enjoying 1Gig up and down. One look at commercial prices and its a small fortune for static ip's and the same residential\u2026","rel":"","context":"In &quot;openvswitch&quot;","block_context":{"text":"openvswitch","link":"https:\/\/carminebufano.com\/index.php\/category\/openvswitch\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":568,"url":"https:\/\/carminebufano.com\/index.php\/2022\/08\/19\/install-openswitch-opx-on-debian-9-server-for-testing\/","url_meta":{"origin":283,"position":1},"title":"Install Openswitch OPX on Debian 9 Server for testing","author":"Carmine Bufano","date":"August 19, 2022","format":false,"excerpt":"Add this repo to \/etc\/apt\/sources.list Now run: You will receive an error like this: \"The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5EF20F34AD2074F \" Copy the characters after NO_PUBKEY from the last command and use it below YOUR PUBKEY WILL BE DIFFERENT Now that\u2026","rel":"","context":"In &quot;Walkthroughs&quot;","block_context":{"text":"Walkthroughs","link":"https:\/\/carminebufano.com\/index.php\/category\/walkthroughs\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":636,"url":"https:\/\/carminebufano.com\/index.php\/2024\/01\/20\/how-to-start-or-reboot-your-dell-server-with-idrac-from-the-command-line-cli\/","url_meta":{"origin":283,"position":2},"title":"How to Start or Reboot your Dell Server with iDRAC from the Command Line (CLI)","author":"Carmine Bufano","date":"January 20, 2024","format":false,"excerpt":"Dell's iDRAC (Integrated Dell Remote Access Controller) is a out of band server management card installed on enterprise servers. It lets you manage the server as if you were physically present at the remote location of your server(s). Along with a graphical web interface which lets you see and manage\u2026","rel":"","context":"In &quot;Walkthroughs&quot;","block_context":{"text":"Walkthroughs","link":"https:\/\/carminebufano.com\/index.php\/category\/walkthroughs\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":145,"url":"https:\/\/carminebufano.com\/index.php\/2015\/07\/07\/how-to-upload-turnkey-linux-appliances-to-openstack-juno\/","url_meta":{"origin":283,"position":3},"title":"How to Upload Turnkey Linux Appliances to Openstack Juno","author":"Carmine Bufano","date":"July 7, 2015","format":false,"excerpt":"","rel":"","context":"In &quot;Openstack&quot;","block_context":{"text":"Openstack","link":"https:\/\/carminebufano.com\/index.php\/category\/openstack\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":648,"url":"https:\/\/carminebufano.com\/index.php\/2024\/03\/15\/fix-loud-fans-in-dell-poweredge-servers-without-taking-it-apart\/","url_meta":{"origin":283,"position":4},"title":"Fix Loud Fans in Dell PowerEdge Servers, Without Taking it Apart!","author":"Carmine Bufano","date":"March 15, 2024","format":false,"excerpt":"There are many invasive techniques to lowering your lab server's decibels. Here is a way to do it... command line style! First, make sure you do this from a Linux server. I used Ubuntu. apt install ipmitool Now you have two choices, you can make them even louder, or you\u2026","rel":"","context":"In &quot;quick&quot;","block_context":{"text":"quick","link":"https:\/\/carminebufano.com\/index.php\/category\/quick\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/03\/3e0b7df3-800a-4d7c-9919-6ff3898ea6c8.webp?fit=1024%2C1024&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/03\/3e0b7df3-800a-4d7c-9919-6ff3898ea6c8.webp?fit=1024%2C1024&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/03\/3e0b7df3-800a-4d7c-9919-6ff3898ea6c8.webp?fit=1024%2C1024&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/03\/3e0b7df3-800a-4d7c-9919-6ff3898ea6c8.webp?fit=1024%2C1024&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":525,"url":"https:\/\/carminebufano.com\/index.php\/2022\/04\/02\/configure-linux-server-network-interfaces-with-this-cool-tool\/","url_meta":{"origin":283,"position":5},"title":"Configure Linux Server Network Interfaces with this Cool Tool!","author":"Carmine Bufano","date":"April 2, 2022","format":false,"excerpt":"Next time you are at the command line and need to configure you servers IP address or other network variables, try this! Type: nmtui A GUI\u2019sh or more a text based user interface to set your network.","rel":"","context":"In &quot;quick&quot;","block_context":{"text":"quick","link":"https:\/\/carminebufano.com\/index.php\/category\/quick\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_shortlink":"https:\/\/wp.me\/p70MUT-4z","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/comments?post=283"}],"version-history":[{"count":1,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/283\/revisions"}],"predecessor-version":[{"id":366,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/283\/revisions\/366"}],"wp:attachment":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/media?parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/categories?post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/tags?post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}