마이그레이션을 시작하려면 먼저 Google Cloud 에서 Migrate to Virtual Machines 서비스를 사용 설정하고 Migrate to Virtual Machines에 필요한 다른 모든 Google Cloud서비스를 사용 설정해야 합니다.
호스트 프로젝트 확인
Google Cloud 프로젝트는 API 관리, 결제 사용 설정, 공동작업자 추가 및 삭제, Google Cloud 리소스 권한 관리를 포함하여 Google Cloud 서비스를 만들고 사용 설정하고 사용하기 위한 기반을 형성합니다.
Migrate to Virtual Machines는 다음 유형의 프로젝트를 사용합니다.
호스트 프로젝트(필수)
호스트 프로젝트를 사용하여 마이그레이션 프로세스를 제어하고 선택적으로 마이그레이션된 워크로드를 실행하는 Compute Engine 인스턴스를 호스팅합니다. 반드시 다음 섹션에 설명된 대로 호스트 프로젝트를 만들고 구성해야 합니다.
대상 프로젝트(선택사항)
대상 프로젝트는 마이그레이션된 VM을 실행하는 Compute Engine 인스턴스의 대상 프로젝트를 지정합니다. 호스트 프로젝트를 대상 프로젝트로 사용할 수 있습니다. VM을 추가 프로젝트로 마이그레이션하려면 VM을 Migrate to Virtual Machines에 대상 프로젝트로 추가해야 합니다. 자세한 내용은 대상 프로젝트 추가를 참조하세요.
Migrate to Virtual Machines 서비스를 사용 설정하려면 호스트 프로젝트로 사용할Google Cloud 프로젝트를 식별해야 합니다.
Google Cloud 콘솔의 프로젝트 선택기 페이지에서 호스트 프로젝트로 사용할Google Cloud 프로젝트를 선택하거나 만듭니다.
워크스테이션에 gcloud CLI를 설치하면 Google Cloud CLI도 설치됩니다. gcloud는 Google Cloud 리소스를 만들고 관리하는 데 사용되는 기본 CLI 도구입니다. gcloud를 사용하여 명령줄이나 스크립트 및 기타 자동화에서 여러 가지 일반적인 플랫폼 태스크를 수행할 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-04-21(UTC)"],[],[],null,["# Enable Migrate to Virtual Machines services\n\nBefore you can begin a migration, you must enable the Migrate to Virtual Machines\nservice on Google Cloud and also enable all other Google Cloud\nservices required by Migrate to Virtual Machines.\n\nIdentifying your host project\n-----------------------------\n\n[Google Cloud projects](/resource-manager/docs/creating-managing-projects)\nform the basis for creating, enabling, and using Google Cloud services\nincluding managing APIs, enabling billing, adding and removing collaborators,\nand managing permissions for Google Cloud resources.\n\nMigrate to Virtual Machines uses the following types of projects:\n\n- **Host project (Required)**\n\n Use the *host* project to control the migration process and optionally to\n host the Compute Engine instances running your migrated workloads. You\n **must** create and configure a host project as described in the following\n sections.\n- **Target project (Optional)**\n\n A *target* project defines the destination project for a Compute Engine\n instance running your migrated VM. Your **host** project can be used as a\n target project. If you want to migrate VMs to additional projects, you must\n add them as target projects to Migrate to Virtual Machines. See [Adding a target project](/migrate/virtual-machines/docs/5.0/get-started/target-project) for more.\n\nTo enable Migrate to Virtual Machines services, you must identify the\nGoogle Cloud project that you want to use as the **host** project:\n\n1. In the Google Cloud console, on the project selector page, select or create a\n Google Cloud project to use as the **host** project:\n\n [Go to the project selector page](https://console.cloud.google.com/projectselector2/home/dashboard)\n2. Note the name and ID of the selected project.\n\nInstalling the gcloud CLI\n-------------------------\n\nInstall the gcloud CLI on your workstation, which also installs the\nGoogle Cloud CLI. `gcloud` is the primary CLI tool that you use to create and\nmanage Google Cloud resources. You can use `gcloud` to perform many common\nplatform tasks either from the command line or in scripts and other automations.\n\nTo install the gcloud CLI:\n\n1. Install and initialize the [gcloud CLI](/sdk/docs/install).\n\n2. Update gcloud CLI:\n\n ```\n gcloud components update\n ```\n3. Make sure that gcloud CLI is authorized to access your data and\n services:\n\n ```\n gcloud auth login\n ```\n4. A new browser tab opens and you are prompted to choose an account.\n\nEnabling required services on the host project\n----------------------------------------------\n\nWithin your host project, enable the Google Cloud services required by\nMigrate to Virtual Machines service. For more information about these services,\nsee [gcloud services](/sdk/gcloud/reference/services).\n\nThe **host** project for Migrate to Virtual Machines requires that you enable the\nfollowing Google Cloud services:\n\nTo enable the required services:\n\n1. Ensure that you have set the default project to the **host** project.\n Replace \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e with the project ID of your **host** project:\n\n ```\n gcloud config set project PROJECT_ID\n ```\n2. View the list of services already enabled on the project:\n\n ```\n gcloud services list\n ```\n3. If you don't see all of the required services listed, enable them:\n\n ```\n gcloud services enable vmmigration.googleapis.com servicemanagement.googleapis.com servicecontrol.googleapis.com iam.googleapis.com cloudresourcemanager.googleapis.com compute.googleapis.com \n ```\n4. You should now be able to open the Migrate to Virtual Machines page in the\n Google Cloud console:\n\n [Go to the Migrate to Virtual Machines page](https://console.cloud.google.com/compute/mfce)\n\nUsing predefined roles\n----------------------\n\nIdentity and Access Management includes two predefined roles that you can use to control access\nfor users in your organization:\n\nFor example, if you want to allow a user in your organization to be able to view\ninformation about a migration, but not be able to perform a migration, assign\nthem the role `roles/vmmigration.viewer`.\n\nWhat's next\n-----------\n\n- [Installing the Migrate Connector](/migrate/virtual-machines/docs/5.0/migrate/migrate-connector)"]]