Virtual Machine Usage Experience Summary

Source: Internet
Author: User
Tags uuid

1, VirtualBox virtual machine between the different host mobile

VirtualBox virtual machines in different host movement, there are two ways, one is the GUI menu "Export virtual machine" in the Hosta to export the virtual machine, and then copy the inverted OVA file to HostB with "Import virtual machine" command import, The configuration information and virtual storage media for the virtual machine to be moved can be easily moved to the new host, but the disadvantage is that the export is too slow. Another easy way is to copy the virtual storage media VDI file into the new host, create a new virtual machine in HostB, set up the configuration information, set the storage media do not create new and choose to use the copy of the past VDI files. In fact, the configuration information of each virtual machine changes little, a new virtual machine takes less than 5 minutes, so the 2nd method is also a good choice. Be aware, however, that if the virtual machine in Hosta has done multiple snapshot it is troublesome to choose a copy of the VDI file that you need. If you want to save a VirtualBox virtual machine that has been installed with Guestos configured, simply save the virtual media VDI file for that virtual machine.

2. When you export a virtual machine from VirtualBox, the VDI file is converted to a vmdk file in VMware format and compressed into an OVA file, and when imported in HostB, the newly imported VM uses the VMDK-formatted virtual hard disk. The virtual hard disk in this format can be read and written by VMware. This is a very peculiar function, for the opponent to do the wedding dress. Check the doc to know that VirtualBox supports a variety of virtual hard disk formats, including its own VDI format, VMDK format, and Microsoft VHD format. As Doc says, VMDK is the "popular and open VMDK container format that's used by many other virtualization products". But it is not easy to convert a VDI format virtual hard disk into a VMDK format to a VMware virtual machine, and if the drive is used as a boot disk, it is like a hard drive that is mounted on a system that is removed from one computer and installed on a different computer, with a lot of configuration work to do.
3, the expansion of virtual media size, the VirtualBox management interface does not extend the size of the virtual media menu items, you must use the command line method:

Vboxmanage MODIFYHD <uuid>|<filename> [--resize <megabytes>|--resizebyte <bytes>]
This method applies only to virtual media with VDI and VHD formats, and the properties of the virtual media must be "dynamically extended".
For example, expand the virtual hard disk to 40G:
Vboxmanage MODIFYHD Windowsxp-disk.vdi--resize 40000

4, change the virtual media format, you can use virtual media cloning, cloning a different format of virtual media, such as the VDI clone into the VMDK format.
Vboxmanage Clonehd  <uuid>|<filename> <outputfile>  [--format vdi| vmdk| vhd| Raw|<other>]
The command is as follows:
Vboxmanage Clonehd windowsxp-disk.vdi windowsxp-disk.vmdk--format vmdk

Keep updating ....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.