Our website uses cookies. To find out more information on the cookies we use, please head to our privacy policy.OK

How to change the PxM Virtual Appliance hostname

This article explains how to successfully change the hostname of the PxM Virtual Appliance after the setup has been completed.

Pre-requisites

  • Ensure that the osirium_support account is enabled. This can be done through the Web Management Interface > System Configuration > Settings tab.
  • A backup of the PxM Virtual Appliance should be taken and stored in line with your backup procedure.

Changing the PxM Virtual Appliance hostname

  1. Login via SSH to the PxM Virtual Appliance using the osirium_support account username/password.
  2. Open up the following file using an editor of your choice:

      01| /etc/hostname  

    Example
    At the command line prompt type:
      01| sudo nano /etc/hostname  

  3. Enter the osirium_support password when prompted and hit ENTER.
  4. Save the changes to the /etc/hostname file.
  5. Exit the editor.
  6. Now open up the following file: /etc/hosts.

    Example
    At the command line prompt type:
      01| sudo nano /etc/hosts  

  7. Within the editor, replace the first hostname in the list with the new hostname.

    Example: Existing hosts file before any updates have been made.

       GNU nano 2.2.2       File: /etc/hosts          
     
     127.0.0.1     osirium-master osirium localhost
     # The following lines are desirable for IPv6 capable hosts
     ::1 localhost ip6-localhost ip6-loopback
     fe00::0 ip6-localnet
     fe00::0 ip6-mcastprefix
     fe00::0 ip6-allnodes
     fe00::0 ip6-allroutes
     


    Example: Hostname updated

    Note: The second hostname in the list should not be removed.


       GNU nano 2.2.2       File: /etc/hosts          
     
     127.0.0.1     osirium-primary osirium localhost
     # The following lines are desirable for IPv^ capable hosts
     ::1 localhost ip6-localhost ip6-loopback
     fe00::0 ip6-localnet
     fe00::0 ip6-mcastprefix
     fe00::0 ip6-allnodes
     fe00::0 ip6-allroutes
     

  8. Save the changes to the /etc/hosts file.
  9. Exit the editor.
  10. Then reboot the system using:

    Example
      01| sudo reboot