Title: test.pythoninfo: Detect if running in a container or in a virtual machine (VM) · Issue #152680 · python/cpython · GitHub
Open Graph Title: test.pythoninfo: Detect if running in a container or in a virtual machine (VM) · Issue #152680 · python/cpython
X Title: test.pythoninfo: Detect if running in a container or in a virtual machine (VM) · Issue #152680 · python/cpython
Description: Feature or enhancement It would be useful to help debugging to detect if Python is running in a container or in a virtual machine (VM). Linked PRs gh-152668 gh-152698 gh-152699 gh-152700 gh-152824 gh-152888 gh-152890 gh-152889
Open Graph Description: Feature or enhancement It would be useful to help debugging to detect if Python is running in a container or in a virtual machine (VM). Linked PRs gh-152668 gh-152698 gh-152699 gh-152700 gh-152824 ...
X Description: Feature or enhancement It would be useful to help debugging to detect if Python is running in a container or in a virtual machine (VM). Linked PRs gh-152668 gh-152698 gh-152699 gh-152700 gh-152824 ...
Opengraph URL: https://github.com/python/cpython/issues/152680
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test.pythoninfo: Detect if running in a container or in a virtual machine (VM)","articleBody":"# Feature or enhancement\n\nIt would be useful to help debugging to detect if Python is running in a container or in a virtual machine (VM).\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-152668\n* gh-152698\n* gh-152699\n* gh-152700\n* gh-152824\n* gh-152888\n* gh-152890\n* gh-152889\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2026-06-30T11:49:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/152680/cpython/issues/152680"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1d6dd674-9f93-fec4-8334-6e370d338e35 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A5D0:1029CB:99489E:D3C55B:6A5131A3 |
| html-safe-nonce | c5d8c8ab6492c2e9ded3250f46ba89e078aa96af767235b4cae4a9b65239073d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUQwOjEwMjlDQjo5OTQ4OUU6RDNDNTVCOjZBNTEzMUEzIiwidmlzaXRvcl9pZCI6IjIxMTY3NDQwMzE5NzUzMjIwMTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4f4b0abe8d18c543f98751869fe8031651fd3d65d34ec903718be462359da2a0 |
| hovercard-subject-tag | issue:4776471585 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/152680/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eac158cbb1fa818e452a8a703a358c839d9824d1de47cfd368e4d78f486b081a/python/cpython/issues/152680 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eac158cbb1fa818e452a8a703a358c839d9824d1de47cfd368e4d78f486b081a/python/cpython/issues/152680 |
| og:image:alt | Feature or enhancement It would be useful to help debugging to detect if Python is running in a container or in a virtual machine (VM). Linked PRs gh-152668 gh-152698 gh-152699 gh-152700 gh-152824 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | e840f405b2718e8f2d55aafa9ff27dbce17e29d0c253011d05ea0fea3c78baff |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4ae6027e8ba70c79dc08249bb6cdc1a09d788496 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width