If encryption is enabled on a Virtual SAN cluster, any core dumps in the vm-support package are encrypted. You can collect the package from the vSphere Web Client, and you can specify a password if you expect to decrypt the core dump later.
The vm-support package includes log files, core dump files, and more.
Prerequisites
Inform your support representative that encryption is enabled for the Virtual SAN cluster. Your support representative might ask you to decrypt core dumps to extract relevant information.
Note: Core dumps can contain sensitive information. Follow your organization's security and privacy policy to protect sensitive information such as host keys.
Procedure
- Log in to vCenter Server with the vSphere Web Client.
- Click Hosts and Clusters, and right-click the ESXi host.
- Select Export System Logs.
- In the dialog box, select Password for encrypted core dumps, and specify and confirm a password.
- Leave the defaults for other options or make changes if requested by VMware Technical Support, and click Finish.
- Specify a location for the file.
- If your support representative asked you to decrypt the core dump in the vm-support package, log in to any ESXi host and follow these steps.
- Log in to the ESXi and connect to the directory where the vm-support package is located.
The filename follows the pattern esx.date_and_time.tgz.
- Make sure that the directory has enough space for the package, the uncompressed package, and the recompressed package, or move the package.
- Extract the package to the local directory.
vm-support -x *.tgz .
The resulting file hierarchy might contain core dump files for the ESXi host, usually in /var/core, and might contain multiple core dump files for virtual machines. - Decrypt each encrypted core dump file separately.
crypto-util envelope extract --offset 4096 --keyfile vm-support-incident-key-file --password encryptedZdump decryptedZdump
vm-support-incident-key-file is the incident key file that you find at the top level in the directory.encryptedZdump is the name of the encrypted core dump file.
decryptedZdump is the name for the file that the command generates. Make the name similar to the encryptedZdump name.
- Provide the password that you specified when you created the vm-support package.
- Remove the encrypted core dumps, and compress the package again.
vm-support --reconstruct
- Log in to the ESXi and connect to the directory where the vm-support package is located.
- Remove any files that contain confidential information.