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
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5dbf49b258f01f890fa91583f96f2834e11f715d979039929dee57becee8ab2 |
|
MD5 | c38a5d409c7798a2d26b5ad92d388af6 |
|
BLAKE2b-256 | 7b894275388db26337067daa2e912a076581f4588ba8059261eb55dc11f1a3d2 |
File details
Details for the file sev_snp_measure-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: sev_snp_measure-0.0.1-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48a2f34fc572e689091b17bca2fb200082daa48a1db91ba9ff81718137914e88 |
|
MD5 | 0f9c7136288982a3fdb49e245c267a7f |
|
BLAKE2b-256 | afa21084c46b076a8dbfed03d65c3c8e09c22a7de9363b159a2fcefb98b3821f |