VMto阿里云的简单过程

发布时间 2023-12-31 11:58:52作者: 济南小老虎

VMto阿里云的简单过程


第一步打开网站

https://smcnext.console.aliyun.com/sourceServers/importMigrationSource?spm=5176.13581910.welSection.2.1cc318e62j8rBy&sourceServerType=VMWARE

建议选择 物理机/虚拟机/云服务器

然后下载一个 go2aliyun的程序

生成激活码

Access Token Id:    xxx
Access Token Code:  xxxxx

将go2aliyun 放到待迁移的机器上面,然后执行命令输入激活码. 


创建迁移任务

注意输入几个yew 安装几个包后会这样:
[2023-12-27 16:23:44] [Info]  Check System Info  [Rocky Linux x86_64]...
OS Info: Rocky Linux release 8.7 (Green Obsidian) (4.18.0-425.3.1.el8.x86_64)
CPU Info: Intel(R) Xeon(R) Gold 6330 CPU @ 2.00GHz
CPU Usage: 8 Cores (2.15%) Memory Usage: 17.02GB/31.20GB (54.56%)
Hostname: rocky87 IP Address: 10.110.136.73 Mac Address: 0050568AB4AD
[2023-12-27 16:23:46] [Info]  Snapshot Check, It May Take Several Minutes...
Install snapshot dependences(gcc/make/kernel-devel)? (yes/no): yes
[2023-12-27 16:24:56] [Warn]  Snapshot Check Failed: [error] smcssbd build failed.
[2023-12-27 16:24:56] [Info]  Import Source Server...
[2023-12-27 16:24:57] [Info]  Import Source Server [s-bp1euzclv9yy6596xyhp] Successfully!
Need to disable SELINUX, run 'setenforce 0' to continue? (yes/no): yes
[2023-12-27 16:26:29] [Info]  =========   Run In BackGround Daemon Mode   =========
[2023-12-27 16:26:29] [Info]  Goto Aliyun Begin...
[2023-12-27 16:26:29] [Info]  Check Source Server Status...
[2023-12-27 16:26:29] [Info]  Query Source Server...
Please Goto SMC Console To Create New Job, time: 31s 

进入迁移源

使用迁移源创建迁移任务

注意会有一个先演练的过程.
比较简单就可以进行一下迁移

耗时分析

跟网络磁盘等相关. 

根据机器的情况以及容量大小. 5min中做完测试, 然后开始准备迁移

Please Goto SMC Console To Create New Job, time: 8m34s    \
[2023-12-27 16:35:33] [Info]  Replication Job [j-2zefub9rn5vo1ocx4kud] Is TestRunning.
[2023-12-27 16:35:33] [Info]  Do Source Test...
[2023-12-27 16:35:33] [Info]  Do Source Test [Source.CPUUsageExceeded] Passed, Status: normal
[2023-12-27 16:35:33] [Info]  Do Source Test [Source.MemoryUsageExceeded] Passed, Status: normal
[2023-12-27 16:35:34] [Info]  Do Source Test [Source.FirewallEnabled] Passed, Status: normal
[2023-12-27 16:35:34] [Info]  Do Source Test [Source.ProxyEnabled] Passed, Status: normal
[2023-12-27 16:35:34] [Info]  Do Source Test [Source.InodeUsageExceeded] Passed, Status: normal
[2023-12-27 16:35:34] [Info]  Do Source Test [Source.SpaceUsageExceeded] Passed, Status: normal
[2023-12-27 16:35:34] [Info]  Do Source Test [Source.BootInitramfsMissing] Passed, Status: normal
[2023-12-27 16:35:34] [Info]  Do Source Test [Source.BootVmlinuzMissing] Passed, Status: normal
[2023-12-27 16:35:34] [Warn]  Do Source Test [Source.FilesystemTypeUnsupport] Failed, Shell Path [/root/go2aliyun_client2.7.3_linux_x86_64/Check/Test/filesystem_type_unsupport.sh] Not Exist.
[2023-12-27 16:35:34] [Info]  Do Source Test Successfully!
[2023-12-27 16:36:04] [Info]  Do Sync Test...
[2023-12-27 16:36:04] [Info]  Do Sync Test [Sync.ConnectServerPort]...
[2023-12-27 16:36:25] [Info]  Do Sync Test [Sync.ConnectServerPort] Passed, Status: normal
[2023-12-27 16:36:27] [Info]  Do Sync Test [Sync.InitDiskPart]...
[2023-12-27 16:36:46] [Info]  Do Sync Test [Sync.InitDiskPart] Passed, Status: normal
[2023-12-27 16:36:47] [Info]  Do Sync Test [Sync.ConnectSyncPort]...
[2023-12-27 16:36:51] [Info]  Do Sync Test [Sync.ConnectSyncPort] Passed, Status: normal
[2023-12-27 16:36:52] [Info]  Do Sync Test [Sync.RsyncDiskPart]...
[2023-12-27 16:36:55] [Info]  Do Sync Test [Sync.RsyncDiskPart] Passed, Status: normal
[2023-12-27 16:36:56] [Info]  Do Sync Test [Sync.DoNetPerf]...
[2023-12-27 16:37:09] [Info]  Do Sync Test [Sync.DoNetPerf] Passed, Status: normal
[2023-12-27 16:37:10] [Info]  Do Sync Test Successfully!
[2023-12-27 16:38:33] [Info]  Replication Job [j-2zefub9rn5vo1ocx4kud] Is Running.

重建虚拟机

选择自定义镜像
选择自己P2V的镜像生成虚拟机就可以. 

注意选择不同的配置.