You can use cloud-init to easily configure multiple Address Manager services on your VM by creating a local ISO image that contains the set of server services and mounting the ISO to an installed Address Manager VM.
To configure server services using cloud-init
- Log in to a local Linux machine using the command line.
-
Create a file that contains the cloud-init configuration information for the
Address Manager services that you would like to configure. For more information
on configuring additional server services, refer to Reference: Address Manager server service configuration examples.
The following contains an example of the contents of a file called user-data:
#cloud-config bluecat_service_config: payload: | { "version": "1.3.0", "services": { "license": { "configurations": [ { "licenseConfiguration": { "key": "21951-14900-A0190-2C2F3-31A90", "clientID": "123456789012345" } } ] }, "interfaces": { "configurations": [ { "interfacesConfiguration": { "routes": [ { "cidr": 0, "gateway": "172.24.0.1", "network": "default" } ], "networkInterfaces": [ { "eth0": { "physical": { "active": true, "description": "eth0cloudinit", "v4addresses": [ { "ip4": "172.24.0.174", "cidr": 16 } ], "v6addresses": [] } } } ], "dedicatedManagement": false } } ] }, "ssh": { "configurations": [ { "sshConfiguration": { "enable": true, "tacacs": { "enable": false } } } ] } } }
-
Create a metadata configuration file containing dsmode
information.
The following contains an example of the contents of a file called meta-data:
dsmode: local
-
From the command line of a Linux machine, generate the ISO file that will
contain the Address Manager service configuration information using the
following command:
genisoimage -output service-config.iso -volid cidata -joliet -rock user-data meta-data
Where
user-data
is the name of the server service configuration file andmeta-data
is the name of the metadata configuration file. - Log in to the VMware vSphere.
- Navigate to the location of the Address Manager VM to be configured with the server service configuration.
-
Edit the virtual machine settings so that its virtual CD/DVD device is
configured to use the ISO image (instead of the physical CD/DVD drive).
- Select the tab for the virtual machine you just created.
- Click Edit virtual machine settings.
-
On the Hardware tab, select
CD/DVD drive. On the right side:
- Select Connect at power on.
- Select Use ISO image file.
- Click Browse and navigate to your saved ISO image file.
-
If your virtual machine is currently powered on, reboot the machine. Otherwise,
power on the virtual machine.
The virtual machine boots from the ISO image and cloud-init configures the selected Address Manager services.