vmware / vmware/pyvmomi

UnmountToolsInstaller does not return until a humain answer the VM

Open
#232 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hiya,

I'm trying to mount and unmount vmtools using:

MountToolsInstaller()
UnmountToolsInstaller()

However I've sometimes a VM question to answer, right after the UnmountToolsInstaller() call, like this one:
"The guest operating system has locked the CD-ROM door and is probably using the CD-ROM, which can prevent the guest from recognizing media changes. If possible, eject the CD-ROM from inside the guest before disconnecting. Disconnect anyway and override the lock? (yes/no)"

As the UnmountToolsInstaller() returns none, I cannot answer the VM as it's done with powerOn for instance. Moreover, the application waits for UnmountToolsInstaller() to return, which happens only when someone answer the question.

So I'm wondering if it's a design issue or if I'm not using pyvmomi the proper way. Any help / feedback would be greatly appreciated.

Thanks.

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 tracing MountToolsInstaller() and UnmountToolsInstaller() in pyvmomi and compare their return behavior with powerOn. Reproduce the VM prompt scenario and determine how the API currently handles the blocked unmount; done should define a way for callers to observe or respond to that interaction without waiting indefinitely.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
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.