VIRT-WHAT-CVM(1)
π VIRT-WHAT-CVM, section 1 (Virtualization Support)
okay bestie, so virt-what-cvm(1) is literally the manual page for virt-what-cvm, and it lives under Virtualization Support in section 1. it's short-ish, it's cute, and it will tell you if the machine you're sitting inside is a confidential VM. no cap. π
β¨ NAME β¨
virt-what-cvm β detect if we are running in a confidential virtual machine π΅οΈβοΈ
πΈ SUMMARY πΈ
virt-what-cvm [options]
π¦ DESCRIPTION π¦
so "virt-what-cvm" is a tool, and what it does is detect whether the program is running inside a confidential virtual machine. that's the whole job. iconic. π
the program prints out a list of "facts" about that confidential virtual machine, and those facts come from heuristics. one fact per line, periodt. β
and here's the important bit, so listen up: if it prints nothing at all and the script exits with code 0 (aka no error), that can mean any of these things:
- the program is running on bare-metal, or
- the program is running inside a non-confidential virtual machine, or
- the program is inside a type of confidential virtual machine that we don't know about or that we cannot detect.
so like. silence is not a confession of safety, bestie. π
π FACTS π
amd-sev
this is a confidential guest running with AMD SEV technology π₯
Status: tested on Fedora 37 QEMU+KVM
amd-sev-es
this is a confidential guest running with AMD SEV-ES technology β¨
Status: tested on Fedora 37 QEMU+KVM
amd-sev-snp
this is a confidential guest running with AMD SEV-SNP technology π«Ά
Status: tested on Microsoft Azure SEV-SNP CVM
Status: tested on Fedora 38 QEMU+KVM SEV-SNP (devel snapshot)
intel-tdx
this is a confidential guest running with Intel TDX technology π
Status: tested on Microsoft Azure TDX CVM
hyperv-hcl
this is a confidential guest running unenlightened under the HyperV (Azure) HCL (Host Compatibility Layer). this one will be paired with amd-sev-snp. π§
Status: tested on Microsoft Azure SEV-SNP & TDX CVM
s390-protvirt
this is a confidential guest running on s390x with the Protected Virtualization (Secure Execution) technology π
π EXIT STATUS π
programs that use or wrap "virt-what-cvm" should check that the exit status is 0 before they attempt to parse the output of the command. like, check first, parse later. that's the rule. π
a non-zero exit status means some error happened, for example an unrecognized command line argument. and if the exit status is non-zero, then the output "facts" (if any were printed at all) cannot be guaranteed and should be ignored. fr fr, just throw them away. ποΈ
also, the exit status has nothing to do with whether the program is running on baremetal or under confidential virtualization, and also nothing to do with whether "virt-what-cvm" managed detection "correctly" β which is basically unknowable given the huge variety of virtualization systems out there. π
π«Ά RUNNING VIRT-WHAT-CVM FROM OTHER PROGRAMS π«Ά
"virt-what-cvm" is designed so that you can easily run it from other programs, or wrap it up in a library. lowkey thoughtful of it. π
your program should check the exit status (see the section above βοΈ).
β οΈ IMPORTANT NOTE β οΈ
this program detects whether it is likely to be running within a known confidential VM, but it does NOT prove that the environment is trustworthy.
to attain trust in the environment, you need an attestation report for the virtual machine, which is then verified by an already trusted 3rd party. no shortcuts, bestie.
the hardware features this program relies on to establish facts about the confidential virtualization environment are exactly those features whose behaviour will be proved by verification of an attestation report.
this program MAY have false positives. i.e. it may report that it's a confidential VM when it's in fact a non-confidential VM faking it. π
this program SHOULD NOT have false negatives. i.e. it should not fail to report existance of a confidential VM. caveat: this only applies to environments which have been explicitly tested.
if this program does print a fact, that can be used for enabling or disabling use of certain features, according to whether they're appropriate for a confidential environment. none the less, the VM MUST NOT be trusted until an attestation report is verified. periodt. π
as a protection against false negatives from this tool, environments requiring high assurance should take one or more of these measures:
- The facts reported by this program
I<SHOULD>should be measured into one of the TPM PCRs - The attestation report
I<SHOULD>cover the facts reported by this program - The attestation report
I<SHOULD>should cover the enablement status of any features affected by decisions involving facts reported by this tool
π₯ SEE ALSO π₯
<http://people.redhat.com/~rjones/virt-what/><https://github.com/Azure/confidential-computing-cvm-guest-attestation><https://virtee.io/>
π AUTHORS π
Daniel P. BerrangΓ© <berrange @ redhat . com> π
π COPYRIGHT π
(C) Copyright 2023 Red Hat Inc., <http://people.redhat.com/~rjones/virt-what/>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
π REPORTING BUGS π
bugs can be viewed on the Red Hat Bugzilla page: <https://bugzilla.redhat.com/>.
if you find a bug in virt-what-cvm, please follow these steps to report it, bestie. it's giving organized:
- Check for existing bug reports Go to
<https://bugzilla.redhat.com/>and search for similar bugs. someone may already have reported the same bug, and they may even have fixed it. π - Capture debug and error messages Run
virt-what-cvm -d > virt-what-cvm.log 2>&1
and keep virt-what-cvm.log. it may contain error messages which you should submit with your bug report.
- Get version of virt-what-cvm. Run
virt-what-cvm --version
- Submit a bug report. Go to
<https://bugzilla.redhat.com/>and enter a new bug. please describe the problem in as much detail as possible.
remember to include the version numbers (step 3) and the debug messages file (step 2) and as much other detail as possible. β¨
- Assign the bug to
rjones @ redhat.comassign or reassign the bug torjones @ redhat.com(without the spaces). you can also send me an email with the bug number if you want a faster response. π
and that's the whole page, bestie β this was virt-what-cvm from virt-what-1.27, dated 2026-01-29, living in the VIRT-WHAT-CVM(1) manpage. slay, go check those TPM PCRs, and stay attested. π¦πβ¨
π¦ where this page comes from
- ubuntu resolute: virt-what 1.27-1build1 Β· GPL-2.0-or-later
- ubuntu stonking: virt-what 1.27-1build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms