Skip to main content

Calculate expected measurement of an AMD SEV-SNP guest VM for confidential computing

Project description

sev-snp-measure

Scope

Calculate expected measurement of an AMD SEV-SNP guest VM for confidential computing.

Installation

From pip

Install from pip:

pip install sev-snp-measure

This installs the sevsnpmeasure package and a sev-snp-measure command-line script.

From Github

Clone the Github repo and run the script directly from the local directory:

git clone https://github.com/IBM/sev-snp-measure.git
cd sev-snp-measure
./sev-snp-measure.py --help

Usage

$ sev-snp-measure --help
usage: sev-snp-measure [-h] --vcpus VCPUS --ovmf OVMF [--kernel KERNEL] [--initrd INITRD] [--append APPEND]

Calculate AMD SEV-SNP launch measurement

optional arguments:
  -h, --help       show this help message and exit
  --vcpus VCPUS    Number of vcpus
  --ovmf OVMF      OVMF file to calculate hash from
  --kernel KERNEL  kernel file to calculate hash from
  --initrd INITRD  initrd file to calculate hash from (use with --kernel)
  --append APPEND  the kernel command line to calculate hash from (use with --kernel)

For example:

sev-snp-measure --vcpus=1 --ovmf=OVMF.fd --kernel=vmlinuz --initrd=initrd.img --append="console=ttyS0 loglevel=7"

Notes

If you have any questions or issues you can create a new issue here

Pull requests are welcome!

License

Apache 2.0 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sev-snp-measure-0.0.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

sev_snp_measure-0.0.1-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file sev-snp-measure-0.0.1.tar.gz.

File metadata

  • Download URL: sev-snp-measure-0.0.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for sev-snp-measure-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e5dbf49b258f01f890fa91583f96f2834e11f715d979039929dee57becee8ab2
MD5 c38a5d409c7798a2d26b5ad92d388af6
BLAKE2b-256 7b894275388db26337067daa2e912a076581f4588ba8059261eb55dc11f1a3d2

See more details on using hashes here.

File details

Details for the file sev_snp_measure-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sev_snp_measure-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 48a2f34fc572e689091b17bca2fb200082daa48a1db91ba9ff81718137914e88
MD5 0f9c7136288982a3fdb49e245c267a7f
BLAKE2b-256 afa21084c46b076a8dbfed03d65c3c8e09c22a7de9363b159a2fcefb98b3821f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page