Nguyen Huu Phan Hoang Ho

Cấu hình quản lý từ xa Hyper-V Server–môi trường workgroup

Cấu hình máy chủ - Server

Đầu tiên chạy  SConfig.cmd trên Hyper-V server, giao diện sconfig, thực hiện các bước sau:

  1. Chọn dòng thứ 4: Configure Remote Management trên menu SConfig.
  2. Tiếp theo chọn Allow MMC Remote Management và Enable Windows PowerShell
    image
  3. Sau khi kích hoạt Windows PowerShell bạn cần khởI động lại máy.
  4. sau khi khởi động– quay trở lại màn hình SConfig chọn  Allow Server Manager Remote Management

Chú ý Server Manager Remote Management yêu cầu PowerShell phải được kích hoạt trước .

5.Chọn Return to main menu

Tạo tài khoản quản trị trên Hyper-V Server.  Màn hình SConfig:

  1. Chọn Add Local Administrator)
  2. Nhập tên tàI khoản cho phép quản trị từ xa trên Windows 7
  3. Thiết lập mật khẩu cho tài khoảnimage

Kế tiếp cần kích hoạt thiết lập cho phép truy cập từ xa các thiết bị – chạy lệnh sau trên cmd: reg add HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Settings /v AllowRemoteRPC /t reg_dword /d 1 image

Để hoàn tất  thiết lập khởi động lại server.

Cấu hình máy trạm - Desktop   

Tải và cài đặt Remote Server Administration Toolkit: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d

Kích hoạt remote management tools:  

  1. Mở Start menu –> Control Panel
  2. Chọn Programs and Features –> Turn Windows features on or off
  3. Trong Remote Server Administration Tools chọn dấu chọn Hyper-V Tools và Server Manager trong danh sách –> Click OK

image

Cấu hình tập tin hosts phân giải địa chỉ server Hyper-V

  1. Mở Start menu –> Chọn All Programs –> Accessories
  2. Chuột phảI Notepad –>Run as administrator
  3. Trong màn hình notepad chọn menu File –> Open… 
  4. Trỏ đến đường dẫn “Windows\System32\Drivers\etc” trên hệ thống
  5. Thay đổi thiết lập tập tinText Documents (*.txt) thành All Files
  6. Mở tập tin “hosts”, thêm vào địa chỉ ip tương ứng tên server Hyper-V.
  7. Lưu lại tập tin.

image

Kích hoạt WinRM kết nối Hyper-V server:

  1. Mở Start menu –> Chọn All Programs –> Accessories
  2. Chuột phảI Command Prompt –> Run as administrator
  3. Trong màn hình cmd gõ winrm quickconfig và enter –>  Chọn y
  4. Nhập tiếp dòng lệnh sau winrm set winrm/config/client @{TrustedHosts="RemoteComputerName"} –> enter

Lưu ý thay thế “RemoteComputerName” thành địa chỉ hoặc tên Hyper-V server.

  1. Bật firewall trên máy tính ngườI dùng cho phép quản lý từ xa: netsh advfirewall firewall set rule group="Remote Volume Management" new enable=yes

image

Sử dụng HVRemote kích hoạt quản lý từ xa Hyper-V trên máy tính ngườI dùng.

  1. Tải HVRemote:http://code.msdn.microsoft.com/HVRemote/Release/ProjectReleases.aspx
  2. Mở Start menu –> Chọn All Programs –> Accessories
  3. Chuột phải Command Prompt –> Run as administrator
  4. Chuyển đường dẫn hiện hàng sang đường dẫn chứa HVRemote đã lưu
  5. Gõ cscript hvremote.wsf /mode:client /anondcom:grant /firewallhypervclient:enable /mmc:enable và đánh enter.

image

Tiếp theo mở Server Manager: Mở Start menu –> All Programs –> Administrative Tools –> Chọn Server Manager

Nhập tên máy chủ Hyper-V cần kết nối

image

Kết thúc.

Nguồn