์ค๋ฅ: compute.subnetworks.use permission ๊ถํ ํ์
๊ณต์ VPC๋ฅผ ์ฌ์ฉํ๋ ์กฐ์ง์ ์ฌ๋ฌ ํ๋ก์ ํธ์ ๋ฆฌ์์ค๋ฅผ ๊ณตํต Virtual Private Cloud(VPC) ๋คํธ์ํฌ์ ์ฐ๊ฒฐํ ์ ์์ผ๋ฏ๋ก ํด๋น ๋คํธ์ํฌ์ ๋ด๋ถ IP๋ฅผ ์ฌ์ฉํ์ฌ ์๋ก ์์ ํ๊ณ ํจ์จ์ ์ผ๋ก ํต์ ํ ์ ์์ต๋๋ค.
Migrate to Virtual Machines๋ฅผ ์ฌ์ฉํ๋ฉด ๊ณต์ VPC์ ์ก์ธ์ค ๊ถํ์ด ์๋ ํ๋ก์ ํธ์ Compute Engine ์ธ์คํด์ค๋ฅผ ๋ฐฐํฌํ ์ ์์ต๋๋ค.
ํ์ง๋ง Migrate to Virtual Machines ๊ธฐ๋ณธ ์๋น์ค ๊ณ์ ์ compute.subnetworks.use
์ญํ ์ ํ ๋นํ์ง ์์์ผ๋ฉด Compute Engine ์ธ์คํด์ค๋ฅผ ๋ฐฐํฌํ๋ ค๊ณ ์๋ํ ๋ ๋ค์ ํ์์ผ๋ก ์ค๋ฅ ๋ฉ์์ง๊ฐ ํ์๋ฉ๋๋ค.
"Create instance of VM "my-vm" from source "my-proj"
to target project "target-proj" using Compute Engine instance name
"instance-id" failed due to:
Required 'compute.subnetworks.use' permission for
'projects/vpc-proj/regions/us-central1/subnetworks/shared-central1'
๊ณต์ VPC์ ๊ถํ ๊ตฌ์ฑ์ ์ค๋ช
๋ ๋๋ก ๊ณต์ VPC ํธ์คํธ ํ๋ก์ ํธ์ compute.subnetworks.use
์ญํ ์ Migrate to Virtual Machines ๊ธฐ๋ณธ ์๋น์ค ๊ณ์ ์ ํ ๋นํด์ผ ํฉ๋๋ค.
์ค๋ฅ: ์ฌ์ฉ์์๊ฒ ์๋น์ค ๊ณ์ ์ ๋ํ ์ก์ธ์ค ๊ถํ์ด ์์ต๋๋ค.
๋ง์ด๊ทธ๋ ์ด์ ๋ VM์ ๋์์ ๊ตฌ์ฑํ๋ ๋์ Migrate to Virtual Machines๋ฅผ ํตํด ๋์ ํ๋ก์ ํธ์์ ์คํ๋๋ Compute Engine ์ธ์คํด์ค์ ์๋น์ค ๊ณ์ ์ ํ ๋นํ ์ ์์ต๋๋ค.
ํ์ง๋ง ๋์ ํ๋ก์ ํธ์์ ์คํ ์ค์ธ Compute Engine ์ธ์คํด์ค์ ์๋น์ค ๊ณ์ ์ ํ ๋นํ๋ ค๋ฉด ํธ์คํธ ํ๋ก์ ํธ์ ๊ธฐ๋ณธ Migrate to Virtual Machines ์๋น์ค ๊ณ์ ์ ๋์ ์๋น์ค ๊ณ์ ์ ๋ํ Service Account User
์ญํ ์ด ์์ด์ผ ํฉ๋๋ค.
Compute Engine ์ธ์คํด์ค์ ์๋น์ค ๊ณ์ ์ ํ ๋นํ์ง๋ง ํธ์คํธ ํ๋ก์ ํธ์ ๋์ ์๋น์ค ๊ณ์ ์ ๋ํ Service Account User
์ญํ ์ด ์๋ ๊ฒฝ์ฐ, ํ
์คํธ ํด๋ก ์ ํ
์คํธํ๋ ค๊ณ ํ๊ฑฐ๋ VM์ ์ปท์ค๋ฒ ํ๋ ค๊ณ ํ๋ฉด ๋ค์ ์ค๋ฅ๊ฐ ํ์๋ฉ๋๋ค.
Test-Clone of VM "my-vm" from source "source-vm" to
target project "target-proj" using Compute Engine instance name "my-instance" failed due to:
The user does not have access to service account 'target-service-account-email'.
User: 'host-user-account-email'. Ask a project owner to grant you the
iam.serviceAccountUser role on the service account
๊ธฐ๋ณธ Migrate to Virtual Machines ์๋น์ค ๊ณ์ ์ด ๋์ ์๋น์ค ๊ณ์ ์ ๋ํด ์ก์ธ์ค๋ฅผ ํ์ฉํ๋๋ก ์ฌ๋ฐ๋ฅด๊ฒ ๊ตฌ์ฑ๋์๋์ง ํ์ธํฉ๋๋ค. ์์ธํ ๋ด์ฉ์ ๋์ ํ๋ก์ ํธ ์๋น์ค ๊ณ์ ์ ๊ถํ ๊ตฌ์ฑ์ ์ฐธ์กฐํ์ธ์.
์ค๋ฅ: vCenter ์ต๋ ์ฟผ๋ฆฌ ์ ํ์ด ์ด๊ณผ๋์ด ๋ณด๊ณ ์๋ฅผ ์์ฑํ์ง ๋ชปํ์ต๋๋ค.
Migrate to Virtual Machines๋ฅผ ์ฌ์ฉํ๋ฉด ์์ค VM ์ฌ์ฉ๋ ๋ณด๊ณ ์๋ฅผ ๋ง๋ค ์ ์๊ธฐ ๋๋ฌธ์ Compute Engine ๋์์ ๋ํ ์ต์ ์ ์ค์ ์ ๊ฒฐ์ ํ๋ ๋ฐ ๋์์ด ๋ฉ๋๋ค. ์ด ๋ณด๊ณ ์์๋ vCenter์ ๋ฐฐํฌ๋ ์์ค VM์ ๋ฆฌ์์ค ํ ๋น ๋ฐ ์ฌ์ฉ๋ ์ ๋ณด๊ฐ ํ์๋ฉ๋๋ค.
๋ณด๊ณ ์๋ vCenter์์ ์์ง๋ ๋ฐ์ดํฐ๋ก๋ถํฐ ์์ฑ๋ฉ๋๋ค. ๋ณด๊ณ ์๋ฅผ ์์ฑํ ๋ vCenter ํ ๋น๋ ์ ํ์ ๋๋ฌํ์์ ๋ํ๋ด๋ ๋ค์ ํ์์ ์ค๋ฅ๊ฐ ํ์๋ ์ ์์ต๋๋ค.
Report generation for source source connected to vCenter vcenter failed due to vCenter maximum query limit exceeded. Details: VC message
ํ ๋น๋ ์ ํ ์ฆ๊ฐ์ ๋ํ ์์ธํ ๋ด์ฉ์ ์ด vSphere ๋ฌธ์๋ฅผ ์ฐธ์กฐํ์ธ์.
์ค๋ฅ: Migrate for Virtual Machines์์ ์์ฑ๋ ์ธ์คํด์ค๊ฐ ๋ถํ ๋์ง ์์
์์ค VM ๋ถํ ๋์คํฌ๊ฐ VM ๋์คํฌ ๋ชฉ๋ก์ ์๋ ์ฒซ ๋ฒ์งธ ๋์คํฌ๊ฐ ์๋ ๊ฒฝ์ฐ์ ๋ค์ ๋ฉ์์ง๊ฐ ํ์๋๋ ์ง๋ ฌ ์ฝ์ ์ค๋ฅ๊ฐ ๋ฐ์ํ ์ ์์ต๋๋ค.
drive 0x000f2410: PCHS=0/0/0 translation=lba LCHS=1024/255/63 s=104857600
drive 0x000f23d0: PCHS=0/0/0 translation=lba LCHS=1024/255/63 s=167772160
drive 0x000f2390: PCHS=0/0/0 translation=lba LCHS=1024/255/63 s=83886080
Sending Seabios boot VM event.
Booting from Hard Disk 0...
์ด ์ค๋ฅ๋ฅผ ์ํํ๋ ค๋ฉด ๋์คํฌ๋ฅผ ํด๋ก ํ๊ณ Migrate to Virtual Machines์ ์ VM์ ํด๋ก ์ ์ฌ๋ฐ๋ฅธ ์์๋๋ก ์ฐ๊ฒฐํฉ๋๋ค.
๋์คํฌ๋ฅผ ํด๋ก ํ๊ณ ์ฌ๋ฐ๋ฅธ ์์๋ก ์ฐ๊ฒฐํ๋ ค๋ฉด ๋ค์ ๋จ๊ณ๋ฅผ ์ํํฉ๋๋ค.
- ๋ณต์ ๋ VM์ ์ค์งํฉ๋๋ค.
์๋ ๋ถํ ๋์คํฌ๋ฅผ ํด๋ก ํฉ๋๋ค.
gcloud compute disks create -project=$PROJECT --zone=$ZONE --source-disk=$DISK new-disk-name
๋ค์ ๋ช ๋ น์ด๋ฅผ ์คํํ์ฌ ํด๋ก ๋ ๋ถํ ๋์คํฌ์ ๋ผ์ด์ ์ค๋ฅผ ๋ค์ ํ ๋นํ๊ณ ๊ด๋ จ ํ๊ทธ๋ฅผ ์ถ๊ฐํฉ๋๋ค(์:
windows2008-r2
).gcloud compute disks create --project=$PROJECT --zone=$ZONE --source-disk=disk created on step #2 --licenses=projects/windows-cloud/global/licenses/windows-server-2008-r2-dc --guest-os-features=VIRTIO_SCSI_MULTIQUEUE,MULTI_IP_SUBNET,WINDOWS new-disk-name
VM์ ์์ ํฉ๋๋ค.
- ํ์ฌ ๋ถํ ๋์คํฌ๋ฅผ ๋ถ๋ฆฌํ๊ณ ์ถ๊ฐ ๋์คํฌ์ ์ฐ๊ฒฐํฉ๋๋ค.
- ์ถ๊ฐ ๋์คํฌ์์ ์๋ ๋ถํ ๋์คํฌ๋ฅผ ์ญ์ ํฉ๋๋ค.
- 3๋จ๊ณ์์ ๋ง๋ ๋์คํฌ๋ฅผ ๋ถํ ๋์คํฌ์ ์ฐ๊ฒฐํฉ๋๋ค.
- ๋ณ๊ฒฝ์ฌํญ์ ์ ์ฅํฉ๋๋ค.
VM ๋ถํ ํ๋ก์ธ์ค๋ฅผ ํ์ธํ ํ์ ์๋ ๋ถํ ๋์คํฌ๋ฅผ ์ญ์ ํ ์ ์์ต๋๋ค.
์ค๋ฅ: Windows VM์ด ํด๋ก ์ ์ฒซ ๋ฒ์งธ ๋ถํ ์์ `chkdsk' ์คํ
Migrate to Virtual Machines ํ ์คํธ ํด๋ก ๋จ๊ณ๋ ์์ค VM์ด ์คํ๋๋ ๋์์ ์์ฑ๋ ์ค๋ ์ท์ ๊ธฐ๋ฐ์ผ๋ก ํด๋ผ์ฐ๋์์ VM ํด๋ก ์ ์ธ์คํด์คํํฉ๋๋ค.
๊ฒฝ์ฐ์ ๋ฐ๋ผ ํด๋ก ์ด ํด๋ผ์ฐ๋์์ ๋ถํ
๋๋ ๋์ Windows VM์์ ์๋ chkdsk
์ค์บ ์์
์ด ํธ๋ฆฌ๊ฑฐ๋ ์ ์์ต๋๋ค. ์ด๋ฌํ ์ค๋ฅ๊ฐ ํ์ธ ๋จ๊ณ๋ฅผ ์ฐจ๋จํ๋ ๊ฒฝ์ฐ VM์ด ๊บผ์ ธ ์๋ ๋์ Migrate to Virtual Machines์์ ์ค๋
์ท์ ๋ง๋ค ์ ์๋๋ก ๋ณต์ ์ฃผ๊ธฐ ์ฌ์ด์ VM์ ์ข
๋ฃํ๋ ๊ฒ์ด ์ข์ต๋๋ค.
์ด๋ VM์ด ์ปท์ค๋ฒ๋ ๋ VM์ ์ํฅ์ ์ฃผ์ง ์์ต๋๋ค. Migrate to Virtual Machines์์ ์ต์ข ๋๊ธฐํ ๋จ๊ณ๋ฅผ ์๋ฃํ๊ธฐ ์ ์ VM์ด ์ปท์ค๋ฒ ํ๋ก์ธ์ค์ ์ผ๋ถ๋ก ์ข ๋ฃ๋๊ธฐ ๋๋ฌธ์ ๋๋ค.