I want to automate deploying OVA image on VSphere with python. I looked up at some packages viz. Pysphere, psphere but didn't find direct method to do so. is there any Library I'm missing or is there any other way to deploy OVA/OVF files/templates on VSphere with Python. Pls help!!!
How Can I deploy OVA file on Vsphere Client with python
6.7k Views Asked by Uday Swami At
2
There are 2 best solutions below
0
ljubon
On
I have the same situation here and found that there is vSphere automation API here made in Python. Github clone here.
All you need to do is extract SDK and download deploy_ovf_template.py for usage here or from github clone here. This template will work with OVF, but since you want to work with OVA you'll need to do extra work and extract OVA (you'll get OVF and vmdk files).
For other scenarios, check PDF documentation here.
Be aware that this is supported 6.5>= vSphere
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in PYTHON-2.7
- Initialize matrix
- Why is my program adding int as string (4+7 = 47)?
- How to save gensim LDA topics output to csv along with the scores?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- Removing URL features from tokens in NLTK
- python, global name not defined
- Why does collections.OrderedDict use try and except to initialize variables?
- Invalid URL: No host supplied : error while using Request.get(url) in Python
- Python GUI application to copy files one location to another location
- Why I receive CERTIFICATE_VERIFY_FAILED from google adwords api?
- Excel worksheet to Numpy array
- Python datetime.now() with timezone
- local variable referenced before assignment in strange condition
- Python 2.7 - find combinations of numbers in a list that add to another number
- Can't install anything with pip2 on Windows 7 due to UnicodeDecodeError
Related Questions in DEPLOYMENT
- Can I deploy multiple instances of my application on the same windows phone?
- Deploy enterprise (in-house) application on windows phone without developer unlocking the phone?
- uninitialized constant ActiveMerchant::Billing::CreditCard::Validateable (NameError) - in Spree shop
- How to Continuously Develop and Deploy an Access 2010 Database Application
- Efficient way of organizaing mail sending from Rails app
- Deployment over GPRS to embedded devices
- Weblogic 12c web application not start properly after server reboot
- Deployment in Weblogic 10.3, how to change properties
- Deployed Version of MVC Site Not Working
- Laravel 5 on shared hosting getting internal server error
- Integration between Java Applets and .Net dll
- Capistrano Rails deploy with new migration files
- EF Code First - Multiple Application Versions Sharing A Database
- Docker: How to create a stack, multiple images or one base image?
- Slow wpf startup due to publish policy... maybe
Related Questions in VSPHERE
- how to set network configuration for vm in esx host through command?
- An Import-Package could not be resolved Error in Deploying Flex UI project
- How to get server information from VMware
- The type or namespace name 'VimApi' could not be found (are you missing a using directive or an assembly reference?)
- VMWare VIC (Photon OS + Docker) vs CoreOS + Docker
- Excecute command in vSphere Guest machine with Ansible
- VM powered on by VIX API automation shuts down unexpectedly during large file copy on ESXi 6.0 server
- How to use GuestFileManager with Vsphere api?
- ansibl inventory : create temporary inventory with multiple groups with add_host or group_by
- Creating a ticket in VMWare using PowerCLI when free storage in datastore is too less
- Retrieving the list of VMWare snapshots using PowerCLI which fall under my criteria
- How to compare vm Templates between two VMware vsphere environment?
- Is there any ways to get drive information of each vmware in Vmware ESX via Vsphere SDK with Java?
- How to clone a VM to a specific Datastore?
- How to configure VMs to automatically start when the host is on
Related Questions in OVA
- mid-roll video ads becoming post-roll video ads
- VPAID issue with JWPlayer 6
- Error with importing OVF file into Google Compute
- Ordering files inside tar created from bash
- Error on boot after exporting VM from XenServer 6.5 in Ova format and importing on VirtualBox/VmWarePlayer
- Can't import .ova to VirtualBox and can't uncompress with `tar`
- Custom Open Virtual Format (OVF)
- Unzipping Large ZIP Archives on Mac (like latest Microsoft Edge VM)
- I have an .ova file that won't open in VirtualBox
- FlowPlayer OVA Plugin - use XML directly
- Packer virtualbox-vm export with different filename
- Unsupported operand type(s) for +: 'Popen' and 'str'' in subprocess.Popen
- packer: Build type vmware-iso using ova as source
- Make an ovf property mandatory to specify during ovf deployment
- packer: Error when building from source ova
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As far I know there are no appropriate api for deploying ovf template using python package. You can use ovftool, VMware OVF Tool is a command-line utility that allows you to import and export OVF packages to and from many VMware products. download ovftool from vmware site https://my.vmware.com/web/vmware/details?productId=352&downloadGroup=OVFTOOL350
to install ovftool:- sudo /bin/sh VMware-ovftool-3.5.0-1274719-lin.x86_64.bundle
to deploy ova image as template. syntax:- ovftool -dm=thick -ds=3par1 -n=abhi_vm /root/lab/extract/overcloud-esx-ovsvapp.ova vi://root:[email protected]**.**/datacenter/host/cluster
use os.system(ovftool_syntax) to use in your python script.