Skip to main content

Update the Static IP for the Horizon Cloud Connector Virtual Appliance

Information about the static IP for the Horizon Cloud Connector virtual appliance is saved in a container file in the deployed virtual appliance. If you update the static IP address for the Horizon Cloud Connector virtual appliance, you must also perform some additional steps. You must manually reconfigure the container settings file and then send the new static IP information to all desktops associated with the paired Horizon pod.

Where the static IP is stored

The static IP address of the deployed Horizon Cloud Connector virtual appliance is saved in the -/opt/container-data/cc-settings/ip.conf file and is shared with containers running inside the appliance.

For example, the static IP information might appear in the file as follows.

cc.address=10.117.163.20

Where the proxy settings are stored

The proxy settings of the Horizon Cloud Connector virtual appliance are stored in the -/opt/container-data/cc-settings/proxy.conf and are shared with containers running inside the appliance.

For example, the proxy information might appear in the file as follows.

proxyHost=null
proxyPort=0
proxySsl=false
proxyUsername=null
proxyPassword=
noProxyFor=null

Prerequisites

  • Configure a new static IP address for the Horizon Cloud Connector virtual appliance.

  • Determine the location of the reset-keys.sh script file in your deployed appliance's filesystem.

    For Horizon Cloud Connector version 2.4.1 and earlier 2.x versions, the reset-keys.sh file is located in a scripts directory within the /opt directory structure.

    For Horizon Cloud Connector versions 2.5 and later, the reset-keys.sh file is located in the /opt/horizon/bin directory.

Procedure

  1. In the deployed appliance, update the IP address for eth0 in the appropriate network configuration file and apply the new configuration.

For Horizon Cloud Connector version 2.5 and later:

  • Navigate to the /etc/systemd/network directory.
  • Run command ip addr show to identify the relevant network interface name. The interface is likely eth0.
  • Identify the relevant network configuration file in the /etc/systemd/network directory, such as 10-eth0.network and save a backup copy of that file before you edit it.
  • After saving a backup copy, edit the identified file (like 10-eth0.network) to specify your desired static IP address, and optionally the subnet mask, gateway, and DNS servers.
  • Save the edited configuration file.
  • Change the edited file's mode to 644 (for example chmod 644 10-eth0.network)

For Horizon Cloud Connector version 2.4 and earlier:

  • Navigate to the /etc/systemd/network directory.

  • Run command ip addr show to identify the relevant network interface name. The interface is likely eth0.

  • Identify the relevant network configuration file in the /etc/systemd/networkdirectory, such as 10-eth0.network and save a backup copy of that file before you edit it.

  • After saving a backup copy, edit the identified file to specify your desired static IP address, and optionally change settings like the subnet mask, gateway, and DNS servers.

  • Save the edited configuration file.

  • Change the edited file's mode to 644 (for example chmod 644 10-eth0.network)

  • Apply the new configuration by restarting the systemd-networkd service, run command systemctl restart systemd-networkd

    systemctl restart systemd-networkd
    
  1. In the -/opt/container-data/cc-settings/ip.conf file, edit the cc.address line , as shown in the following example.

    cc.address=*10.117.163.20*
    
  2. Reset the Kubernetes cluster. Change to the directory location of reset-keys.sh and run the following commands.

    reset-keys.sh -r
    reset-keys.sh -i
    
  3. Reboot the appliance using the following command.

    reboot -f
    

Was this page helpful?

Provide feedback for this topic

Was this topic helpful?

Please do not include any personal or confidential information.

Generating link…