is it possible to deploy OVF on ESX using Python? - python

is it possible to deploy OVF on ESX using Python ?
I looked at PySphere but i couldn't find how to deploy OVF with it, does anyone know ?
thanks,
Eyal.

I've found this "OVF tool"
https://my.vmware.com/group/vmware/details?downloadGroup=OVFTOOL352&productId=353
Deploying OVF is very easy with it
to use it with python i've just used os.system()
example:
os.system('ovftool --acceptAllEulas --net:"OVF-Builder"="VM Network" --diskMode=thin --name='+str(hostname)+' /OVF_Store/ga/'+str(build)+'.ovf vi://root:pass#10.10.10.10')

Yes it is possible, see this:
https://github.com/vmware/pyvmomi-community-samples/issues/54
You just need to replicate what has been shown in rbvmomi

If you use vSphere 6.0 or newer please check out the vCloud Suite for vSphere. Its a new python SDK released by VMWare that has support for this. Dont let the name fool you into thinking its for vCloud Director because it is not. http://developercenter.vmware.com/web/sdk/60/vcloudsuite-python Specifically check out this: https://vdc-download.vmware.com/vmwb-repository/dcr-public/61f5ad82-3743-4f3b-94fc-2bf1cbcbd8b8/679a5d4d-c48b-477f-b35e-b81c469a656f/client/com.vmware.vcenter.html#module-com.vmware.vcenter.ovf_client

Related

Amazon machine image in AWS for Anaconda python

Are there any amazon machine image available for Anaconda python in Amazon web services? I am looking for something that is similar to R AMI like this -->http://www.louisaslett.com/RStudio_AMI/
Please let me know
I strongly believe that you can use Predictive Analytics Framework AMI, unfortunately it isn't free (but you can get free trial).
You can get probably best results with your own AMI. The easiest way is to use one of free AMI, install all necessary packages, then create image from it.
Hope that this will help you.
Yes, there may not have been one when you first asked, but hopefully this answer will help others. There are several free Anaconda AMI options, for both Python 2 and 3. See https://aws.amazon.com/marketplace/seller-profile?id=29f81979-a535-4f44-9e9f-6800807ad996&ref=dtl_B07CNFWMPC

Automation scripts using Python API for OpenStack Swift

I am running OpenStack Swift cluster on my machines as a private cloud network, and it is working well (GET, PUT, POST, DELETE) using cURL as well CLI.
Want to write automation script for those actions, but I am not getting where/how to start.
Any suggestion for a start.
Thank you!
You should be able to use the python unittest framework. Or you can use a more declarative testing tool like https://github.com/svanoort/pyresttest.
I find that the easiest way to interact with OpenStack Swift is the python swiftclient. Check it out.

Does Django has Hazelcast support? What would be the configuration?

Requirement is to use Hazelcast cache running on some other machine for the Django application we been developing. Could you please advise what would be the config and if any module needs to be installed?
Note: I'm using memache already. But need to use hazelcast instead for project requirement.
If you are looking for a pure memcache replacement, see the doc
There is a Hazelcast Python client but since I'm not a Python developer I can't really tell if it is hard or easy to integrate it into Django, however most certainly possible :)
https://pypi.python.org/pypi/hazelcast-python-client

How to pull information of virtual guests of a KVM host using Python?

I tried with libvirt. Unfortunately libvrt does not support KVM completely, and I have been constantly getting error messages and warnings stating, that it does not support the platform. Is there an alternate package or method that someone can suggest
Virtualbricks, CLI : http://www.virtualbricks.eu/
KVM-Admin, CLI : http://www.linux-kvm.org/page/Kvmtools
Ganeti, CLI : http://docs.ganeti.org/ganeti/current/html/
These three software are what you looking for : Python made and not based on libvirt.
I still using libvirt without any problem, so I maybe can help you with that.
the following script written by russel bartini may be helpful to you. this is a python script for managing, backup and restoring the VM running on KVM.
Here is the link :virt-back.py

What packaging option are available for python/django

I am starting on developing a django application on a shared webhosting server(alwaysdata.com).
I would like to understand what are the packaing options available to package a django application (preferably in compiled form)
I would like to setup the source code repository on my system and build using the python packaging and deploy the package on alwaysdata.com.
I would like the option of not having to share the source code on alwaysdata.com.
Looking at pip , I am not able to find this option.
EDIT
A few more clarification: I would need the ability to not share the sourcecode since it contains the "API secret key" which I would not want to compromise. The more I look into it , the more i believe that there is no way for me to distribute binary only distribution.
I've found fabric to be a pretty nice tool for deploying Django projects. To compile your python code you can use compileall:
python -m compileall <dir>
How is this API key used? Is it a google maps api? Is it provided in scripts that go to the browser? If so, it's already out in the open, anyone using your site will see it, so you're trying to provide a $100 lock for a $0.01 piece of information. If it's a google maps api, it's not secured by keeping it hidden, but rather it's tied to a domain/directory (IIRC).
Can you share a little more what the API key is and is for, then maybe we can help you find a better solution to keep it secure.
Do you think you have to share your source code if you host your application on a 'shared hosting' provider? That's not the case. Your source code should still be private to you but the administrators of your hosting provider can get it too. Other normal Joe Users of the service shouldn't have access to your source code, or your database too. If they do, then get another shared hosting provider!

Categories