91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

安裝配置 HYPER V Core SERVER 的基本命令 - Hyper V 2012 R2

發布時間:2020-08-06 18:20:34 來源:網絡 閱讀:1215 作者:OptimusSnow 欄目:建站服務器

安裝配置 HYPER V Core SERVER 的基本命令 - Hyper V 2012 R2

1. 基本命令

安裝集群故障轉移角色

Install-WindowsFeature -name Failover-Clustering -IncludeManagementTools

關閉防火墻

netsh advfirewall set allprofiles state off

關閉IPv6

New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\services\TCPIP6\Parameters -Name DisabledComponents -PropertyType DWord -Value 0xffffffff

安裝 SNMP

Add-WindowsFeature -Name SNMP-Service -IncludeAllSubFeature -IncludeManagementTools

加入域之前檢查區域和時間的準確性 ,例如:

Set-Date -date "6/17/2018 5:10 AM

確保安裝了最新的 Update Rollups, hotfixes, 包括關鍵性補丁。

https://social.technet.microsoft.com/wiki/contents/articles/20885.hyper-v-update-list-for-windows-server-2012-r2.aspx

確保安裝最新的網卡驅動。例如:

Tip: to check Fibre HBA driver versions, use "Get-WmiObject -class MSFC_FCAdapterHBAAttributes -computername MyTestServer -namespace "root\WMI" | Select-Object DriverVersion, FirmwareVersion, Manufacturer, Model, SerialNumber | Format-Table -AutoSize"

掃描可用磁盤

"rescan" | diskpart

2. 網絡

重命名網卡,例如

Rename-NetAdapter -Name "Ethernet 5" -NewName iSCSI1

配置網卡IP

$netadapter = Get-NetAdapter -Name iSCSI1
$netadapter | New-NetIPAddress -AddressFamily IPv4 -IPAddress 192.168.10.2 -PrefixLength 24 -Type Unicast

給網卡配置DNS

Set-DnsClientServerAddress -InterfaceAlias <name> -ServerAddresses <DNS IP1>,<DNS IP2>

啟用 Jumbo frames

Set-NetAdapterAdvancedProperty -Name iSCSI1 -RegistryKeyword "*JumboPacket" -RegistryValue 9014

對iSCSI網卡禁用文件和打印共享
- 下載 NVSPbind : http://archive.msdn.microsoft.com/nvspbind/ , 拷貝到本地服務器
- 運行 nvspbind.exe . 列出所有網卡信息,啟用/禁用的協議。找出NIC ID(或者查看注冊表)
- 禁用文件和打印共享: 例如: nvspbind - d {913D8F46-BFC7-4359-A024-90485C276984} ms_server
更新網卡綁定順序,規則:iSCSI - 底部, cluster - 中部, “用于外部鏈接的網卡” - 頂部
- 查看當前順序: nvspbind /o ms_tcpip
- 移動到頂部: nvspbind /++ "Local Area Connection" ms_tcpip
- 向上移動一次: nvspbind /+ "Local Area Connection" ms_tcpip
- 移動到底部: "nvspbind /-- "iSCSI1" ms_tcpip"hvr.inf
創建 NIC Teaming:

New-NetLbfoTeam -name AdminTeam -TeamMembers VM1,VM2 -TeamingMode SwitchIndependent -LoadBalancingAlgorithm HyperVPort

創建 converged fabric switch:

''' New-VMSwitch "ConvergedSwitch" –NetAdapterName "ConvergedTeam" –MinimumBandwidthMode Weight –AllowManagementOS $false'''

''' Set-VMSwitch -Name "ConvergedSwitch" -DefaultFlowMinimumBandwidthWeight 0 '''

加入虛擬網卡:
Add-VMNetworkAdapter -ManagementOS -Name "LiveMigration" -SwitchName "ConvergedSwitch"
Add-VMNetworkAdapter -ManagementOS -Name "ClusterCSV" -SwitchName "ConvergedSwitch"
Set-VMNetworkAdapter -ManagementOS -Name "LiveMigration" -MinimumBandwidthWeight 50
Set-VMNetworkAdapter -ManagementOS -Name "ClusterCSV" -MinimumBandwidthWeight 50
New-NetIPAddress -InterfaceAlias "vEthernet (LiveMigration)" -IPAddress 10.40.1.123 -PrefixLength "16"
New-NetIPAddress -InterfaceAlias "vEthernet (ClusterCSV)" -IPAddress 10.30.1.133 -PrefixLength "16"
查看虛擬網卡配置的權重:
"Get-vmnetworkadapter -ManagementOS | fl"

3. iSCSI 配置

Set-Service -Name MSiSCSI -StartupType Automatic
Start-Service MSiSCSI
Install-WindowsFeature Multipath-IO
Enable-WindowsOptionalFeature –Online –FeatureName MultiPathIO
Enable-MSDSMAutomaticClaim -BusType iSCSI
Set-MSDSMGlobalDefaultLoadBalancePolicy -Policy RR
Set-MPIOSetting -NewDiskTimeout 60
Connecting to an iSCSI SAN:
    - New-IscsiTargetPortal -TargetPortalAddress 192.168.30.10
    - Get-IscsiTarget | fl
    - Use 'iscsicpl' to configure iSCSI targets or, as an example, connect using something like: "Connect-IscsiTarget -NodeAddress iqn.2001-05.com.equallogic:8-cb2b76-66f2c8e4a-67859b190555933f-vm2012 -AuthenticationType ONEWAYCHAP -ChapUsername liquid_chap2012 -ChapSecret chappassword–IsMultipathEnabled $True -IsPersistent $True"
    - Initialize a disk, if it's new: "Get-Disk | Where partitionstyle -eq 'raw' | Initialize-Disk -PartitionStyle MBR -PassThru | New-Partition -AssignDriveLetter -UseMaximumSize | Format-Volume -FileSystem NTFS -NewFileSystemLabel "VMs2012-2" -Confirm:$false"

4. 光纖配置

    - Install-WindowsFeature Multipath-IO
    - Enable-WindowsOptionalFeature –Online –FeatureName MultiPathIO
    - Set-MSDSMGlobalDefaultLoadBalancePolicy -Policy RR
    - Set-MPIOSetting -NewDiskTimeout 60
    - Update-MPIOClaimedHW (and restart the server)
    - Launch mpiocpl. If the expected device (COMPELNT, for example) isn't in the devices list, click on the "Discover Multi-Paths" tab and add the FC SAN from the Others list (COMPELNT, for example). Restart the server.
    - To rescan available disks, use " "rescan" | diskpart "
    - Initialize a disk, if it's new: "Get-Disk | Where partitionstyle -eq 'raw' | Initialize-Disk -PartitionStyle MBR -PassThru | New-Partition -AssignDriveLetter -UseMaximumSize | Format-Volume -FileSystem NTFS -NewFileSystemLabel "VMs2012-2" -Confirm:$false"
向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

拜城县| 同江市| 通道| 汝南县| 天峻县| 察隅县| 临城县| 嘉义县| 永川市| 额尔古纳市| 时尚| 桂林市| 临海市| 瑞丽市| 定兴县| 迭部县| 肇东市| 小金县| 葵青区| 潜山县| 炎陵县| 阳春市| 罗定市| 石首市| 宜州市| 钟山县| 珠海市| 桃江县| 石台县| 杭州市| 日喀则市| 樟树市| 渭南市| 黄平县| 松阳县| 神池县| 麟游县| 东平县| 勃利县| 英德市| 农安县|