简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM