简体   繁体   English

Ubuntu 14.04 LTS VMware和Virtual Box ova / ovf图像

[英]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. 我有一个Java应用程序,我想使用Ubuntu 14.04 LTS作为VMware和VirtualBox分发为虚拟机设备映像(ovf或ova)。 The image would include the operating system itself, required OS packages, my Java application, all pre-configured and ready-to-run when powered on. 该映像将包括操作系统本身,所需的操作系统软件包,我的Java应用程序,所有这些都是预配置的,并且在开机时可以立即运行。

What's the best way to create OVF and OVA files? 创建OVF和OVA文件的最佳方法是什么?

I have been working with VirtualBox some and do not feel expert, but here is what I would do. 我一直在使用VirtualBox,并且感觉不熟练,但这就是我要做的。

  • Download the 14.04 LTS iso image from Ubuntu 14.04 LTS . 从Ubuntu 14.04 LTS下载14.04 LTS iso映像。
  • Build a VM in VirtualBox using the New button. 使用“新建”按钮在VirtualBox中构建VM。 This will be the template for your Appliance. 这将是您的设备的模板。
  • Give it a catchy name like "Ubuntu 14.04 LTS 64amd for Java App". 给它一个吸引人的名字,如“Ubuntu 14.04 LTS 64amd for Java App”。 Type should be "Linux" and Version should be "Ubuntu (64 bit) or (32 bit) as appropriate. 类型应为“Linux”,版本应为“Ubuntu(64位)或(32位)”。
  • Set the amount of RAM necessary. 设置所需的RAM量。
  • Click the Create a virtual hard drive now button. 单击立即创建虚拟硬盘驱动器按钮。 Click the Create button. 单击“创建”按钮。 I believe that VMDK Type will help with portability. 我相信VMDK Type将有助于提高可移植性。 Select dynamically allocated (makes a smaller ova file), especially if you intend to distribute the ova files. 选择动态分配(制作较小的ova文件),尤其是当您打算分发ova文件时。 Give the disk image a name and the size that you desire, I think 10GB would be minimum. 给磁盘映像一个名称和你想要的大小,我认为10GB是最小的。 Click the Create button. 单击“创建”按钮。
  • Next select your VM and Click Settings to get the settings window. 接下来选择您的VM并单击“设置”以获取设置窗口。
  • Select Storage and then select the Icon for the CD/DVD disk. 选择存储,然后选择CD / DVD磁盘的图标。 On the right, click the CD-ROM icon and locate the Ubuntu 14.04 amd 64 iso file that you downloaded. 在右侧,单击CD-ROM图标,找到您下载的Ubuntu 14.04 amd 64 iso文件。 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. VM应引导至虚拟CD / DVD驱动器中的ISO DVD映像。 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) 当构建完成并且Ubuntu引导到虚拟硬盘时,然后应用所有新更新:(您将需要先前创建的密码)

  • 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. 然后在重新启动后,使用虚拟框窗口顶部的“设备”菜单为您的VM“插入访客添加CD映像...”以安装附加功能,使Ubuntu映像在VirtualBox环境中更好地工作。

  • Now install all of the Java extras and your applications. 现在安装所有Java附加功能和您的应用程序。 I can't say much here. 我在这里不能说太多。

  • Lastly, using the File > Export Appliances menu option, select your VM from the list and Click Next. 最后,使用File> Export Appliances菜单选项,从列表中选择您的VM,然后单击Next。 I usually accept the format OVF 1.0 and Click Next. 我通常接受OVF 1.0格式并单击下一步。 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. 您应该有一个新的OVA VirtualBox设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Magento的Virtual Box(Win 7)上设置Ubuntu 12.04 LTS的问题 - Issue with setting up Ubuntu 12.04 LTS on Virtual Box (Win 7) for Magento AWS ubuntu 14.04实例中的虚拟机安装问题“不支持在Xen环境中运行VirtualBox” - Virtual box installation issue “Running VirtualBox in a Xen environment is not supported” in AWS ubuntu 14.04 instance 虚拟框4.3.30无法在优胜美地10.10.4上加载OVA - Virtual box 4.3.30 Fails to Load OVA on Yosemite 10.10.4 从XenCenter导出OVA / OVF软件包时,“导出失败” - “Failed to Export” when exporting an OVA/OVF package from XenCenter 无法将 ova 文件导入 VMware Player - Fail to import ova file to VMware Player 在Virtual Box Ubuntu上运行symfony 2 - Running symfony 2 on Virtual Box Ubuntu Oracle Virtual Box导入VMWare Windows 2008引导时崩溃 - Oracle Virtual Box import VMWare Windows 2008 Crash on boot 无法将ovf加载到使用vmware vphrere export创建的virtualbox? - unable to load ovf to virtualbox created using vmware vphrere export? 无法在 Windows 上启动虚拟机 ubuntu VM - failing to launch virtual box ubuntu VM on Windows 是否可以使用packer virtualbox-ovf构建器将短暂密钥的公共部分注入OVA? - Is it possible to inject the public part of an ephemeral key into an OVA using the packer virtualbox-ovf builder?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM