Upgrade to Instance Metadata Service v2
In Oracle Cloud Infrastructure (OCI), both IMDSv1 and IMDSv2 are enabled by default on Compute instances, unless explicitly configured otherwise. Qualys scanners based on image version qVSA-OCI-2.7.45-1 and later support IMDSv2. To enhance the security posture of your OCI Virtual Machine, you can configure it to enforce IMDSv2 only.
- Open the navigation menu and click Compute.
- Under Compute, click Instances.
- Click the Instance as per requirement.
- Click Edit next to the Instance metadata service in the Instance Details section.
- For the Allowed IMDS version, select the Version 2 only.
- Click Save Changes.

- You can re-enable IMDSv1 for this instance if you select the Version 1 and Version 2 options from the Allowed IMDS version and save your changes.
- You could deploy a Qualys scanner with IMDSv2 from OCI CLI using the --instance-options file://metadatav2.json option.