Install Agents in Gold Images

These steps are similar to installing on BSD (.txz) hosts, with an extra step to restart the Qualys Cloud Agent service and AMI instance.

  1. Start the Gold Image instance.
  2. Copy the Qualys Cloud Agent onto the instance.
  3. Install the Qualys Cloud Agent using the following commands:
    > sudo pkg install -U qualys-cloud-agent.x86_64.txz
    > sudo /usr/local/qualys/cloud-agent/bin/qualys-cloud-agent.sh
    ActivationId="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    CustomerId="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" HostIdSearchDir="/mydir/"
    ServerUri=<qualys_pod_url>/CloudAgent
  4. Stop the instance and create an image out of the instance. This completes the bake-in process.

When the instance is started it will activate the Cloud Agent which will provision itself and continue functioning as expected.