Need to capture console/screen for vsphere
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 763
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to install virtual machine on esxi through pyvmomi (version : 6.0.0.2016.6) using python (version : 2.7.3).
when machine is powered on ,i need to input some boot parameters and based on that i need to input username, password and select other parameters from the menu displayed during os installation.
Can you please let me know which library/api's will help me in doing this? How can i achieve this thing.
I got to know about MKS ticket but don't know how to use it.
from pyVim import connect
from pyVmomi import vim
si = connect.SmartConnect(host='10.164.72.35',user='root', pwd='temp123')
atexit.register(connect.Disconnect, si)
vm=None
content = si.content
objView = content.viewManager.CreateContainerView(content.rootFolder,
[vim.VirtualMachine],
True)
vmList = objView.view
for curr_vm in vmList:
if curr_vm.name == "myvm":
vm = curr_vm
break
objView.Destroy()
ticket = vm.AcquireTicket("mks")
ticket = vm.AcquireMksTicket()
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the pyVim/pyVmomi usage shown in the issue and the AcquireMksTicket entry point. Determine the supported way to capture the VM console and provide installation input, then verify it against the vSphere API behavior; done means a reproducible console-interaction flow is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cloud, infrastructure
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100