บทนำ
Automatic Virtual Machine Activation (AVMA) ถูกนำเข้ามาครั้งแรกใน Windows Server 2012 R2 เทคโนโลยีนี้ช่วยให้สามารถ Activate Virtual Machines ทั้งหมดที่รัน Guest Windows Server บน Hyper-V Host ที่มี Windows Server Datacenter Edition ได้โดยอัตโนมัติ ดังนั้น VM ใหม่ที่รัน Windows Server จะถูก Activate อัตโนมัติเมื่อเริ่มต้น โดยไม่ต้องใช้ MAK Key, Activate บน KMS Server, เชื่อมต่อ Internet หรือ Activate ผลิตภัณฑ์ด้วยตนเอง
จำไว้ว่า Windows Server Datacenter อนุญาตให้รัน VM Windows Server ได้ไม่จำกัดจำนวน (Windows Server Licensing and Virtualization) และด้วย AVMA การ Activate VM จะง่ายขึ้นมาก
ข้อกำหนดระบบ AVMA
- Hyper-V Host ที่ Activated แล้ว รัน Windows Server 2016 / 2012 R2 Datacenter Edition (Windows Server 2012, 2008 R2, 2008 ไม่รองรับ AVMA)
- Guest OS บน VM สามารถเป็น Windows Server 2016/2012 R2 Datacenter, Standard หรือ Essentials Editions (Desktop Windows Versions ไม่สามารถ Activate ได้ด้วยวิธีนี้)
- Windows Server 2012 R2 Host ไม่สามารถ Activate VM ที่รัน Windows Server 2016 ใดๆ ได้
- ต้องระบุ Public Key ของ AVMA (แสดงด้านล่าง) เป็น Product Key บน Guest OSs
- Integration Services ต้องติดตั้งบน VM และ Option Data Exchange (Management → Integration Services) ต้อง Enable ใน Properties ของ VM
- Guest OS ต้องมี Microsoft Hyper-V Activation Component (ติดตั้งระหว่าง Setup Integration Services)
Guest OS แลกเปลี่ยนข้อมูล AVMA Activation กับ Hyper-V Host ผ่าน VMbus โดยใช้ KVP Objects (Key + Value) ที่อยู่ใน Registry Key: HKLM\Software\Microsoft\Virtual Machine\Guest
AVMA Keys สำหรับ Windows Server 2016 / 2012 R2
เพื่อ Activate Guest OSs ด้วย AVMA ต้องระบุ AVMA Keys ที่แตกต่างกันตาม Version และ Edition ของ OS
Windows Server 2012 R2
| Edition | AVMA Key |
|---|---|
| Datacenter | Y4TGP-NPTV9-HTC2H-7MGQ3-DV4TW |
| Standard | DBGBW-NPF86-BJVTX-K3WKJ-MTB6V |
| Essentials | K2XGM-NMBT3-2R6Q8-WF2FK-P36R2 |
Windows Server 2016
| Edition | AVMA Key |
|---|---|
| Datacenter | TMJ3Y-NTRTM-FJYXT-T22BY-CWG3J |
| Standard | C3RCX-M6NRP-6CXC9-TW2F2-4RHYD |
| Essentials | B4YNW-62DX9-W8V6M-82649-MHBKQ |
ระบุ AVMA Key ระหว่างติดตั้ง Guest OS หรือเมื่อใดก็ได้หลังจากนั้นด้วยคำสั่ง (Run as Administrator):
slmgr –ipk <AVMA_Key>
ตัวอย่าง: slmgr –ipk C3RCX-M6NRP-6CXC9-TW2F2-4RHYD
เมื่อ Activate OS ด้วย AVMA Event ID 12309 จะปรากฏใน Application Log ของ Guest OS และ Event ID 12310 ใน Hyper-V Host Log ดังนั้น Admin สามารถติดตาม License ที่ออกบน Hyper-V Host ได้
สถานะ Activation ปัจจุบันของ Guest OS ดูได้ด้วย:
slmgr /dli
หาก VM Activate ด้วย AVMA จะเห็นบรรทัด: VIRTUAL_MACHINE_ACTIVATION channel
หลัง Activate แล้ว Guest OSs จะ Renew Activation ทุก 7 วัน