In this tutorial we will demonstrate how to create in a matter of minutes a JBoss AS 7.1.1 appliance designed around a Linux distribution. The software we will use for this purpose is Oracle's Virtual Box.
VirtualBox is a cross-platform virtualization application. What does that mean? For one thing, it installs on your existing Intel or AMD-based computers, whether they are running Windows, Mac, Linux or Solaris operating systems. Secondly, it extends the capabilities of your existing computer so that it can run multiple operating systems (inside multiple virtual machines) at the same time.
So, for example, you can run Windows and Linux on your Mac, run Windows Server 2008 on your Linux server, run Linux on your Windows PC, and so on, all alongside your existing applications. You can install and run as many virtual machines as you like -- the only practical limits are disk space and memory.
Start by downloading VirtualBox from https://www.virtualbox.org/wiki/Downloads choosing a format which can be run on your OS.
Install VirtualBox using the simple Wizard and now execute it.
Create Your Virtual Machine
Click on the "New" button at the top of the VirtualBox Manager window. A wizard will pop up to guide you through setting up a new virtual machine (VM). In the first screen enter the VM name and the Operating system you intend to install on it. In our case, we will install a Linux Ubuntu OS:
Click Next. In the next screen select the amount of memory which will be assigned to the VM. Since I don't have lots of memory available on this machine, I'll just create a tiny Linux VM with about 1500 MB of RAM. Click Next:
In the next screen we will decide to create an Hard drive for our VM where data will be stored:
Choose Create. In the next window select the default option, that is using a VirtualBox Disk image that can be shared across other VMs running on Virtual Box.
Click Next. This will bring up the Storage Type window:
As a matter of fact, VirtualBox supports two types of image files:
- A dynamically allocated file will only grow in size when the guest actually stores data on its virtual hard disk. It will therefore initially be small on the host hard drive and only later grow to the size specified as it is filled with data.
- A fixed-size file will immediately occupy the file specified, even if only a fraction of the virtual hard disk space is actually in use. While occupying much more space, a fixed-size file incurs less overhead and is therefore slightly faster than a dynamically allocated file.
We will choose the first option which will prevent your hard disk growing up too much, until you have little data stored on it.
Fine now your VM Creation is complete. We will start it in a minute.
- Next >>