> Documentation index for agents: /hcp/3.3/en/llms.txt

# Move a VM to another VDC

Move a virtual machine (VM) to another VDC (virtual data center) when the VM must belong to another VDC. Only the VDC changes: the node, pool, disks and network connections of the VM stay the same.

## Before you begin

- You need the **VDC admin** role in both VDCs — the current one and the target one — or the **Cluster master** role. The menu has the **Change VDC** item only if more than one VDC is available to you.
- All networks that the VM is connected to are assigned to the target VDC — [Assign a network to a VDC](/hcp/3.3/en/vdcs/assign-network-to-vdc/index.md).
- The target VDC has enough quotas for the VM resources — check them before the move: [Set VDC quotas](/hcp/3.3/en/vdcs/set-vdc-quotas/index.md).
- You do not need to stop the VM.

## Move the VM

1. In the left menu, select **Virtual Data Centers** → the current VDC of the VM → **Virtual Machines** → the VM. The VM page opens.
2. Select **Actions** → **Additional actions** → **Change VDC**. The **Are you sure want to change VDC?** window opens.
3. Select the target VDC in the **VDC** field. By default, the first VDC in the list is selected; the current VDC of the VM is not in the list.
4. Click **Change VDC**.

## Check the result

The web interface shows the notification **Move vm \<name> from vdc \<current VDC ID> to \<target VDC ID>** and opens the VM page. In the **General properties** block, the **VDC** field shows the target VDC. The VM appears in the **Virtual Machines** list of this VDC and disappears from the list of the former one.

If a VM network is not assigned to the target VDC, Center does not move the VM. The web interface shows the error **following networks are absent at dst\_vdc: \<network IDs>**. Assign these networks to the target VDC and repeat the move — [Assign a network to a VDC](/hcp/3.3/en/vdcs/assign-network-to-vdc/index.md).

## Next

- [VDCs](/hcp/3.3/en/vdcs/index.md) — how VDCs work.
- [Assign roles within a VDC](/hcp/3.3/en/vdcs/assign-vdc-roles/index.md)
- [Connect a VM to a network](/hcp/3.3/en/vms/connect-vm-network/index.md)

API methods: `vm-change-vdc` — in the [API reference](/hcp/3.3/en/api/methods/index.md).
