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.

jboss as 7 virtual box linux

The Ubuntu Installer will begin. Once that you have completed your installation (Test drive or on the HD) your VM will start kicking:

jboss 7 virtual box appliance

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":

jboss 7 virtual box appliance

In the next screen pickup the Virtual Machine you want to export, in our case "Ubuntu":

jboss 7 virtual box appliance

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.

jboss 7 virtual box appliance

In the next screen enter the Virtual Machine information:

jboss 7 virtual box appliance

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:

vbox11

Choose the location where you have stored the Appliance:

jboss virtual box appliance

That's all. You should see enlisted your Ubuntu 12 appliance in your VirtualBox menu:

jboss virtual box appliance

0
0
0
s2smodern

Related articles available on mastertheboss.com

JBoss MBeans POJO

JMX MBean services are the core building blocks of the JBoss Appl

How to a dump of JNDI tree with JMX console ?

#2 JBoss Howto. This is the recipe of the day

How to configure JBoss to bind to a different IP ?

  If you want to change the jboss.bind.address property use the 

How to shut down JBoss from remote ?

JBoss recipe of the day

How to create multiple instances of an Mbean?

  Supposing you need two instances of an MBean, let's say one fo

JBoss classloader issues

By default JBoss (prior to version 3.2) uses a flat class loading