Migrate Windows VM from vSphere to NCS
- Windows Server 2022
- Windows Server 2019
- Windows Server 2016
- Windows Server 2012 R2
- Windows 8
- Windows 8.1
- Windows 10
- 1.ทำการ clone VM ที่เราต้องการจะทำการ migrate

2. download virtio driver ที่เป็น ISO file https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.iso จากนั้นทำการ ISO file ต่อไปยัง VM ที่ clone มา

3. เมื่อทำการเชื่อมต่อ virtio file มายัง VM จะได้ผลลัพธ์ ดังรูป

4. คลิกขวาแล้วเลือก Open in new window

5. ทำการ double click ที่ virtio-win-guest-tools เพื่อทำการติดตั้งทุกอย่างที่จำเป็นเพื่อย้ายขึ้นไปบน OpenStack

6. กด Next

7. เลือก I accept ... แล้วกดปุ่ม Next

8. กดปุ่ม Next เราจะติดตั้งทั้งหมดโดยไม่แก้ไขอะไร

9.กดปุ่ม Install

10. กดปุ่ม Install เพื่อให้ไปต่อ

11. เมื่อติดตั้งเสร็จแล้วให้กด Finish เพื่อติดตั้งต่อ

12. เมือติดตั้งเสร็จแล้วจะขึ ้น Installation Successfully ดังรูป

13. ทำการ check service การทำงานของ QEMU Guest Agent

14. ทำการเปิด remote desktop ที่ server manager

15. ปิด filewall ทุกระดับ

16. ทำการตรวจสอบว่า remote desktop เปิด และ firewall ปิด

17. ทำการ uninstall ตัว VMware Tools

18. ทำการ import virtio registry

19. เลื่อก virtio registry file โดย download ได้ที่

20. เมื่อติดตั้ง virtio registry สำจะแสดงดังรูป

21. ทำการ Download CloudbaseInit ซึ่งเป็น cloud-init สำหรับ Windows ได้ที่

22. ติดตั้ง cloud base init สำหรับ windows

23. เลือก I accept the terms ... แล้วทำการกด Next

24. เลือก Next โดยไม่ต้องแก้ไขสิ่งใด

25. เลือก Next โดยไม่ต้องแก้ไขสิ่งใด

26. เลือก Install เพื่อทำการติดตั้ง

27. เมื่อติดตั้งเสร็จแล้วให้ทำการเลือก
- Run Sysprep ...
- Shutdown ...
28. จากนั้นทำการกด finish จากนั้นรอสักครู่เพื่อให้เครื่อง shutdown

29. ทำการ Download Disk FIle จาก vCenter

30. รอการ download โดยจะได้ file เป็น zip

31. เมื่อ download เสร็จแล้วให้ทำการ extract file

32. เมื่อทำการ extract file จะได้ file ดังรูป

33. ทำการ convert vmdk file ไปยัง qcow2

34. เมื่อ convert เสร็จจะได้ qcow2 file

35. ทำการ upload ขึ้นที่ฝาก file โดยจากตัวอย่างจะใช้ Onedrive

36. เข้าไปที่ nipa space คลิ๊กที่ Image ดังรูป

37 .ทำการใส่ตั้งชื่อ image และ URL ของ image file

38. เลือก Advance settings ทำการเลือก
- Operating System Type เป็น Windows โดยตั้ง Min Disk เป็น 40
- Cloud-Init Agent
- QEMU Agent

39. ไปที่ instances แล้วทำการคลิ๊ก Instances(s) เพื่อสร้าง instance

40. ไปที่ Images เพื่อเลือก Images ที่เรา import เข้ามา

41. เลือก Machine Type

42. ตั้งชื่อ Instance

43. เลือก storage type สำหรับ volume

44. ตั้งค่า IP address

45. เลือก security group

46. ทำการสร้าง instance

47. รอการสร้าง instance

48. เมื้อสร้างเสร็จแล้ว click ที่ชื่อ instance

49. คลิ๊กที่ CONSOLE

50. การ migrate Windows VM เป็นที่เรียบร้อย
