Importing and Exporting Virtual Machines
来源:互联网 发布:如何用淘宝联盟赚钱 编辑:程序博客网 时间:2024/06/15 19:26
Exporting and Importing Virtual Machines and Templates
Virtual machines and templates can be exported from and imported to data centers in the same oVirt environment, or a different oVirt environment. oVirt allows you to import and export virtual machines (and templates) stored in Open Virtual Machine Format (OVF).
There are three stages to exporting and importing virtual machines and templates:
- Export the virtual machine or template to an export domain.
- Detach the export domain from one data center, and attach it to another. You can attach it to a different data center in the same oVirt environment, or attach it to a data center in a separate oVirt environment that is managed by another installation of oVirt.
- Import the virtual machine or template into the data center to which the export domain is attached.
A virtual machine must be stopped before it can be moved across data centers. If the virtual machine was created using a template, the template must exist in the destination data center for the virtual machine to work, or the virtual machine must be exported with the Collapse Snapshots option selected.
Overview of the Export and Import Process
The export domain allows you to move virtual machines and templates between oVirt environments.
To export or import virtual machines and templates, an active export domain must be attached to the data center containing the virtual machine or template to be exported or imported. An export domain acts as a temporary storage area containing two directories for each exported virtual machine or template. One directory contains the OVF (Open Virtualization Format) files for the virtual machine or template. The other directory holds the disk image or images for the virtual machine or template.
You can also import virtual machines from other virtualization providers such as Xen, VMware or Windows virtual machines using the V2V feature. V2V converts virtual machines and places them in the export domain.
For more information on V2V, see the Red Hat Enterprise Linux V2V Guide.
Exporting virtual machines and templates from one data center to another requires some preparation. Ensure that:
- An export domain exists, and is attached to the source data center.
- The virtual machine is shut down.
- If the virtual machine was created based on a template, that template must reside on the destination data center or be exported with the virtual machine.
When the virtual machine or template has been exported to the export domain, you can import that virtual machine or template into the destination data center. If the destination data center is in the same oVirt environment as the source data center, delete the original virtual machine or template from the source data center after the export has completed.
Graphical Overview for Exporting and Importing Virtual Machines and Templates
Summary
This procedure provides a graphical overview of the steps required to export a virtual machine or template from one data center and import that virtual machine or template into another data center.
Procedure 8.40. Exporting and Importing Virtual Machines and Templates
Attach the export domain to the source data center.
Figure 8.13. Attach Export Domain
Export the virtual machine or template to the export domain.
Figure 8.14. Export the Virtual Resource
Detach the export domain from the source data center.
Figure 8.15. Detach Export Domain
Attach the export domain to the destination data center.
Figure 8.16. Attach the Export Domain
Import the virtual machine or template into the destination data center.
Figure 8.17. Import the virtual resource
Result
The virtual machine or template is imported to the destination data center.
Exporting a Virtual Machine to the Export Domain
Summary
Export a virtual machine to the export domain so that it can be imported into a different data center. Before you begin, the export domain must be attached to the data center that contains the virtual machine to be exported.
Procedure 8.41. Exporting a Virtual Machine to the Export Domain
- Click the Virtual Machines tab and select a virtual machine.
- Click Export to open the Export Virtual Machine window.
- Select the Force Override check box to override existing images of the virtual machine on the export domain. Select the Collapse Snapshots check box to create a single export volume per disk. Selecting this option will remove snapshot restore points and include the template in a template-based virtual machine. This removes any dependencies a virtual machine has on a template.
- Click OK to export the virtual machine and close the window.
Result
The export of the virtual machine begins. The virtual machine displays in the Virtual Machines list with an Image Locked
status as it is exported. Depending on the size of your virtual machine hard disk images, and your storage hardware, this can take up to an hour. Use the Events tab to view the progress.
When complete, the virtual machine has been exported to the export domain and displays on the VM Import tab of the export domain's details pane.
Importing a Virtual Machine into the Destination Data Center
Summary
You have a virtual machine on an export domain. Before the virtual machine can be imported to a new data center, the export domain must be attached to the destination data center.
Procedure 8.42. Importing a Virtual Machine into the Destination Data Center
- Use the Storage resource tab, tree mode, or the search function to find and select the export domain in the results list. The export domain must have a status of
Active
- Select the VM Import tab in the details pane to list the available virtual machines to import.
- Select one or more virtual machines to import and click Import to open the Import Virtual Machine(s) window.
- Use the drop-down menus to select the Default Storage Domain and Cluster.
- Select the Collapse Snapshots check box to remove snapshot restore points and include templates in template-based virtual machines.
- Click the virtual machine to be imported and click on the Disks sub-tab. From this tab, you can use the Allocation Policy and Storage Domain drop-down lists to select whether the disk used by the virtual machine will be thinly provisioned or preallocated, and can also select the storage domain on which the disk will be stored. An icon is also displayed to indicate which of the disks to be imported acts as the boot disk for that virtual machine.
- Click OK to import the virtual machines The Import Conflict window opens if the virtual machine exists in the virtualized environment.
- Choose one of the following radio buttons:
- Don't import
- Clone and enter a unique name for the virtual machine in the New Name field.
- Click OK to import the virtual machines and close the window.
Result
You have imported the virtual machine to the destination data center. This may take some time to complete.
- Importing and Exporting Virtual Machines
- Importing and Exporting Data
- Importing and Exporting in Studio
- Exporting and Importing an LVM volume group
- CMake/Tutorials/Exporting and Importing Targets
- A utility for importing/exporting between hbase and csv file
- Exporting and Importing Objects Using Oracle Data Pump(1.expdp)
- Exporting and Importing Objects Using Oracle Data Pump(2.impdp)
- Virtual Machines and Hypervisors: Introduction
- ABAP function exporting importing
- ABAP EXPORTING IMPORTING
- Common Tasks :Registering and Unregistering Virtual Machines
- 10 Exporting&importing A Child Component
- Beyond Virtual Machines and Hypervisors: Overview of Bare Metal Provisioning with OpenStack Cloud
- Beyond Virtual Machines and Hypervisors: Overview of Bare Metal Provisioning with OpenStack Cloud
- How To Convert Virtual Machines Between VirtualBox and VMware[测试可行]
- List of Java virtual machines
- Say goodbye to virtual machines
- 第14周SHH数据结构-【项目2-二叉树排序树中查找的路径】
- 第十六周 项目1-验证算法(6)
- linux下查找一个文件夹,find / where / locate使用
- cocoapods 详解,避开各种坑
- 深度分析Java的ClassLoader机制(源码级别)
- Importing and Exporting Virtual Machines
- (4)快速排序
- 第七周 项目五 排队看病模拟
- AVPlayer自定义视频播放器
- 十六周 项目1 基数排序
- CodeForces 148A Insomnia cure
- 第16周 项目1-堆排序
- 关于这些日子以来改iOS9兼容性的问题总结
- 2015年,剩余的天数不多,你醒了吗?