Modifying the DNS settings of Aria Operations VM
search cancel

Modifying the DNS settings of Aria Operations VM

book

Article ID: 322114

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

This article provides steps to modify the name resolution settings of the Aria Operations vApp.

Environment

VMware Aria Operations 8.12.x
VMware Aria Operations 8.14.x

Resolution

When Aria Operations is initially deployed, the only name resolution settings that can be configured are the DNS servers to be queried.

These steps provide a method for changing the DNS servers as well as adding a default domain and a search domain.

Before choosing Option 1 or Option 2, check for the DNS settings in the vApp Options , and update them if they exist.

If you do not see vApp Options, proceed with Option 1 or Option 2 .

Kindly note there are different steps for Aria Operations 8.14.x and newer releases.

vApp Options

  1. Log into the vRealize Operations admin UI as admin.
  2. Click the Take Offline button to bring the cluster offline, and wait until the button returns to Bring Online.
  3. Log into the vSphere Web UI as administrator.
  4. Perform a Guest Shutdown on each vRealize Operations node you wish to update the DNS settings on.
  5. Right Click the node and click Edit Settings.
  6. Click VM Options.
Note: vApp Options is only available in the Flash version of the vSphere Web Client.  If the vApp Options are blank, see Restoring the vApp properties in vRealize Operations Manager 6.x and Later.
  1. Expand Networking Properties.
  2. Edit the DNS IP address, using a comma to separate if 2 IP addresses will be used.
  3. Click OK to close the Edit Settings window.
  4. Repeat steps 4-9 on all other nodes you with to update the DNS settings on.
  5. Power on the vRealize Operations node(s).
  6. Log into the vRealize Operations admin UI as admin.
  7. Click the Bring Online button to bring the cluster online.
Note: In the HTML5 vSphere Client, vami.DNS.vRealize_Operations_Manager_Appliance can be changed by right clicking the VM, navigating to Configure -> vApp Options -> Properties -> vami.DNS.vRealize_Operations_Manager_Appliance -> SET VALUE

Option 1

  1. Log into the primary node as root via SSH or Console.
  2. ​Issue the following command to update the DNS settings:
/opt/vmware/share/vami/vami_set_dns -d domain -s searchpath DNS_Server_1 DNS_Server_2

Note: Replace domain, searchpath, DNS_Server_1, DNS_Server_2 with the correct values.
The domain, searchpath, and second DNS Server are optional and can be skipped.

Example:  The following command will only set a domain and one DNS server:
/opt/vmware/share/vami/vami_set_dns -d vcloud.local 192.168.1.7
The following command will set all fields:
/opt/vmware/share/vami/vami_set_dns -d vcloud.local -s vcloud.local 192.168.1.7 192.168.1.8
  1. Repeat steps 1 and 2 on all desired nodes.
  2. Verify the changes in /etc/resolv.conf.  If the changes are not reflected, manually add the DNS information in the below format:
nameserver DNS_Server_1
nameserver DNS_Server_2
search searchpath

Note: Replace searchpath, DNS_Server_1, DNS_Server_2 with the correct values.
The searchpath, and second DNS Server are optional and can be skipped.
  1. Verify the DNS changes by running the following command:
resolvectl status

Option 2

  1. Log into the primary node as root via SSH or Console.
  2. Run the following command to open the Network vami menu:
/opt/vmware/share/vami/vami_config_net
  1. Type 4 and press Enter to configure DNS.
  2. Enter the values for DNS Server 1, DNS Server 2 (optional), Domain Name (optional), and Search Path (space separated) (optional), pressing Enter after each value.
  3. Type 1 and press Enter to view the current configuration, and verify it is correct.
  4. Type 0 and press Enter to exit the Network vami config.
  5. Using a text editor, verify the changes in /etc/resolv.conf.  If the changes are not reflected, manually add the DNS information in the below format:
nameserver DNS_Server_1
nameserver DNS_Server_2
search searchpath

​Note: Replace searchpath, DNS_Server_1, DNS_Server_2 with the correct values.
The searchpath, and second DNS Server are optional and can be skipped.
  1. Repeat steps 1-7 on all desired nodes
  2. Verify the DNS changes by running the following command:
resolvectl status
 

For Aria Operations 8.14 and newer releases :

Please note the below steps:
  1. SSH to the node as root.
  2. Backup the resolved.conf file using the command:
    cp /etc/systemd/resolved.conf /etc/systemd/resolved.conf.bak
  3. Using a text editor, edit the resolved.conf file to change the DNS addresses under the [Resolve] section:
    • Example: DNS=<nameserver1> <nameserver2>
    • Note:  Replace the nameserver1 and nameserver2 with your new DNS addresses.
  4. Save and exit the file.
  5. Restart the systemd-resolved service to apply the changes
    systemctl restart systemd-resolved
  6. Verify the updated DNS configuration by viewing the /etc/resolv.conf file:
    cat /etc/resolv.conf
  7. Repeat steps 1-6 on all other nodes in the Aria Operations cluster one by one.


Additional Information

修改 VMware vRealize Operations Manager vApp 的名称解析设置
VMware vRealize Operations Manager vApp において、名前解像度の設定を変更する
Restoring the vApp properties in vRealize Operations Manager 6.x and Later