vmware / vmware/pyvmomi

pyvmomi - How to obtain the username and password of the Guest operating system?

Open
#769 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

User vim.vm.GuestInfo just can get these information

(vmodl.DynamicProperty) {
               name = u'guest',
               val = (vim.vm.GuestInfo) {
                  dynamicType = <unset>,
                  dynamicProperty = (vmodl.DynamicProperty) [],
                  toolsStatus = 'toolsNotInstalled',
                  toolsVersionStatus = 'guestToolsNotInstalled',
                  toolsVersionStatus2 = 'guestToolsNotInstalled',
                  toolsRunningStatus = 'guestToolsNotRunning',
                  toolsVersion = <unset>,
                  toolsInstallType = <unset>,
                  toolsUpdateStatus = <unset>,
                  guestId = 'windows7Server64Guest',
                  guestFamily = <unset>,
                  guestFullName = 'Microsoft Windows Server 2008 R2 (64 \xe4\xbd\x8d)',
                  hostName = <unset>,
                  ipAddress = <unset>,
                  net = (vim.vm.GuestInfo.NicInfo) [],
                  ipStack = (vim.vm.GuestInfo.StackInfo) [],
                  disk = (vim.vm.GuestInfo.DiskInfo) [],
                  screen = (vim.vm.GuestInfo.ScreenInfo) {
                     dynamicType = <unset>,
                     dynamicProperty = (vmodl.DynamicProperty) [],
                     width = -1,
                     height = -1
                  },
                  guestState = 'notRunning',
                  powerPolicy = <unset>,
                  appHeartbeatStatus = <unset>,
                  guestKernelCrashed = <unset>,
                  appState = <unset>,
                  guestOperationsReady = false,
                  interactiveGuestOperationsReady = false,
                  guestStateChangeSupported = false,
                  generationInfo = (vim.vm.GuestInfo.NamespaceGenerationInfo) []
               }
            },

The username and password of the Guest operation system are not included in these information. Can you help me to get the username and password of the Guest operation system?

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 by reading the vim.vm.GuestInfo definition and the pyvmomi or vSphere API documentation relevant to guest operating-system access. Determine whether the requested credentials are represented or exposed by the API; done would be a documented, supported answer or a clear statement of the limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.