บทนำ
บทความนี้อธิบายขั้นตอนการติดตั้ง SCMT Agent บนเครื่อง Windows Server ต้นทาง เพื่อใช้สำหรับทำ Point-to-Point Migration แบบ Agent-based ย้าย workload จาก physical server หรือ VMware VM มายัง Sangfor HCI ด้วย SCMT (Sangfor Cloud Migration Tool) การติดตั้ง Agent เป็นขั้นตอนแรกที่ต้องทำก่อนสร้าง Migration Task
ข้อกำหนดเบื้องต้น (Prerequisites)
- SCMT ได้รับการติดตั้งและ activate license เรียบร้อยบน HCI แล้ว
- Source Windows Server รองรับ Windows Server 2008 R2 / 2012 / 2012 R2 / 2016 / 2019 / 2022 หรือ Windows 7/8/10/11
- Memory ของเครื่องต้นทางไม่น้อยกว่า 2 GB (แนะนำ 4 GB ขึ้นไป)
- มีสิทธิ์ Administrator บนเครื่อง Windows ต้นทาง
- Network connectivity จาก Source ไปยัง SCMT VM ผ่าน TCP port 3345 (Agent access) และจาก SCMT ไปยัง Source ผ่าน TCP port 20000-20047 และ 26000-26600 (P2P switch control)
- Disk space ว่างบน System drive อย่างน้อย 2 GB สำหรับติดตั้ง Agent และ temp files
- แนะนำให้ปิด Antivirus หรือเพิ่ม exclusion ให้โฟลเดอร์ Agent ชั่วคราว เพื่อป้องกัน AV block driver
ขั้นตอนการดาวน์โหลด Agent
- เปิดเว็บบราวเซอร์บนเครื่อง Windows ต้นทาง และเข้า SCMT Console ด้วย URL:
https://<SCMT_IP>/ - Login ด้วย user ที่สร้างไว้สำหรับ Migration (ไม่แนะนำให้ใช้ admin ในการ download agent บนเครื่อง source)
- ไปที่เมนู Download > Agent > Windows
- เลือก architecture ให้ตรงกับเครื่อง (x86 หรือ x64) แล้วกด Download
- ไฟล์ที่ได้จะเป็น installer สกุล
.exeเช่นSangforMT_Agent_Windows_x64.exe
ขั้นตอนการติดตั้ง Agent (Installation Steps)
- Right-click ที่ไฟล์ installer แล้วเลือก Run as administrator
- หน้าต่าง UAC ขึ้นมา กด Yes
- Installer จะเปิดหน้า Welcome กด Next
- อ่านและยอมรับ License Agreement แล้วกด Next
- เลือก Installation Path (แนะนำให้ใช้ค่า default เช่น
C:\Program Files\Sangfor\MTAgent) แล้วกด Next - กรอก SCMT Server IP และ Port (default คือ 3345) ของ SCMT VM ที่ติดตั้งไว้
- กด Install ระบบจะคัดลอกไฟล์และลงทะเบียน service ชื่อ SangforMTAgent โดยอัตโนมัติ
- เมื่อการติดตั้งเสร็จ กด Finish ไม่จำเป็นต้อง reboot ในกรณีส่วนใหญ่
การตรวจสอบ (Verification)
- เปิด Services.msc บนเครื่อง Windows ต้นทาง ค้นหา service ชื่อ SangforMTAgent สถานะต้องเป็น Running และ Startup type เป็น Automatic
- ตรวจสอบ process ผ่าน Task Manager จะเห็น process ของ Agent ทำงานอยู่
- ทดสอบ connectivity จากเครื่อง source ไปที่ SCMT:
Test-NetConnection <SCMT_IP> -Port 3345ผลลัพธ์ TcpTestSucceeded : True - เข้า SCMT Console ไปที่ Migration Task > Source Machines จะต้องเห็นเครื่อง Windows ต้นทาง online ในรายการ พร้อมข้อมูล Hostname, IP, OS version และ Agent version
- เมื่อเห็นเครื่องแล้ว สามารถไปสร้าง Migration Task เพื่อย้าย workload ไปยัง HCI ได้ทันที
การแก้ปัญหาเบื้องต้น (Troubleshooting)
- เครื่องไม่ขึ้นใน SCMT Console: ตรวจสอบ Windows Firewall และ Security Group ว่าอนุญาต outbound TCP/3345 และ inbound TCP 20000-20047 แล้วหรือไม่
-
Installer ค้างที่ขั้นตอน install driver: ปิด Antivirus ชั่วคราว หรือเพิ่ม exclusion ให้โฟลเดอร์
C:\Program Files\Sangfor\ -
Service ไม่ start: ตรวจสอบ log ที่
C:\Program Files\Sangfor\MTAgent\log\หรือ Windows Event Viewer > Application - Error SCMT IP ไม่ถูกต้อง: สามารถแก้ไฟล์ config ของ agent หรือถอนการติดตั้งแล้วลงใหม่
หมายเหตุ (Notes)
- Agent จะ run เป็น Windows Service ตลอดเวลาจนกว่าจะ uninstall ไม่กระทบต่อ business เพราะใช้ CPU/RAM น้อยในช่วงที่ยังไม่มี Migration Task
- หลัง Migration สำเร็จและ Business cutover แล้ว ควร uninstall SCMT Agent ออกจาก VM ปลายทางบน HCI ผ่าน Control Panel > Programs and Features
- สำหรับ Windows Server ที่อยู่ในโดเมน AD ควรตรวจสอบ GPO ที่อาจจำกัดการติดตั้ง unsigned driver หรือ block service ใหม่
- ไม่รองรับการติดตั้ง Agent บนเครื่องที่เป็น Cluster node (เช่น SQL Always On, Windows Failover Cluster) แนะนำให้ใช้วิธี Backup Migration แทน
- ดูบทความเกี่ยวข้อง: การติดตั้ง Agent SCMT บน Linux และ การ Uninstall SCMT Agent
ข้อคิดเห็น
0 ข้อคิดเห็น
โปรด ลงชื่อเข้าใช้ เพื่อแสดงข้อคิดเห็น