Follow this tutorial if you would like to mount the data to an existing instance instead.
The below tutorial is derived from this PDF
Log into the Digital Ocean Droplet Prepare the Droplet for Backup. Reset root’s password if you do not already know it.
Use DD to byte copy the Digital Ocean partition, to a file called snapshot.image
Change /dev/vda1 to the partition you want to migrate.
dd if=/dev/vda1 of=snapshot.image
You might have copied your whole disk instead of only your filesystem, to check this
fdisk -l snapshot.image
If you see more than one device, you have not copied only one partition but multiple. Go to the Converting the image with multiple partitions part If you only see one device, you have only copied one partition. Go to the Converting the image with single partition part
Look at the output of the fdisk -l snapshot.image command you entered before.
Search for the device with type Linux Filesystem and hold on to the start-value.
This start-value is the amount of sectors offset that the partition has on the drive. We have to multiply this by 512 (start-value x 512) to determine the amount of offset in bytes. This value will be used when creating a loop device.
Convert the DD image to a qcow2 disk format with the ‘qemu-img’ utility please fill in the offset you determined the last step.
qemu-img convert -o ***offset*** -O qcow2 snapshot.image snapshot.qcow2
continue to Uploading the image to OpenStack
Convert the DD image to a qcow2 disk format with the ‘qemu-img’ utility.
qemu-img convert -O qcow2 snapshot.image snapshot.qcow2
openstack image create --disk-format qcow2 --private --file snapshot.qcow2 do-image
Now you can see your image in the Fuga Dashboard, and create an instance with this image.