Amazon machine image in AWS for Anaconda python - 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

Related

How to deploy or share your python program to friends

I wanted to share my python program to my friends but the problem is they will have to install python first then all the libraries which I used in order to run my program and it might be hard to do so as I have used too many libraries like 15-20 something.
MY Questions:-
Q1. How can I share my python program without making them install so much stuff?
Q2. Is there any other language on which it could be done?
Thank you.
Regards
Google Colab
You can write your python program in Google Colab and then share the notebook with others to run.
It's free to use and your dependencies can be imported or installed based on the information from this stackoverflow post.
Streamlit
Streamlit allows you to build custom web apps using python that are shareable. It's marketed use is for data science and machine learning python projects. You should check their website to see if it satisfies your specific needs.
repl.it
On the website repl.it you can create public Python projects which can even include PyPI dependencies. The user can then run and edit them, for example here: https://replit.com/#TedTaras/Monster-Hunter. Projects are public by default, private ones cost extra.

AWS API Tools vs AWS CLI: ec2-import-instance

I'm wondering... in the "new" AWS CLI tool, which would be the equivalent to the "old" ec2-import-instance command? Can't find anything useful in the AWS Docs, help output or on the web.
Reason why I'm asking is that I'm curious to see their Python implementation of it, as I want to incorporate it into my own code. AWS CLI uses Python/boto (as opposed to the old API tools which used Java), which might be an explanation why the functionality is missing (couldn't find it in boto either).
If you happen to know how to achieve an instance import in pure Python, I'd be very curious about that too!
Any pointers are greatly appreciated. Thanks!
It will be supported in a later release. As of now, there is no support for it.
For more info

looking for some script in PyVmomi

I need to write python scripts to get all of the IDs of Virtual Machines running on a ESX/ESXi host(including CPU ID, Hard ID, Chipset ID etc.).i need to find them and i want to change them all.i have to move a virtual machine from one ESXi host to another ESXi host but when i move it the license of virtual machine get lost, i did some researches and i find the license get lost because of changing hardware fingerprint during the movement process. Could anyone please help me to solve this problem??
Lots of pyvmomi examples can be found here, on VMWare's own GitHub. Also, if you open an issue on the project in GitHub and request something specific, others in the community may be willing to provide it.
Amir you can get examples here
https://github.com/rreubenur/vmware-python-examples
And losing the license is a common problem for windows VM. Though there is a hack for winxp/win2k3 but later versions doesn't support the hack. I believe you shouldn't face any problem with linux guest OS.

is it possible to deploy OVF on ESX using 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

PyvMomi create new virtual machine

I have a connection to a vsphere instance using pyvmomi. I can list virtual machines. However, I am looking for documentation about how to perform other tasks (e.g. copy a virtual machine, create a new virtual machine). Is there example code for tasks like this or API documentation that is relevant?
Have you taken a look at this github project? https://github.com/vmware/pyvmomi-community-samples
Lots of samples are provided here, if you are looking for something not already provided by the project please open an issue on github and maybe someone from the community will provide it for you.

Categories