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

安装配置 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"

原文地址:http://blog.51cto.com/snowlai/2135339

时间: 2024-08-01 10:45:13

安装配置 HYPER V Core SERVER 的基本命令 - Hyper V 2012 R2的相关文章

cacti中文安装配置与监控wWindows Server和Linux服务器

Cacti做为当今天运维人员的主流监控工具已经应该很广泛了,下面我就来把我的安装步骤罗列如下; (1).Cacti安装之前要准备Linx平台下的Web架构: (2).Linux下的Web搭建的方法如下; [[email protected] ~]# yum -y install httpd mysql-server php php-mysql gd net-snmp php-snmp net-       snmp-utils net-snmp-devel mysql-devel  openss

安装配置linux (Ubuntu server)

昨晚安装好了ububtu 14.04 server 64-bit   今天就得配置服务器了  上午安装了  mysql  phpmyadmin  apache php5   tomcat  jdk还算顺利 1. 在宿主机的windows安装了一个 Xshell 相应的在linux里也要安装ssh服务 这样就可以在windows和虚拟机的linux间传递文件,在windows下载的安装文件可以传递到虚拟机中的linux里. 2. 安装好apache后 在宿主windows里浏览测试 3. 安装ap

MCSA / Windows Server 2016 安装,配置和管理 Nano Server

原文地址:http://blog.51cto.com/52share/2317743

ZABBIX安装配置过程

1.环境描述: redhat 6.5 zabbix 2.4.5 172.30.0.195 2.环境准备: yum install pcre* yum install openssl* yum -y install net-snmp-devel curl-devel yum -y install automake autoconf libtool make yum -y install gcc gcc-c++ glibc yum -y install libmcrypt-devel mhash-d

nginx的安装配置详解

title: nginx的安装配置详解tags: nginx,虚拟服务器,curl nginx的安装配置详解 1. 介绍各个常用的服务端口 21 ftp :22 ssh:25 smtp:3306 mysql:873 rsync:3389 远程桌面:161 snmp:111 rpcbind:80 www http:443 https:110 pop3:53 dns:514 rsyslog 我们常用的nslookup和dig查询域名解析工具的安装包为bind-utils,如yum install b

So Easy! Oracle在Linux上的安装配置系列二

本篇是So Easy!Oracle11gr2在linux上的安装配置的第二篇,本篇将讲述oracle11g r2的安装 oracle安装的前期准备 oracle的安装 工具软件rlwrap-0.42.tar.gz的安装 oracle环境变量设置 文档位置: http://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm 1.oracle安装的前期准备 7安装Linux的一些基础开发包 # export LANG=en_US.UTF-8

[转载]Windows 2012 R2安装SharePoint 2013 手动安装工具软件

之前介绍过在window 2012中安装SharePoint 2013,这次,借着SharePoint 2013 sp1补丁发布之际,介绍下在window 2012 r2中安装SharePoint 2013并打sp1补丁的简单参考,废话不多说,直接进入正文吧. 1.系统的版本,Windows Server 2012 R2 DateCenter版本: 在安装SharePoint之前,我已经完成了所有的准备工作,如:安装操作系统.修改机器名.设置静态Ip.安装FrameWork 3.5.安装IIS.

在Windows Server 2012 R2的Hyper-V中设置虚拟机启用增强会话模式

在Windows Server 2012 R2的Hyper-V中,可以为虚拟机提供一种全新的连接方式,就是“增强会话模式”,它将让您更加方便的对虚拟机进行操作,比如分辨率的调整.设备的加载,最为方便的是在虚拟机和主机间的文件交换,就是我们平常最常用的操作复制和粘贴(不支持拖拽的方式). 虚拟机的增强会话模式默认并未开启,但开启操作也并不复杂: 使用条件: 虚拟机系统需要是Windows 8.1或Windows Server 2012 虚拟机中的Remote Desktop Service必须启用

SQL Server 2016 CTP3 集成R语言安装配置手册

1. 适用范围 SQL Server 2016 CTP3基于 Windows Server 2016 TP3进行单机R集成部署指引手册 非域环境,R非群集 2. 安装准备 2.1 硬件准备 MSDN建议最低1GB内存,但我们考虑到R需要大量内存进行计算故建议至少4GB 2.2 软件准备 Revolution R Open 3.2.2 for Revolution R Enterprise 7.5.0 http://go.microsoft.com/fwlink/?LinkId=626650 Re