[英]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,并且感觉不熟练,但这就是我要做的。
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.