Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu 14.04 LTS VMware and Virtual Box ova/ovf images

I have a Java application that I'd like to distribute as a virtual machine appliance image (ovf or ova) for VMware and VirtualBox using Ubuntu 14.04 LTS. The image would include the operating system itself, required OS packages, my Java application, all pre-configured and ready-to-run when powered on.

What's the best way to create OVF and OVA files?

like image 307
Sergei Rodionov Avatar asked Mar 13 '15 22:03

Sergei Rodionov


People also ask

What is the difference between VMware OVA and OVF?

An OVA file is much easier to distribute because we only need to send a single file rather than a collection of files, yet OVF packages provide more extensibility in terms of modifying and repackaging the virtual appliances. Use OVF while you are developing your appliance, then distribute it using OVA.

Can you run OVF on VirtualBox?

Oracle VM VirtualBox can import and export virtual machines in the following formats: Open Virtualization Format (OVF). This is the industry-standard format.

How do I download images from VirtualBox Ubuntu?

To install Guest Additions, you need to complete your installation of Ubuntu in your virtual machine and boot to the desktop. From there, select Devices > Insert Guest Additions CD. This will prompt you to download the Guest Additions disk image file. Click Download.


1 Answers

I have been working with VirtualBox some and do not feel expert, but here is what I would do.

  • Download the 14.04 LTS iso image from Ubuntu 14.04 LTS.
  • Build a VM in VirtualBox using the New button. This will be the template for your Appliance.
  • Give it a catchy name like "Ubuntu 14.04 LTS 64amd for Java App". Type should be "Linux" and Version should be "Ubuntu (64 bit) or (32 bit) as appropriate.
  • Set the amount of RAM necessary.
  • Click the Create a virtual hard drive now button. Click the Create button. I believe that VMDK Type will help with portability. Select dynamically allocated (makes a smaller ova file), especially if you intend to distribute the ova files. Give the disk image a name and the size that you desire, I think 10GB would be minimum. Click the Create button.
  • Next select your VM and Click Settings to get the settings window.
  • Select Storage and then select the Icon for the CD/DVD disk. On the right, click the CD-ROM icon and locate the Ubuntu 14.04 amd 64 iso file that you downloaded. Click okay.
  • Then click the start button from the main window .

The VM should boot to the ISO DVD image that is in the virtual CD/DVD drive. Respond to all of the prompts. Save the username and password for later.

When the build is done and Ubuntu boots to the virtual harddrive, then apply all new updates: (you will need your password created earlier)

  • sudo apt-get update
  • sudo apt-get upgrade

  • Then after the reboot, use the "Devices" menu at the top of the VirtualBox window for your VM to "Insert Guest Additions CD Image ..." to install the extras that makes the Ubuntu image work better in the VirtualBox environment.

  • Now install all of the Java extras and your applications. I can't say much here.

  • Lastly, using the File > Export Appliances menu option, select your VM from the list and Click Next. I usually accept the format OVF 1.0 and Click Next. Fill in the settings information with links to your support web page if available. I have seen people put the username / password information in the description field for distribution. Then Click Export.

You should have a new OVA VirtualBox Appliance.

like image 109
Timothy Sorber Avatar answered Sep 18 '22 18:09

Timothy Sorber