Migrating an instance from Public Cloud to [New] Public Cloud platform

Migrating an instance from Public Cloud to [New] Public Cloud platform

You can move an existing instance to new Public Cloud by exporting its disk, importing it as a custom image in new platform, and launching a new instance from that image.

Before you begin

  1. The instance must be stopped to export its disk, so plan for downtime.
  2. The download link for the exported disk is valid for 24 hours. If it expires, export the disk again.
  3. Instances on Public Cloud [New] don’t get a public IP address automatically. You’ll need to assign a new public IP. Then update DNS records, firewall rules and any configuration that uses the old instance.
  4. Choose a new instance type with a disk at least as large as the exported disk.

Step 1: Export the disk from Public Cloud [Old]

  1. Log in to the Customer Portal and go to your Public Cloud instances
  2. Open the instance you want to migrate.
  3. Under Quick Actions, click Stop and wait until the state shows STOPPED.
  4. Open the Extract volume tab and click Extract volume.
    1. https://secure.leaseweb.com/public-cloud/instances/your-instance-ID/extract-volume
  5. Wait until Volume ready appears. It shows the disk format (QCOW2) and when the link expires.
image 2

From here you can:

  1. Download the disk to keep a local copy.
  2. Copy URL to use the link in the next step.
  3. Create custom image to go straight to new Public Cloud with the URL filled in.
image 3

Step 2: Create a custom image in Public Cloud [New]

  1. Click Create custom image, or go to Public Cloud [New] > Custom Images and click Create.
  2. Fill in the form:
    1. Image URL: the link from Step 1. It’s filled in automatically if you used the Create custom image button.
    2. Image Name and Description: anything that helps you recognize the image.
    3. OS Distribution, OS Version and Admin User: optional, but recommended. They help identify the image and set the right defaults when you launch instances.
    4. Disk Format: QCOW2.
  3. Click Create and wait until the image is available in the Custom Images list.

Step 3: Launch an instance in new Public Cloud

  1. In Public Cloud [New], launch a new instance.
  2. Select your custom image as the image source.
  3. Choose the instance type, region and network settings, then launch.
  4. Go to Public Cloud [NEW] > Public IPs and assign a public IP address to the new instance.

Step 4: Verify and switch over

  1. Log in to the new instance and check that your applications and data work as expected.
  2. Update DNS records, firewall rules and any configuration that refers to the old Instance IP addresses.
  3. When everything works, terminate the old instance to stop billing for it.

Troubleshooting

  1. The Extract volume button is disabled. The instance is still running. Stop it first.
  2. The image import fails. The link may have expired. Export the disk again and use the new URL.