Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Configura la migración
Antes de comenzar el proceso de modernización, debes verificar si el componente de la aplicación es compatible con la modernización y preparar la configuración para la modernización.
En esta página, se describe cómo preparar tus máquinas locales y de origen para la modernización.
Configura la máquina de origen de Linux
Instala rsync:
En Debian:
sudo apt install rsync
En Fedora:
sudo dnf install rsync
Asegúrate de que rsync esté disponible en la configuración PATH.
Configura la máquina local de Linux
Instala Docker y asegúrate de que esté disponible en el archivo PATH.
Esto descarga la versión más reciente de los complementos de la CLI de Migrate to Containers y Migrate to Containers.
Verifica la conectividad
Asegúrate de que puedes acceder a la máquina de origen desde la máquina local mediante SSH directo o el comando gcloud compute ssh.
Opcional: Configura la migración sin conexión
Si deseas realizar una migración en tu red local sin extraer recursos de Internet, puedes completar los siguientes pasos a fin de preparar tu máquina local para las migraciones sin conexión.
Después de descargar la CLI de Migrate to Containers, sigue estos pasos:
Descarga el paquete de complementos de la CLI de Migrate to Containers sin conexión:
Si es necesario, copia la CLI de Migrate to Containers y el paquete de complementos de la CLI de Migrate to Containers sin conexión en el entorno sin conexión.
Descomprime el paquete de complementos de la CLI de Migrate to Containers sin conexión:
Reemplaza HOSTNAME por el nombre de host de Container Registry.
Tu máquina local está configurada para la migración sin conexión. Para actualizar el paquete de complementos de la CLI de Migrate to Containers sin conexión, actualiza la CLI de Migrate to Containers a la versión más reciente y, luego, repite los pasos para descargar y descomprimir el paquete de complementos.
Si deseas desactivar el modo sin conexión más adelante, puedes usar el comando config set para configurar la opción offline como false.
Configura la máquina local de Windows
Debes poder ejecutarlo como administrador en la máquina local.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (UTC)"],[],[],null,["# Set up for migration\n====================\n\nBefore you start the modernization process, you need to check whether your\napplication component is compatible for modernization and prepare your setup\nfor modernization.\n\nThis page describes how to prepare your source and local machines for\nmodernization.\n\nSet up the Linux source machine\n-------------------------------\n\n| **Note:** If you're going to migrate Windows IIS applications, you don't need to perform the steps to set up the Windows source machine for migration.\n\n- Install `rsync`:\n\n - On Debian:\n\n sudo apt install rsync\n\n - On Fedora:\n\n sudo dnf install rsync\n\n Ensure that `rsync` is available in the `PATH` setting.\n\nSet up the Linux local machine\n------------------------------\n\n- [Install Docker](https://docs.docker.com/engine/install) and\n ensure that it is available in the `PATH`.\n\n | **Note:** To avoid [issues that might occur while using Snap version of Docker](/migrate/containers/docs/troubleshooting/issues-with-m2c-cli#the_analyze_command_fails_when_using_the_snap_version_of_docker), ensure that you install Docker without using Snap.\n\n If the user running Migrate to Containers CLI is a non-root user, then\n [allow the non-root user to run containers](https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user).\n\n### Download or upgrade Migrate to Containers CLI\n\n- Download or upgrade the Migrate to Containers CLI on a Linux machine:\n\n curl -O \"https://m2c-cli-release.storage.googleapis.com/$(curl -s https://m2c-cli-release.storage.googleapis.com/latest)/linux/amd64/m2c\"\n chmod +x ./m2c\n\n This downloads the latest version of the Migrate to Containers CLI and\n Migrate to Containers plugins.\n\n### Check connectivity\n\nEnsure that you can access the source machine from the local machine using\neither direct SSH or the `gcloud compute ssh` command.\n| **Note:** The user used for SSH connection must be either a sudoer or root. If the user used to perform SSH can't act as root, then Migrate to Containers CLI might not be able to examine files and directories relevant to the modernization process.\n\n### Optional: Set up for offline migration\n\nIf you want to perform migration on your local network without pulling\nresources from the internet, then you can complete the following steps to\nprepare your local machine for offline migrations.\n\nAfter you've downloaded Migrate to Containers CLI, perform the\nfollowing steps:\n\n1. Download the offline Migrate to Containers CLI plugins bundle:\n\n curl -O https://storage.googleapis.com/modernize-plugins-prod/$(curl -s https://storage.googleapis.com/modernize-plugins-prod/latest)/m2c-offline-bundle-linux.tar\n\n2. If required, copy the Migrate to Containers CLI and offline Migrate to Containers CLI\n plugins bundle to the offline environment.\n\n3. Unpack the offline Migrate to Containers CLI plugins bundle:\n\n ./m2c plugins unpack -i m2c-offline-bundle-linux.tar\n\n To add support for offline data migration, specify a container registry\n that is available in your local network: \n\n ./m2c plugins unpack -i m2c-offline-bundle-linux.tar --registry \u003cvar translate=\"no\"\u003eHOSTNAME\u003c/var\u003e\n\n Replace \u003cvar translate=\"no\"\u003eHOSTNAME\u003c/var\u003e with the container registry hostname.\n\nYour local machine is set up for offline migration. To upgrade the offline\nMigrate to Containers CLI plugins bundle, [upgrade Migrate to Containers CLI](#download-cli-linux)\nto the latest version, and then repeat the steps to download and unpack the\nplugins bundle.\n\nIf you want to turn off the offline mode later, then you can use the\n`config set` command to set the `offline` option to `false`.\n\nSet up the Windows local machine\n--------------------------------\n\n- You must be able to run as administrator on the local machine.\n- [Install Docker](https://docs.docker.com/engine/install).\n\n### Download or upgrade Migrate to Containers CLI\n\nTo download or upgrade Migrate to Containers CLI on a Windows machine, perform the\nfollowing steps: \n\n### cmd\n\n1. Find the latest version of Migrate to Containers CLI:\n\n curl -s https://m2c-cli-release.storage.googleapis.com/latest\n\n2. Download the latest version of Migrate to Containers CLI:\n\n curl -O \"https://m2c-cli-release.storage.googleapis.com/\u003cvar translate=\"no\"\u003eVERSION\u003c/var\u003e/windows/amd64/m2c.exe\"\n\n Replace \u003cvar translate=\"no\"\u003eVERSION\u003c/var\u003e with the latest version of Migrate to Containers CLI.\n\n### PowerShell\n\n- Download the latest version of Migrate to Containers CLI:\n\n curl.exe -O https://m2c-cli-release.storage.googleapis.com/$(curl.exe -s https://m2c-cli-release.storage.googleapis.com/latest)/windows/amd64/m2c.exe\n\nThis downloads the latest version of the Migrate to Containers CLI and\nMigrate to Containers plugins.\n\nWhat's next\n-----------\n\n- Learn how to [copy the source machine's file system](/migrate/containers/docs/m2c-cli/copy-file-system)."]]