How to Migrate Resources Into and Between VPC Networks

A Virtual Private Cloud (VPC) is a private network interface for collections of DigitalOcean resources. VPC networks are inaccessible from the public internet and other VPC networks, and traffic on them doesn’t count against bandwidth usage.


Some DigitalOcean resources can be migrated into and between VPC networks. DigitalOcean currently supports migration for Droplets and Databases.

Note
Kubernetes clusters and load balancers cannot be migrated between VPC networks at this time.

Migrate Droplets Into A VPC Network

You can’t migrate Droplets into or between VPC networks directly, but you can recreate a Droplet inside of a VPC network using a snapshot. Snapshots are on-demand images of Droplets. You can create new Droplets based on snapshots to create a copy of it in the same state. You can use this workflow to add older Droplets to a VPC network that do not currently have VPC networking enabled.

To migrate a Droplet into a VPC network, from the control panel, click Droplets in the main menu. In the list of Droplets, click the name of Droplet that you want to migrate.

You can power off a Droplet through the control panel or from the command line. We recommend the command line because it ensures all services are stopped before the Droplet is powered off:

sudo shutdown -h now

However, if you want to power off a Droplet through the control panel, click the Droplet’s name to go to its detail page. Click the ON switch in the upper-right corner, then click Turn off from the pop-up warning window.

Once the Droplet is powered off, you can take a snapshot from the Droplet’s Snapshots menu, in the Take snapshot section.

Take snapshot button

The Enter snapshot name field prefills the Droplet’s name followed by the current Unix timestamp to help you identify the snapshot later, but you can customize the name now or after you take it. Click the Take Snapshot or Take Live Snapshot button to create a snapshot.

A progress bar shows the progress of snapshot creation. Once complete, the snapshot is listed along with any other previous snapshots. To power the Droplet back on, click the OFF switch.

If you are migrating the Droplet to a VPC network in another datacenter region, click the More menu of the newly created snapshot, then click Add to region to copy the image to the new region. This lets you create Droplets based on that snapshot in the new region.

Add snapshot to region

Once you have created the snapshot, click the More menu beside the snapshot and select Create Droplets.

Create Droplet from Snapshot

On the Create Droplets page, under the Choose a datacenter region, select the region that the target VPC network resides in and then select the target VPC network from the VPC Network menu.

Choose datacenter region and VPC network

Specify any additional tags, names, and projects for your Droplet, then click the Create Droplet button. A progress bar displays your Droplet’s creation progress.

Once the Droplet is created, it is automatically assigned an IP address in your VPC network and is accessible from other resources in the network.

Migrate Your Database to a Different VPC Network

You can migrate managed databases directly between VPC networks in your account.

From the control panel, click Databases in the main menu. From the list of databases, click the database that you want to migrate, then click the Settings tab.

Under Cluster datacenter click Edit.

Database settings

Select the datacenter the target VPC network resides in, then select the target VPC network from the VPC Network menu.

Choose region and VPC network

Click Save. A progress bar displays your database’s migration progress. Once the database is migrated, it is automatically assigned an IP address in your VPC network and is accessible from other resources in the network.