Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows

สร้าง Virtual Machine ด้วย Hyper-V บน Windows 10

ถ้าใช้ Windows 8/10 น่าจะรู้จัก Hyper-V: VM software ติดมากับ Windows ตั้งแต่ Server 2008 ต่อมา Microsoft เปิดให้ Windows 8/10 ใช้ได้ แต่ เฉพาะ Pro และ Enterprise เท่านั้น เนื่องจาก Built-in ผสานกับ Windows ลึก Power user ควบคุม/อัตโนมัติได้ง่ายด้วย PowerShell มาสร้าง VM ด้วย Hyper-V กัน

เปิดใช้งาน Hyper-V ใน Windows 10

  1. ค้น "Turn Windows features on or off" ใน Start menu เปิด (หรือรัน optionalfeatures.exe ใน Run)
  2. ติ๊ก "Hyper-V" → OK
  3. Windows จะติดตั้ง แล้วขอ Restart → Save work → "Restart Now"

สร้าง Virtual Machine ใน Hyper-V

หลัง Restart Hyper-V พร้อมใช้งาน ค้น "Hyper-V" ใน Start menu เปิด (หรือ Control Panel → Administrative Tools)

  1. สร้าง Virtual Network Switch ก่อน (เพื่อให้ VM เข้าอินเทอร์เน็ตได้): Actions → "Virtual Switch Manager"
  2. เลือก "External" ด้านขวา → "Create Virtual Switch"
  3. ตั้งชื่อ Switch, Connection type: "External network", เลือก Network card → ติ๊ก "Allow management OS to share this network adapter" → OK
  4. คลิก Yes ตอน Warning
  5. สร้าง VM: Right-click ชื่อคอมพิวเตอร์ใน Hyper-V Manager → New → Virtual Machine
  6. Wizard: Next → ตั้งชื่อ VM (ติ๊ก "Store in different location" ถ้าอยากเก็บที่อื่น) → Next
  7. Generation: 64-bit OS = "Generation 2", 32-bit = "Generation 1" → Next
  8. กำหนด RAM ให้ Guest OS (เช่น 2GB) → Next
  9. เลือก Virtual Switch ที่สร้างไว้ → Next
  10. ตั้งค่า Disk (Default หรือปรับขนาด เช่น 40GB) → Next
  11. เลือก "Install an operating system from a bootable image file" → Browse เลือก ISO (เช่น Windows 10) → Next
  12. Verify settings → Finish
  13. Right-click VM ใหม่ → "Connect" → คลิกไอคอน Power เริ่ม VM
  14. ติดตั้ง Guest OS ตามหน้าจอ → พร้อมใช้งาน

แบ่งปันความคิดเห็นและประสบการณ์ใช้ Hyper-V สร้าง VM ได้ครับ