Ask Your Question

How can we deploy a software on Openstack? (e.g. java)

asked 2015-11-27 12:58:17 -0500

gdssrao25 gravatar image

Can i deploy any software like java, Mule, tomcat on VMs using openstack

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted

answered 2015-11-30 22:33:20 -0500

Prateek K gravatar image

Let me answer this way. Openstack commands are used to make virtual machines where you can specify which image and what specifications of the virtual machine will be. Now when you are talking about installing software packages over VM its as similar to installing softwares on normal physical machines where an operating system is running.

We can achieve this in many ways, some of which are as follows:-

  1. Preload all the software's that you need in the image itself and then launch the VM

  2. Create a public network, a router and then create a floating IP and associate it to the VM. Make sure this floating IP has internet access. Once you will have all this the VM will be able to talk to the internet and then all the commands such as apt-get or yum depending upon distro's will work. So you can download all the packages just as you download on a physical machine.

  3. If you want to go a step further and automate everything and also make it dynamic at the same time then you have to either use Post-customization script or Heat templates. This is the most advanced way as you can control for which VM's which packages will be installed. If you want to take this step then I suggest read about cloud-init packages how does it work and also neutron-metadata-agent or you can focus on how heat works and how heat templates (HOT) can be made.

Hope you will get a fair amount of idea and will choose how to proceed depending upon your use case

edit flag offensive delete link more


I followed the first way i.e Preload all the software in a machine and then create its image and upload it on glance.The problem faced is that the packages like java that I installed on the image are not pre-installed on the VM that launched from the image. Any idea?I used openstackdiskimage-builder

Mohamedsaqib gravatar imageMohamedsaqib ( 2017-07-26 02:44:07 -0500 )edit

I wish to use the third step which is more dynamic. I read about cloud init and heat but I am not able to figure out the way to do this

bharghvi gravatar imagebharghvi ( 2019-02-15 02:18:06 -0500 )edit

answered 2015-11-30 19:53:32 -0500

pl_rock gravatar image

updated 2015-11-30 20:09:52 -0500

Openstack is a virtualized environment that provide virtual machine(VM) in which you can configure your software, server , development environment etc. if your software can run in local virtual environment like in kvm , virtualbox ,vmvare then it will run on openstack also. But , i can't say all software will work on openstack because there is some software that only work with physical environment or made for physical hardware. So, its Dependant on requirement.

packages like JAVA, tomcat, scala, hadoop etc. will work fine on openstack.

edit flag offensive delete link more

answered 2015-11-30 23:29:40 -0500

RHK gravatar image

Create a Linux instance (Ubuntu) and launch the VM with internet access

Install open jdk & Eclipse IDE, same like you also install tomcat and its dependencies.

VM is just like your Desktop with OS. Just install Eclipse and run your java app.

Run you java app in VM using IDE.

edit flag offensive delete link more

answered 2015-11-30 11:53:13 -0500

smaffulli gravatar image

In theory, yes. In practice you need to be more specific about what you need to do because different OpenStack clouds have different behaviors and some applications may not be running as smoothly as one expects.

edit flag offensive delete link more

answered 2015-12-02 00:30:54 -0500

gdssrao25 gravatar image

Thanks To every one for giving multiple answers. I am very new to this openstack and the have no background of the networking. I want to perform the virtual job execution to assign the VM on data center and install the software based on the user request without manual intervention. can you please enlighten me what basics i need to cover before implementing the solution.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2015-11-27 12:58:17 -0500

Seen: 1,013 times

Last updated: Dec 02 '15