Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 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
    • UEFI support and data import from GPT-formatted disks
    • 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 save snapshots and images locally
    • 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
    • What is the maximum number of network interfaces that can be connected to a VM

In this article:

  • Issue description
  • Solution
  1. Compute Cloud
  2. Transferring VMs between folders or clouds

Transferring VMs between folders or clouds

Written by
Yandex Cloud
Updated at May 5, 2025
  • Issue description
  • Solution

Issue descriptionIssue description

You need to transfer a VM instance from one cloud or folder to another cloud or folder.

SolutionSolution

Transfer between clouds
Transfer between folders

To transfer a VM between clouds, complete the following steps:

  1. Create an image from the disk of the required VM
  2. Add an IAM user to the cloud with the image you want to transfer;
  3. Assign the IAM user the minimum required roles of resource-manager.clouds.member and compute.images.user.
  4. Set up the YC CLI tool for the user in the target cloud.
  5. Get the ID of your image. For this, in the web interface, find the ID field in the Images tab, or get the ID using the YC CLI yc compute image list command.
  6. Get the ID of the cloud where the original image is located. For this, in the web interface, find the ID field on the cloud's home page, or get the ID using the YC CLI yc resource-manager cloud list command.
  7. Create a new image in the target cloud using the YC CLI tool:
yc compute image create --name <new_image_name> \
--source-image-id <ID_of_original_image> \
--cloud-id <ID_of_cloud_where_original_image_is_located>

After performing these actions, create a new VM instance from the resulting image.

To change the folder of a VM instance, complete the following steps:

  • In the CLI:

    If you do not have the Yandex Cloud CLI yet, install and initialize it.

    The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

    1. Get a list of all VMs in the default folder:

      yc compute instance list
      

      Result:

      +----------------------+-----------------+---------------+---------+----------------------+
      |          ID          |       NAME      |    ZONE ID    | STATUS  |     DESCRIPTION      |
      +----------------------+-----------------+---------------+---------+----------------------+
      | fhm0b28lgfp4tkoa3jl6 | first-instance  | ru-central1-a | RUNNING | my first vm via CLI  |
      | fhm9gk85nj7gcoji2f8s | second-instance | ru-central1-a | RUNNING | my second vm via CLI |
      +----------------------+-----------------+---------------+---------+----------------------+
      
    2. Get a list of all folders in the default cloud:

      yc resource-manager folder list
      

      Result:

      +----------------------+--------------------+------------------+--------+
      |          ID          |        NAME        |      LABELS      | STATUS |
      +----------------------+--------------------+------------------+--------+
      | b1gd129pp9ha0vnvf5g7 | my-folder          |                  | ACTIVE |
      | b1g66mft1vopnevbn57j | default            |                  | ACTIVE |
      +----------------------+--------------------+------------------+--------+
      
    3. View the description of the CLI command for moving a VM:

      yc compute instance move --help
      
    4. Move the VM to another folder with the following parameters:

      • In id, enter the ID of the VM, for example, fhm0b28lgfp4tkoa3jl6.
      • In destination-folder-id, enter the ID of the destination folder, for example, b1gd129pp9ha0vnvf5g7.
      yc compute instance move \
          --id fhm0b28lgfp4tkoa3jl6 \
          --destination-folder-id b1gd129pp9ha0vnvf5g7
      

      For more information about the yc compute instance move command, see the CLI reference.

Was the article helpful?

Previous
Exporting disk images of Compute Cloud VM instances
Next
Setting up GUI and graphic environment on Linux VMs
© 2025 Direct Cursus Technology L.L.C.