vcsa change ip&&change ip for VMware vCenter Server Appliance

To start this, access the vCenter Appliance Management Interface aka VAMI, with your root credentials. 

Use https://[VCENTER_SERVER_IP]:5480 to access the VAMI

Navigate to Networking -> Manage -> Expand the “Networking Interfaces” -> Edit

Change The vCenter Server Appliance IP Address Network

Change the IP Settings and save the settings with “OK” button

Change The vCenter Server Appliance IP Address IP

Reboot the vCenter Server and check the accessibility of the vCenter with the new IP address. If you can access the vCenter just try to login and check the inventory objects.

My ESXi Servers were in disconnected state as below

Change The vCenter Server Appliance IP Address Disconnected

To change the IP address changes in the ESXi Hosts we need to manually edit the vpxa.cfg file located in the /etc/vmware/vpxa location otherwise remove the ESXi Hosts from the inventory and re-adding is required

 

1

cat /etc/vmware/vpxa/vpxa.cfg | grep "serverIp"

Edit the vpxa.cfg file with a text editor, I used vi editor which is very common one

Change The vCenter Server Appliance IP Address Verify

Find the “<serverIp>IP_ADDRESS</serverIp>” field and change to the new IP address

Change The vCenter Server Appliance IP Address Change IP

Verify the changes

Change The vCenter Server Appliance IP Address verify again

Restart the hostd and vpxa services

Change The vCenter Server Appliance IP Address restart services

Use below commands to restart the services

 

1

/etc/init.d/hostd restart

 

1

/etc/init.d/vpxa restart

Once, those services restarted host will be automatically connected again to the vCenter server.

Feel free to use scripts to the bulk execution using your coding skills. I hope this helps.

VMware vSphere – How to Change VCSA 6.x IP address ?

JULY 10, 2019 BY LINGESWARAN R 2 COMMENTS

How to change VCSA (vCenter Server Appliance) 6.x IP address? VMware vSphere 6.7 U1 is the last version which offers Windows-based vCenter Server. Going forward, we must start adapting in-house vCenter appliance which runs on VMware Photon OS (Linux Variant). VMware doesn’t recommend to change the vCenter appliance IP address.  If  FQDN is set as an IP address during deployment, you can’t change the IP address. If you change from CLI or Linux console (editing network file), the vCenter page can’t be accessed due to broken SSO.

This article assumes that you have set the FQDN as a name during the deployment.

 

1. Login to VCSA Management page as root.  By default, VCSA management portal listens on 5480 port.

https://VCSA_Hostname:5480

VMware vSphere Appliance Management - Login Page

VMware vSphere Appliance Management – Login Page

 

2. Navigate to the networking tab and click on Manage.   Click on Edit to update the IP.

VCSA - Networking - ipv4 Edit

VCSA – Networking – ipv4 Edit

 

3. If you are unable to update the IP using VAMI (vCenter Appliance Management Interface), we can use the VAMI cli from the console or using SSH. This issue is more likely that you have deployed VCSA  using IP address as FQDN.

VCSA - ipv4 Updating disabled

VCSA – ipv4 Updating disabled

 

4. Login to vCenter Appliance console directly as root user.

login as: root

VMware vCenter Server Appliance 6.5.0.12000

Type: vCenter Server with an embedded Platform Services Controller

root@192.168.2.213's password:
Connected to service

    * List APIs: "help api list"
    * List Plugins: "help pi list"
    * Launch BASH: "shell"

Command> shell
Shell access is granted to root
root@photon-machine [ ~ ]#

 

5. Invoke VAMI config cli utility to update the ipv4 IP address.

root@photon-machine [ /etc/systemd/network ]# /opt/vmware/share/vami/vami_config_net

 Main Menu

0)      Show Current Configuration (scroll with Shift-PgUp/PgDown)
1)      Exit this program
2)      Default Gateway
3)      Hostname
4)      DNS
5)      Proxy Server
6)      IP Address Allocation for eth0
Enter a menu number [0]: 0

Network Configuration for eth0
IPv4 Address:   192.168.2.213
Netmask:        255.255.255.0
IPv6 Address:
Prefix:

Global Configuration
IPv4 Gateway:   192.168.2.1
IPv6 Gateway:
Hostname:       photon-machine
DNS Servers:
Domain Name:
Search Path:
Proxy Server:


 Main Menu

0)      Show Current Configuration (scroll with Shift-PgUp/PgDown)
1)      Exit this program
2)      Default Gateway
3)      Hostname
4)      DNS
5)      Proxy Server
6)      IP Address Allocation for eth0
Enter a menu number [0]: 6
Type Ctrl-C to go back to the Main Menu

Configure an IPv6 address for eth0? y/n [n]:
Configure an IPv4 address for eth0? y/n [n]: y
Use a DHCPv4 Server instead of a static IPv4 address? y/n [n]:
IPv4 Address [192.168.2.213]: 192.168.2.212
Netmask [255.255.255.0]:
IPv4 Address:   192.168.2.212
Netmask:        255.255.255.0

Is this correct? y/n [y]:

Reconfiguring eth0...

 

6. Reboot the appliance to take effect the new IP address.

 

7. Login back to VAMI console to check the new IP of VCSA.

After changing IP address - VCSA

After changing IP address – VCSA

 

8. vCenter should be accessible using the new IP.

vCenter - Login Page

vCenter – Login Page

 

 

If you are more familiar with the Linux operating system, you could directly edit the system network configuration and reboot the appliance.

root@photon-machine [ /etc/systemd/network ]# cat 10-eth0.network

[Match]
Name=eth0

[Network]
Gateway=192.168.2.1
Address=192.168.2.212/24
DHCP=no

[DHCP]
UseDNS=false
root@photon-machine [ /etc/systemd/network ]#

 

Hope this article is informative to you. Share it! Be Sociable !!!

Advertisements

FILED UNDER: VCSA APPLIANCEVMWARE VSPHERE 6.5TAGGED WITH: VCSA 6.XVMWARE VSPHERE

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值