Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
All solutions
    • All solutions for Compute Cloud
    • You are unable to add a Committed Volume of Services (CVoS) for Compute Cloud
    • You see a "Permission denied" error when connecting to a VM created in Terraform
    • No nested virtualization support
    • Fixing the "Not enough resources" error on launching a virtual machine
    • Recovering access to a VM with a lost SSH key
    • Fixing issues with creating disk snapshots
    • Boot disk size failed to increase
    • VM instance shuts down on the "instance guest stop processing" operation
    • Fixing the "WARNING REMOTE HOST IDENTIFICATION HAS CHANGED" error
    • Fixing a non-replicable disk breakdown
    • Fixing connection issues with Kosmos VM
    • Fixing password reset issues for VMs based on a Kosmos image
    • Options to migrate a VM image to Yandex Cloud
    • Changing the boot disk for an instance to SSD
    • Getting details about RAM consumption for Compute Cloud instances
    • Creating VMs having multiple network interfaces
    • Decreasing VM disk size
    • Exporting disk images of Compute Cloud VM instances
    • Transferring VMs between folders or clouds
    • Setting up GUI and graphic environment on Linux VMs
    • Using an ISO image for deploying VM instances
    • Monitoring incoming or outgoing VM traffic
    • How to use WinSCP to connect to a Linux VM in Yandex Cloud with a key generated at VM creation
    • How to back up a VM with rollback support
    • How to connect via SSH as root with a password or key
    • How to track memory usage
    • How to change an internal IP address
    • How to read the "Connections quota utilization" chart
    • What is the disk access speed for a VM
    • How to create a VM with password access

In this article:

  • Task description
  • Solution
  1. Compute Cloud
  2. Exporting disk images of Compute Cloud VM instances

How to export disk images of virtual machines Compute Cloud

Written by
Yandex Cloud
Updated at July 23, 2025
  • Task description
  • Solution

Task descriptionTask description

You need to upload an image of one or more VM disks to the local storage.

SolutionSolution

Disk images or snapshots of Compute Cloud instances can only be used within Yandex Cloud.
It is impossible to download it to your computer directly from the Management Console interface or using the YC CLI tools.

You can use third-party software or standard OS tools to create an image or backup copy of your disk.
For example, run the dd utility on the temporary Linux instance with an attached copy of the target disk, and then download resulting image to your local computer.
To do this, follow these steps:

Note

dd utility treats disks as block devices, not as file systems.

If you run a disk copy operation on a virtual machine that is currently booted directly from this disk, there may be data inconsistency in its image file.
To avoid this, we strongly recommend stopping the VM and creating a new image from its system disk.

  1. Stop the VM with the disk you want to copy. You can do this in the management console or by the command in the YC CLI:

    yc compute instance stop <instance_name>
    
  2. Create the VM disk image that you want to copy following these instructions.

  3. Create a temporary Linux-based VM. You will run a disk image copy operation on it.

  4. While creating a VM, connect an additional disk to it.
    Then specify the previously created image as disk contents.

  5. Connect to the created temporary VM via SSH.

  6. Attach an additional disk, which you want to copy, to the temporary instance, following these instructions.

  7. Create a new SSH session and copy the additional disk to the local machine with the command:

    ssh <username>@<ip_address> "sudo dd if=/dev/sdb status=progress | gzip -c" > sda.img.gz
    

    In a result, your disk image will be saved to a directory on the local machine from where the SSH session was started.

If you need to transfer a disk image within Yandex Cloud, you can provide public access to the disk image.
To do this, assign the role compute.images.user to the system group allAuthenticatedUsers. The role compute.images.user does not grant the authority to delete or modify your images.

Was the article helpful?

Previous
Decreasing VM disk size
Next
Transferring VMs between folders or clouds
© 2025 Direct Cursus Technology L.L.C.