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:
- Chọn dòng thứ 4: Configure Remote Management trên menu SConfig.
- Tiếp theo chọn Allow MMC Remote Management và Enable Windows PowerShell
- Sau khi kích hoạt Windows PowerShell bạn cần khởI động lại máy.
- 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:
- Chọn Add Local Administrator)
- Nhập tên tàI khoản cho phép quản trị từ xa trên Windows 7
- Thiết lập mật khẩu cho tài khoản
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
Để 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:
- Mở Start menu –> Control Panel
- Chọn Programs and Features –> Turn Windows features on or off
- Trong Remote Server Administration Tools chọn dấu chọn Hyper-V Tools và Server Manager trong danh sách –> Click OK
Cấu hình tập tin hosts phân giải địa chỉ server Hyper-V
- Mở Start menu –> Chọn All Programs –> Accessories
- Chuột phảI Notepad –>Run as administrator
- Trong màn hình notepad chọn menu File –> Open…
- Trỏ đến đường dẫn “Windows\System32\Drivers\etc” trên hệ thống
- Thay đổi thiết lập tập tinText Documents (*.txt) thành All Files
- Mở tập tin “hosts”, thêm vào địa chỉ ip tương ứng tên server Hyper-V.
- Lưu lại tập tin.
Kích hoạt WinRM kết nối Hyper-V server:
- Mở Start menu –> Chọn All Programs –> Accessories
- Chuột phảI Command Prompt –> Run as administrator
- Trong màn hình cmd gõ winrm quickconfig và enter –> Chọn y
- 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.
- 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
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.
- Tải HVRemote:http://code.msdn.microsoft.com/HVRemote/Release/ProjectReleases.aspx
- Mở Start menu –> Chọn All Programs –> Accessories
- Chuột phải Command Prompt –> Run as administrator
- Chuyển đường dẫn hiện hàng sang đường dẫn chứa HVRemote đã lưu
- Gõ cscript hvremote.wsf /mode:client /anondcom:grant /firewallhypervclient:enable /mmc:enable và đánh enter.
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
Kết thúc.
Nguồn