Question

Migrate proxmox vm to digitalocean

I have some vms in proxmox (vm for gitlab runner and other for sonarqube) and I want to migrate both vms to digitalocean, what are the steps to do so? also what are service should I use with cost optimization Thanks in advance


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
November 26, 2024

Hey!

DigitalOcean allows you to create custom Droplets from uploaded disk images, but the image must meet certain criteria as listed here:

https://docs.digitalocean.com/products/custom-images/details/features/#image-requirements

Images you upload to DigitalOcean must meet the following requirements:

  • Operating system. Images must have a Unix-like OS.

  • File format. Images must be in one of the following file formats:

  • Size. Images must be 100 GB or less when uncompressed, including the filesystem.

  • Filesystem. Images must support the ext3 or ext4 filesystems.

  • cloud-init. Images must have cloud-init 0.7.7 or higher, cloudbase-init, coreos-cloudinit, ignition, or bsd-cloudinit installed and configured correctly. If your image’s default cloud-init configuration lists the NoCloud data source before the ConfigDrive data source, Droplets created from your image will not function properly.

  • SSH configuration. Images must have sshd installed and configured to run on boot. If your image does not have sshd set up, you will not have SSH access to Droplets created from that image unless you recover access using the Recovery Console.

If you can meet these requirements, you can upload your Proxmox VM image to DigitalOcean and create a Droplet from it. Here’s a general outline of the steps you can follow:

  1. Export your Proxmox VM disk as a .raw or .qcow2 image:

    qm export VM_ID /path/to/image.raw
    
  2. Upload the Image: Follow the steps here:

    https://docs.digitalocean.com/products/custom-images/how-to/upload/

  3. Create a Droplet: Once the image is uploaded, create a Droplet by following the steps here:

    https://docs.digitalocean.com/products/droplets/how-to/create/https://docs.digitalocean.com/products/custom-images/how-to/create-droplets/

This approach should work as long as your VM image meets DigitalOcean’s custom image requirements. If your Proxmox VM doesn’t meet these requirements (e.g., missing cloud-init or unsupported OS), you might face issues during deployment.

If you can’t meet the requirements, you can manually recreate the VM environment on a fresh DigitalOcean Droplet. Install the required services and migrate your data using tools like scp or rsync:

https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories

Let me know how your migration goes!

- Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.