vmware / vmware/pyvmomi

ListProcesses does not list complete command line in windows VMs

Open
#842 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs verification
Dominant language
Python
Stars
2.3k
Forks
763
PR merge metrics
No merged PRs in 30d

Description

pyvmomi 6.7.1
Hypervisor: VMware ESXi, 6.7.0, 13006603
Guest OS: Microsoft Windows Server 2016 or later (64-bit)
Compatibility: ESXi 6.7 and later (VM version 14)
VMware Tools: Running, version:10341 (Current)

win_vm_mor is the MOR for the VM
win_content is the service content for the VM

win_gom = win_content.guestOperationsManager NamePasswordAuthentication = vim.vm.guest.NamePasswordAuthentication win_auth = NamePasswordAuthentication(username='Administrator', password='password') ps_list = win_gom.processManager.ListProcesses(vm=win_vm_mor, auth=win_auth) [p for p in ps_list if 'Phtm' in p.cmdLine]
the output is:
[(vim.vm.guest.ProcessManager.ProcessInfo) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
name = 'Phtm.exe',
pid = 4156,
owner = 'WIN2K16\Administrator',
cmdLine = 'Phtm.exe',
startTime = 2019-09-27T19:00:55Z,
endTime = ,
exitCode =
}]

Our complete command line is Phtm.exe followed by many command line options, which we do not see here.

This works on Linux VMs, we can get the complete command line in cmdLine.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported ProcessManager.ListProcesses call and compare the Windows ProcessInfo cmdLine result with the Linux behavior described in the issue. Investigate whether the missing arguments are exposed by the VMware guest API on Windows; done means resolving the behavior or documenting the platform limitation and its expected result.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.