Now we need an ISO image file of your operating system ( If you have got a media like a CD/DVD of your Operating system will just work the same). For this purpose let's download a free Linux OS like Ubuntu from: http://www.ubuntu.com/download/desktop
Once downloaded, click on the Start button on your Virtual Box console. The VM will start and needs to be bound to a virtual CD/DVD disk file. From the Devices menu select "Choose a virtual CD/DVD disk file" and point to your Ubuntu ISO image file. Now your ISO will be enlisted in the VM menu and Virtual Box will attempt to boot Linux.
The Ubuntu Installer will begin. Once that you have completed your installation (Test drive or on the HD) your VM will start kicking:
At this point your can start installing software on your Linux VM. Installing JBoss AS 7.1.1 requires at first a JDK installation and proper JAVA_HOME settings. Then you just need to dowload and unzip JBoss AS from the distribution site.
If you need more details about how to install JDK and JBoss AS 7.1.1 checkout the following video which has been captured on an Ubuntu machine:
When you are done you can turn off your VM. Now we will export our Appliance. What does it mean ? simply that you can create your own Linux VM distribution which already contains a set of applications installed on it (in our case JDK and JBoss AS 7) so that we can reuse it how many times we want it.
From the File menu choose "Export Appliance":
In the next screen pickup the Virtual Machine you want to export, in our case "Ubuntu":
Select the Appliance settings: basically if you choose to export is as OVA appliance the result will be a single Virtualization Archive. Otherwise you can choose the OVF format which makes the appliance more portable but files will be written separately.
In the next screen enter the Virtual Machine information:
Now click Export in order to create your appliance. This will create an appliance named Ubuntu.ova on the location you have specified. Now we can test importing the appliance from another installation of VirtualBox. Pickup the "Import Appliance" option from the File menu:
Choose the location where you have stored the Appliance:
That's all. You should see enlisted your Ubuntu 12 appliance in your VirtualBox menu:
- << Prev