开启辅助访问

超融合+云计算论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 3874|回复: 10
收起左侧

[安装部署] 修改节点IPMI\Hypervisor\CVM IP地址的方法一

[复制链接]
发表于 2016-7-25 10:30:02 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
有两种修改节点IPMIHYPERVISORCMV IP地址的方法;方法一:配置CLUSTER的时候修改,这种方式的前提是要有三个以上节点可以同时配置;方法二:登录单个节点进行IP配置,下文就是方法二的配置方法。

REMOTE CONSOLE IP ADDRESS CONFIGURATION

The Intelligent Platform Management Interface (IPMI) is a standardized interface used to manage a host and monitor its operation. To enable remote access to the console of each host, you must configure the IPMI settings within BIOS.

The Nutanix cluster provides a Java application to remotely view the console of each node, or host server. You can use this console to configure additional IP addresses in the cluster.

The procedure for configuring the remote console IP address is slightly different for each hardware platform.

Configuring the Remote Console IP Address (BIOS)

About this task

Procedure

  1. Connect a keyboard and monitor to a node in the Nutanix block.
  2. Restart the node and press Delete to enter the BIOS setup utility.

    There is a limited amount of time to enter BIOS before the host completes the restart process.

  3. Press the right arrow key to select the IPMI tab.
  4. Press the down arrow key until BMC network configuration is highlighted and then press Enter.
  5. Press down the arrow key until Update IPMI LAN Configuration is highlighted and press Enter to select Yes.
  6. Select Configuration Address source and press Enter.
  7. Select Static and press Enter.
  8. Assign the Station IP addressSubnet mask, and Router IP address.



    094710yyczcm9r7eyi980m.png

  9. Review the BIOS settings and press F4 to save the configuration changes and exit the BIOS setup utility.

    The node restarts.

Configuring the Remote Console IP Address (command line)

About this task

You can configure the management interface from the hypervisor host on the same node.

Perform these steps once from each hypervisor host in the cluster where the management network configuration need to be changed.

Procedure

  1. Log on to the hypervisor host with SSH (vSphere or AHV) or remote desktop connection (Hyper-V).
  2. Set the networking parameters.
    • vSphere
      root@esx# /ipmitool -U ADMIN -P ADMIN lan set 1 ipsrc static
      root@esx# /ipmitool -U ADMIN -P ADMIN lan set 1 ipaddr mgmt_interface_ip_addr
      root@esx# /ipmitool -U ADMIN -P ADMIN lan set 1 netmask mgmt_interface_subnet_addr
      root@esx# /ipmitool -U ADMIN -P ADMIN lan set 1 defgw ipaddr mgmt_interface_gateway
    • Hyper-V
      > ipmiutil lan -I mgmt_interface_ip_addr -G mgmt_interface_gateway `
      -S mgmt_interface_subnet_addr -U ADMIN -P ADMIN
    • AHV
      root@ahv# ipmitool -U ADMIN -P ADMIN lan set 1 ipsrc static
      root@ahv# ipmitool -U ADMIN -P ADMIN lan set 1 ipaddr mgmt_interface_ip_addr
      root@ahv# ipmitool -U ADMIN -P ADMIN lan set 1 netmask mgmt_interface_subnet_addr
      root@ahv# ipmitool -U ADMIN -P ADMIN lan set 1 defgw ipaddr mgmt_interface_gateway

    • Replace mgmt_interface_ip_addr with the new IP address for the remote console.
    • Replace mgmt_interface_gateway with the gateway IP address.
    • Replace mgmt_interface_subnet_addr with the subnet mask for the new IP address.

  3. Show current settings.
    • vSphere
      root@esx# /ipmitool -v -U ADMIN -P ADMIN lan print 1
    • Hyper-V
      > ipmiutil lan -r -U ADMIN -P ADMIN 
    • AHV
      root@ahv# ipmitool -v -U ADMIN -P ADMIN lan print 1

    Confirm that the parameters are set to the correct values.

Configuring Host Networking (ESXi)

About this task

You can access the ESXi console either through IPMI or by attaching a keyboard and monitor to the node.

Procedure

  1. On the ESXi host console, press F2 and then provide the ESXi host logon credentials.
  2. Press the down arrow key until Configure Management Network is highlighted and then press Enter.
  3. Select Network Adapters and press Enter.
  4. Ensure that the connected network adapters are selected.

    If they are not selected, press Space to select them and press Enter to return to the previous screen.

    094712ldxod4rx0dl7novq.png

  5. If a VLAN ID needs to be configured on the Management Network, select VLAN (optional) and press Enter. In the dialog box, provide the VLAN ID and press Enter.
  6. Select IP Configuration and press Enter.
  7. If necessary, highlight the Set static IP address and network configuration option and press Space to update the setting.
  8. Provide values for the following: IP AddressSubnet Mask, and Default Gateway fields based on your environment and then press Enter .
  9. Select DNS Configuration and press Enter.
  10. If necessary, highlight the Use the following DNS server addresses and hostname option and press Space to update the setting.
  11. Provide values for the Primary DNS Server and Alternate DNS Server fields based on your environment and then press Enter.
  12. Press Esc and then Y to apply all changes and restart the management network.
  13. Select Test Management Network and press Enter.
  14. Press Enter to start the network ping test.
  15. Verify that the default gateway and DNS servers reported by the ping test match those that you specified earlier in the procedure and then press Enter.

    Ensure that the tested addresses pass the ping test. If they do not, confirm that the correct IP addresses are configured.

    094713zfu2f1u2np7uup7p.png

    Press Enter to close the test window.

  16. Press Esc to logoff.

Enabling 1 GbE Interfaces (Hyper-V)

If 10 GbE networking is specified during cluster setup, 1 GbE interfaces are disabled on Hyper-V nodes. Follow these steps if you need to enable the 1 GbE interfaces later.

About this task

To enable the 1 GbE interfaces, do the following on each host:

Procedure

  1. Log on to the Hyper-V host with Remote Desktop Connection and start PowerShell.
  2. List the network adapters.

    > Get-NetAdapter | Format-List Name,InterfaceDescription,LinkSpeed

    Output similar to the following is displayed.

    Name                 : vEthernet (InternalSwitch)
    InterfaceDescription : Hyper-V Virtual Ethernet Adapter #3
    LinkSpeed : 10 Gbps

    Name : vEthernet (ExternalSwitch)
    InterfaceDescription : Hyper-V Virtual Ethernet Adapter #2
    LinkSpeed : 10 Gbps

    Name : Ethernet
    InterfaceDescription : Intel(R) 82599 10 Gigabit Dual Port Network Connection
    LinkSpeed : 10 Gbps

    Name : Ethernet 3
    InterfaceDescription : Intel(R) 82599 10 Gigabit Dual Port Network Connection #2
    LinkSpeed : 10 Gbps

    Name : NetAdapterTeam
    InterfaceDescription : Microsoft Network Adapter Multiplexor Driver
    LinkSpeed : 20 Gbps

    Name : Ethernet 4
    InterfaceDescription : Intel(R) I350 Gigabit Network Connection #2
    LinkSpeed : 0 bps

    Name : Ethernet 2
    InterfaceDescription : Intel(R) I350 Gigabit Network Connection
    LinkSpeed : 1 Gbps

    Make a note of the Name of the 1 GbE interfaces you want to enable.

  3. Configure the interface.

    Replace interface_name with the name of the 1 GbE interface as reported by Get-NetAdapter.

    1. Enable the interface.

      > Enable-NetAdapter -Name "interface_name"

    2. Add the interface to the NIC team.

      > Add-NetLBFOTeamMember -Team NetAdapterTeam -Name "interface_name"

      If you want to configure the interface as a standby for the 10 GbE interfaces, include the parameter -AdministrativeMode Standby

    Perform these steps once for each 1 GbE interface you want to enable.

Configuring Host Networking for Hyper-V Manually

Procedure

  1. Log on to the Hyper-V host with the IPMI remote console and start a Powershell prompt.
  2. List the network adapters.

    > Get-NetAdapter | Format-List Name,InterfaceDescription,LinkSpeed

    Output similar to the following is displayed.

    Name                 : vEthernet (InternalSwitch)
    InterfaceDescription : Hyper-V Virtual Ethernet Adapter #3
    LinkSpeed : 10 Gbps

    Name : vEthernet (ExternalSwitch)
    InterfaceDescription : Hyper-V Virtual Ethernet Adapter #2
    LinkSpeed : 10 Gbps

    Name : Ethernet
    InterfaceDescription : Intel(R) 82599 10 Gigabit Dual Port Network Connection
    LinkSpeed : 10 Gbps

    Name : Ethernet 3
    InterfaceDescription : Intel(R) 82599 10 Gigabit Dual Port Network Connection #2
    LinkSpeed : 10 Gbps

    Name : NetAdapterTeam
    InterfaceDescription : Microsoft Network Adapter Multiplexor Driver
    LinkSpeed : 20 Gbps

    Name : Ethernet 4
    InterfaceDescription : Intel(R) I350 Gigabit Network Connection #2
    LinkSpeed : 0 bps

    Name : Ethernet 2
    InterfaceDescription : Intel(R) I350 Gigabit Network Connection
    LinkSpeed : 0 bps

    Make a note of the InterfaceDescription for the vEthernet adapter that links to the physical interface you want to modify.

  3. Start the Server Configuration utility.

    > sconfig

  4. Select Networking Settings by typing 8 and pressing Enter.
  5. Change the IP settings.
    1. Select a network adapter by typing the Index number of the adapter you want to change (refer to theInterfaceDescription you found in step 2) and pressing Enter.

      Warning: Do not select the network adapter with the IP address 192.168.5.1. This IP address is required for the Controller VM to communicate with the host.

    2. Select Set Network Adapter Address by typing 1 and pressing Enter.
    3. Select Static by typing S and pressing Enter.
    4. Enter the IP address for the host and press Enter.
    5. Enter the subnet mask and press Enter.
    6. Enter the IP address for the default gateway and press Enter.

      The host networking settings are changed.

  6. (Optional) Change the DNS servers.

    DNS servers must be configured for a host to be part of a domain. You can either change the DNS servers in thesconfig utility or with setup_hyperv.py.

    1. Select Set DNS Servers by typing 2.
    2. Enter the primary and secondary DNS servers and press Enter.

      The DNS servers are updated.

  7. Exit the Server Configuration utility by typing 4 and pressing Enter then 15 and pressing Enter.

Joining a Host to a Domain Manually

About this task

For joining a host to a domain by using utilities provided by Nutanix, see the Nutanix Hyper-V Administration guide. Perform these steps for each Hyper-V host in the cluster to manually join a host to a domain.

Procedure

  1. Log on to the Hyper-V host with the IPMI remote console and start a Powershell prompt.
  2. Join the host to the domain and rename it.

    > Add-Computer -DomainName domain_name -NewName node_name `
    -Credential domain_namedomain_admin_user -Restart -Force
    • Replace domain_name with the name of the join for the host to join.
    • Replace node_name with a new name for the host.
    • Replace domain_admin_user with the domain administrator username.

    The host restarts and joins the domain.

Configuring Host Networking (AHV)

About this task

To configure host networking, do the following:

Procedure

  1. Edit the settings of port br0, which is the internal port on the default bridge br0.
    1. Log on to the host console as root.

      You can access the hypervisor host console either through IPMI or by attaching a keyboard and monitor to the node.

    2. Open the network interface configuration file for port br0 in a text editor.

      root@ahv# vi /etc/sysconfig/network-scripts/ifcfg-br0

    3. Update entries for host IP address, netmask, and gateway.

      The block of configuration information that includes these entries is similar to the following:

      ONBOOT="yes" 
      NM_CONTROLLED="no"
      PERSISTENT_DHCLIENT = 1
      NETMASK="subnet_mask"
      IPADDR="host_ip_addr"
      DEVICE="br0"
      TYPE="ethernet"
      GATEWAY="gateway_ip_addr"
      BOOTPROTO="none"
      • Replace host_ip_addr with the IP address for the hypervisor host.
      • Replace subnet_mask with the subnet mask for host_ip_addr.
      • Replace gateway_ip_addr with the gateway address for host_ip_addr.

    4. Save your changes.
  2. Update the resolver configuration file with the details of your domain name server.
    1. Open the resolver configuration file.

      root@ahv# vi /etc/resolv.conf

    2. Update the values of the nameserver parameter and then save and close the file.
    3. Restart the networking service.

      root@ahv# service network restart

  3. Assign the AHV host to a VLAN. For information about how to add the AHV host to a VLAN, see Assigning an Acropolis Host to a VLAN in the Acropolis Hypervisor Administration Guide.

Enabling 1 GbE Interfaces (AHV)

This procedure describes how to add the 1 GbE uplinks to the default OVS bridge br0, which is used by the Controller VM, Acropolis hypervisor, and guest VMs, and must be performed on each Nutanix Controller VM in the cluster.

About this task

To add the 1 GbE uplinks to the default OVS bridge named br0, do the following:

Procedure

  1. Log on to the Controller VM with SSH.
  2. Determine the names of the 1 GbE interfaces.

    nutanix@cvm$ manage_ovs show_interfaces

    Output similar to the following is displayed.

    name  mode link speed
    eth0 1000 True 1000
    eth1 1000 False None
    eth2 10000 True 10000
    eth3 10000 True 10000

  3. Verify which interfaces are assigned to bridge br0.

    nutanix@cvm$ manage_ovs --bridge_name br0 show_uplinks

    Output similar to the following indicates that interfaces eth2 and eth3 are bonded and that the bonded port is assigned to the br0 switch. The output also indicates that the interfaces eth0 and eth1 are not on bridge br0.

    Uplink ports: bond0
    Uplink ifaces: eth2 eth3

  4. Add the 1 GbE interfaces to a bonded port bond1 on bridge br0.

    nutanix@cvm$ manage_ovs --interfaces 1g --bond_name bond1 update_uplinks

Configuring the Controller VM IP Address

About this task

You can manually assign an IP address or change the IP address that you assigned through Foundation. Do not use a DHCP server to assign an IP address to a Controller VM. The use of a DHCP server is not supported for Controller VMs. Assign a static IP address instead.

Procedure

  1. Log on to the hypervisor host with SSH or the IPMI remote console (vSphere or AHV) or remote desktop connection (Hyper-V).
  2. Log on to the Controller VM.

    Accept the host authenticity warning if prompted, and enter the Controller VM nutanix password.

  3. Change the network interface configuration.

    CAUTION: Do not place a backup copy of the ifconfig-ethX script files in the /etc/sysconfig/network-scripts/ directory. Ensure that there are no backup files (.bkp or similar file extension) in this location.

    1. Open the network interface configuration file.

      nutanix@cvm$ sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0

      Enter the nutanix password.

    2. Press A to edit values in the file.
    3. Update entries for netmaskgateway, and address.

      The block should look like this:

      ONBOOT="yes" 
      NM_CONTROLLED="no"
      NETMASK="subnet_mask"
      IPADDR="cvm_ip_addr"
      DEVICE="eth0"
      TYPE="ethernet"
      GATEWAY="gateway_ip_addr"
      BOOTPROTO="none"
      • Replace cvm_ip_addr with the IP address for the Controller VM.
      • Replace subnet_mask with the subnet mask for cvm_ip_addr.
      • Replace gateway_ip_addr with the gateway address for cvm_ip_addr.
      Warning: Carefully check the file to ensure there are no syntax errors, whitespace at the end of lines, or blank lines in the file.

    4. Press Esc.
    5. Type :wq and press Enter to save your changes.
  4. Restart the Controller VM.

    nutanix@cvm$ sudo reboot

    Enter the nutanix password if prompted. Wait to proceed until the Controller VM has finished starting, which takes approximately 5 minutes.

欢迎来到 【nutanix.club】最大的中文超融合&云计算社区 请记住我们的网址 www.nutanix.club [这是默认签名,更换签名点这里!]
回复

使用道具 举报

发表于 2016-8-4 22:34:23 | 显示全部楼层
thanks4sharing
欢迎来到 【nutanix.club】最大的中文超融合&云计算社区 请记住我们的网址 www.nutanix.club [这是默认签名,更换签名点这里!]
回复 支持 反对

使用道具 举报

发表于 2016-12-31 19:13:28 | 显示全部楼层
thanks for share
欢迎来到 【nutanix.club】最大的中文超融合&云计算社区 请记住我们的网址 www.nutanix.club [这是默认签名,更换签名点这里!]
回复 支持 反对

使用道具 举报

发表于 2017-1-16 17:26:11 | 显示全部楼层
没有中文的?
欢迎来到 【nutanix.club】最大的中文超融合&云计算社区 请记住我们的网址 www.nutanix.club [这是默认签名,更换签名点这里!]
回复 支持 反对

使用道具 举报

发表于 2017-5-30 19:52:19 | 显示全部楼层
没有中文的?
欢迎来到 【nutanix.club】最大的中文超融合&云计算社区 请记住我们的网址 www.nutanix.club [这是默认签名,更换签名点这里!]
回复 支持 反对

使用道具 举报

发表于 2017-8-17 13:47:21 | 显示全部楼层
thanks
欢迎来到 【nutanix.club】最大的中文超融合&云计算社区 请记住我们的网址 www.nutanix.club [这是默认签名,更换签名点这里!]
回复

使用道具 举报

发表于 2018-3-17 17:49:05 | 显示全部楼层
感谢分享,谢谢,好文,学习。
欢迎来到 【nutanix.club】最大的中文超融合&云计算社区 请记住我们的网址 www.nutanix.club [这是默认签名,更换签名点这里!]
回复 支持 反对

使用道具 举报

发表于 2018-6-11 18:19:08 | 显示全部楼层
Nutanix CE 安装过程中HOST IP & CVM IP要如何设置呀???这两个设置要看那个网络配置?
欢迎来到 【nutanix.club】最大的中文超融合&云计算社区 请记住我们的网址 www.nutanix.club [这是默认签名,更换签名点这里!]
回复 支持 反对

使用道具 举报

发表于 2018-12-11 16:59:24 | 显示全部楼层
先标记,后续尝试下
欢迎来到 【nutanix.club】最大的中文超融合&云计算社区 请记住我们的网址 www.nutanix.club [这是默认签名,更换签名点这里!]
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

返回顶部快速回复上一主题下一主题返回列表微信扫一