1 First steps 1. They can come in several files, as one or several disk images, typically in the widely-used VMDK format (see chapter 5.2, Disk image files (VDI, VMDK, VHD, HDD), page 73) and a textual description file in an XML dialect with an .ovf extension. These files must then reside in the same directory for VirtualBox to be able to import them. 2. Alternatively, the above files can be packed together into a single archive file, typically with an .ova extension. (Such archive files use a variant of the TAR archive format and can therefore be unpacked outside of VirtualBox with any utility that can unpack standard TAR files.) To import an appliance in one of the above formats, simply double-click on the OVF/OVA file.6 Alternatively, select “File” - “Import appliance” from the Manager window. In the file dialog that comes up, navigate to the file with either the .ovf or the .ova file extension. If VirtualBox can handle the file, a dialog similar to the following will appear: This presents the virtual machines described in the OVF file and allows you to change the vir- tual machine settings by double-clicking on the description items. Once you click on “Import”, VirtualBox will copy the disk images and create local virtual machines with the settings described in the dialog. These will then show up in the Manager’s list of virtual machines. Note that since disk images tend to be big, and VMDK images that come with virtual appliances are typically shipped in a special compressed format that is unsuitable for being used by virtual machines directly, the images will need to be unpacked and copied first, which can take a few minutes. For how to import an image at the command line, please see chapter 8.8, VBoxManage import, page 115. Conversely, to export virtual machines that you already have in VirtualBox, select “File” - “Export appliance”. A different dialog window shows up that allows you to combine several virtual machines into an OVF appliance. Then, select the target location where the target files should be stored, and the conversion process begins. This can again take a while. 6Starting with version 4.0, VirtualBox creates file type associations for OVF and OVA files on your host operating system. 27
Previous Page Next Page