Setting a default domain name for deployed virtual machines

When you deploy an image, the domain name of the resulting virtual machine is, under most circumstances, automatically assigned by IBM® Power® Virtualization Center. PowerVC can determine the domain name for you, or you can set a default domain name for new virtual machines. For example, if you set a default domain name of company.com, then deploy a virtual machine named vm1, the fully-qualified system name would be vm1.company.com.

When you set a default domain name for newly deployed virtual machines in PowerVC, that domain name is always used. If you do not set a default domain name, the default is automatically set to the domain name of the PowerVC management server. If PowerVC cannot retrieve that value and you do not set a default domain name, the default is automatically set to 'localdomain'. You can then set the domain name manually after you deploy an image. See the documentation for the operating system on the deployed virtual machine for information about how to manually set the domain name.

Complete the following steps to set a default domain name for deployed virtual machines.

  1. Run the powervc-config compute server-domain command:

    powervc-config compute server-domain

    The default domain name is set on virtual machines that PowerVC deploys either on an individual host or at a global level. If no domain name is specified, the command displays the currently configured domain name values.
  2. Run the powervc-config compute server-domain --set command to set default domain names. Specify options that are based on the hosts that you want to target:
    • To set the default domain name at a global level for all hosts:

      powervc-config compute server-domain --set <Domain>

    • To set the default domain name for an individual host, specify the default domain name and the name of the host:

      powervc-config compute server-domain --set <Domain> --host <HOST>

  3. Restart the nova compute processes.
    • On HMC managed systems, run the powervc-config compute server-domain command on the PowerVC server:
      powervc-config compute server-domain --restart
    • On PowerVM® NovaLink managed systems, run the powervc-services command on each compute node.
      /opt/ibm/powervc/bin/powervc-services restart
  4. Run the powervc-config compute server-domain command without any options to verify the new settings.