Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การแก้ไขปัญหา >> ข้อผิดพลาด Windows

วิธีแก้ปัญหาเชื่อมต่อ Remote Hyper-V Server 2019 ไม่ได้ (Trust Issue)

จัดการ Hyper-V Infrastructure ผ่าน Hyper-V Manager หรือ Windows Admin Center ทำได้ทั้ง Local และ Remote (มีประสิทธิภาพกว่าหลาย Server) ตั้งแต่ Windows 8 Microsoft รวม Hyper-V Client ใน Pro/Enterprise Editions (Win 8, 8.1, 10) ทำให้ IT Admin จัดการจาก Client Machine ได้

ขั้นตอนเชื่อมต่อ Remote: เปิด Hyper-V Manager → คลิก Connect to Server… (ขวา)

วิธีแก้ปัญหาเชื่อมต่อ Remote Hyper-V Server 2019 ไม่ได้ (Trust Issue)

บาง IT Admin เจอ Error เชื่อมต่อจาก Windows Client ไป Remote Hyper-V Server สาเหตุหลัก: ขาด Trust ระหว่าง Source และ Target Error:

"An error occurred while attempting to connect to server 'ServerName'. Check that the Virtual Machine Management service is running and that you are authorized to connect to the server. Connecting to remote server failed: The WinRM client cannot process the request. A computer policy does not allow the delegation of the user credentials to the target computer…"
วิธีแก้ปัญหาเชื่อมต่อ Remote Hyper-V Server 2019 ไม่ได้ (Trust Issue)

แก้ได้โดย Enable Trust ผ่าน Group Policy (GUI) นโยบายชื่อ Allow delegating fresh credentials with NTLM-only server authentication

เปิดใช้งาน Delegation of Fresh Credentials

  1. คลิกขวา Start → พิมพ์ gpedit → เปิด Edit Group Policy
  2. ไปที่: Computer Configuration > Administrative Templates > System > Credentials Delegation
  3. วิธีแก้ปัญหาเชื่อมต่อ Remote Hyper-V Server 2019 ไม่ได้ (Trust Issue)
  4. Double-click Allow delegating fresh credentials with NTLM-only server authentication
  5. Enable
  6. คลิก Show… ถัดจาก Add servers to the list
  7. พิมพ์ WSMAN/Hyper-V Server Name (เช่น Server เรียก hyperv01 → พิมพ์ wsman/hyperv01)
  8. วิธีแก้ปัญหาเชื่อมต่อ Remote Hyper-V Server 2019 ไม่ได้ (Trust Issue)
  9. OK → Apply → OK

Group Policy Refresh ทุก 90 นาที (Random 0-30 นาที) ไม่อยากรอ → บังคับ Update:

  1. คลิกขวา Start → Windows PowerShell (Admin) หรือ Command Prompt (Admin)
  2. Yes ยืนยัน Admin
  3. พิมพ์ gpupdate /force → Enter → Policy อัปเดตในไม่กี่วินาที
  4. วิธีแก้ปัญหาเชื่อมต่อ Remote Hyper-V Server 2019 ไม่ได้ (Trust Issue)

ทดสอบเชื่อมต่อ:

  1. เปิด Hyper-V Manager บน Client
  2. Connect to Server… → Another Computer: พิมพ์ Hyper-V Server Name (hyperv01) → Connect as another user → Set User…
  3. วิธีแก้ปัญหาเชื่อมต่อ Remote Hyper-V Server 2019 ไม่ได้ (Trust Issue)
  4. Username Format: servername\user หรือ domain\user (เช่น hyperv01\Administrator)
  5. วิธีแก้ปัญหาเชื่อมต่อ Remote Hyper-V Server 2019 ไม่ได้ (Trust Issue)
  6. OK → OK → เชื่อมต่อสำเร็จ

เพลิดเพลินกับการจัดการ Virtual Machines แบบ Remote!