GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test.pythoninfo: Detect if running in a container or in a virtual machine (VM) · Issue #152680 · python/cpython

test.pythoninfo: Detect if running in a container or in a virtual machine (VM) #152680

New issue
Copy link
New issue
Copy link
Closed
Closed
test.pythoninfo: Detect if running in a container or in a virtual machine (VM)#152680
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement

Description

@vstinner
vstinner
opened on Jun 30, 2026
Issue body actions

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-152680: Check if running in a container/VM in test.pythoninfo #152668
  • [3.13] gh-152680: Detect container/VM in test.pythoninfo (GH-152668) #152698
  • [3.15] gh-152680: Detect container/VM in test.pythoninfo (GH-152668) #152699
  • [3.14] gh-152680: Detect container/VM in test.pythoninfo (GH-152668) #152700
  • gh-152680: Use the _wmi module in test.pythoninfo #152824
  • [3.13] gh-152680: Detect virtualization on Windows in pythoninfo (GH-152824) #152888
  • [3.15] gh-152680: Detect virtualization on Windows in pythoninfo (GH-152824) #152890
  • [3.14] gh-152680: Detect virtualization on Windows in pythoninfo (GH-152824) #152889

Activity

  1. vstinner
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Jun 30, 2026
  2. vstinner
    added a commit that references this issue on Jun 30, 2026

    pythongh-152680: Check if running in a container/VM in test.pythoninfo

    8b40dff
  3. picnixz
    added
    testsTests in the Lib/test dirTests in the Lib/test dir
    on Jun 30, 2026
  4. vstinner
    added a commit that references this issue on Jun 30, 2026

    gh-152680: Detect container/VM in test.pythoninfo (#152668)

    f1c5363
  5. vstinner
    closed this as completedon Jun 30, 2026
  6. vstinner
    added 3 commits that reference this issue on Jun 30, 2026

    [3.13] gh-152680: Detect container/VM in test.pythoninfo (GH-152668) (#…

    848cb25

    [3.14] gh-152680: Detect container/VM in test.pythoninfo (GH-152668) (#…

    67d4cbf

    [3.15] gh-152680: Detect container/VM in test.pythoninfo (GH-152668) (#…

    e9d064f
  7. maurycy
    added a commit that references this issue on Jul 1, 2026

    Merge branch 'main' into maurycy/bye-abba

    da7d768
  8. vstinner
    added 4 commits that reference this issue on Jul 2, 2026

    gh-152680: Detect virtualization on Windows in pythoninfo (#152824)

    4e4869b

    [3.13] gh-152680: Detect virtualization on Windows in pythoninfo (GH-…

    0d3a87f

    [3.15] gh-152680: Detect virtualization on Windows in pythoninfo (GH-…

    a1a9e6f

    [3.14] gh-152680: Detect virtualization on Windows in pythoninfo (GH-…

    4324eb2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.