Comments (3)
through code: 1, how can i check whether or not a vm has been installed OS? 2, when i am creating a vm, can i assign a ip address to it so when i finished OS installing i can use network service without login and configure it by hand? can someone help? thanks 🙂
from vsphere-automation-sdk-python.
天浩老师,我有两个问题想请教您,1是我怎么用代码查看一个虚拟机是否已经装过操作系统?2是我能否在用python自动化创建虚拟机的时候就对该虚拟机进行网络设置,分配一个IP,这样我在创建好虚拟机,然后装好系统之后,不用手动登录进去配置IP 就可以使用网络服务了? 希望您方便的时候能回复我一下,谢谢。🙂
from vsphere-automation-sdk-python.
@BourneNeo You should be able to access the guest information using following API:
https://code.vmware.com/doc/preview?id=4206#/doc/vim.vm.GuestInfo.html
This API is not available automation SDK yet so you have to use pyVmomi.
You can't assign IP address without an OS installed. Here is an example about how to assign an IP address using pyVmomi: https://github.com/rreubenur/vmware-pyvmomi-examples/blob/master/network_configure.py
from vsphere-automation-sdk-python.
Related Issues (20)
- Failed to import a CA certificate into vCenter Server HOT 6
- [question] how to list custom_attributes for vm? HOT 1
- Air Gap Installation Issue HOT 3
- No LICENSE.txt file in the package HOT 4
- Support communication with vCenter Server via kerberos authenticated proxy sever HOT 1
- pip install vsphere-automation-sdk-python is broken. HOT 3
- vcenter.iso.iso_path.get_datastore_path() missing HOT 3
- from vmware.vapi.vsphere.client import create_vsphere_client HOT 8
- How to get VM Hardware of a OVF Template in Content Library HOT 5
- Not able to create ticket for Web console for newly created VM HOT 6
- Possible problem with Python 3.12? HOT 7
- Use "com" folder as an implicit namespace HOT 1
- How to get list of running Tasks ? HOT 2
- How to get list of running Tasks using vsphere-automation-sdk-python? HOT 1
- Add "Rename" to VM operations HOT 1
- issue with installation HOT 2
- How to Get VM current CPU and Memory Usage by Python SDK HOT 1
- Outdated pip package HOT 1
- No Module Named 'vmware' HOT 4
- Failure to Create Session with vSphere Client Using Self-Signed Certificate HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vsphere-automation-sdk-python.