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

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

edit retag close merge delete

Sort by » oldest newest most voted

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

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

( 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

( 2019-02-15 02:18:06 -0500 )edit

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.

more

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.

more

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.

more

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.

more