RedHat 7.2 KVM migrates VMware virtual machines via V2V

Source: Internet
Author: User

First, preface

Recently want to test the Redhat 7 KVM V2V function, the results found that Redhat 7.0 no V2V package, on the Redhat official website only found to Redhat 7.2 to include VIRT-V2V package.

The official website is described below:

VIRT-V2V became a supported product starting with Red Hat Enterprise Linux 7.2. Therefore, we recommend you update your VIRT-V2V conversion servers to Red Hat Enterprise Linux 7.2 before using VIRT-V2V.

Supported virtual machine operating systems:

    • Red Hat Enterprise Linux 3.9

    • Red Hat Enterprise Linux 4

    • Red Hat Enterprise Linux 5

    • Red Hat Enterprise Linux 6

    • Red Hat Enterprise Linux 7.1 and later

    • Windows XP

    • Windows Vista

    • Windows 7

    • Windows Server 2003

    • Windows Server 2008

It is important to note that the virtual machines to be migrated before the V2V must be uninstalled vmtools and shut down.

Supported Virtualization Programs:

    • Libvirt-managed Xen

    • VMware vSphere Esx/esx (i)-versions 3.5, 4.0, 4.1, 5.0, 5.1, 5.5, 6.0

It is important to note that for VMware virtual machines, the Redhat 7.2 only supports connection to vcenter for V2V migrations.

The original source of this article: Jiangjianrong Technical Blog http://jiangjianlong.blog.51cto.com/3735273/1812311

About Redhat 7.2 V2V, online information is very small, even Redhat official website are not whole, I hope this test can be a catalyst, common improvement.

Redhat official website information is not complete:

650) this.width=650; "Width=" 1144 "height=" 606 "title=" 00.png "style=" WIDTH:738PX;HEIGHT:489PX; "alt=" WKiom1d99a_ Ayigiaadappnzlzi103.png "src=" Http://s4.51cto.com/wyfs02/M02/83/D9/wKiom1d99a_AyiGiAADaPpNZLZI103.png "/>

Second, V2V environment preparation

1. Introduction of test environment

650) this.width=650; "title=" Test environment introduction. png "alt=" Wkiom1d-c9fxzmfzaabmfloaja4464.png "src=" http://s3.51cto.com/wyfs02/ M02/83/da/wkiom1d-c9fxzmfzaabmfloaja4464.png "/>


2. Install VIRT-V2V with yum:Yum installs VIRT-V2V, which automatically installs another three packages, libguestfs-winsupport This package is used to support V2V for Windows virtual machines

650) this.width=650; "title=" 01.png "style=" Float:none; "alt=" wkiom1d9-jbbnjtwaaa2hxgviv4976.png "src=" http:/ S5.51cto.com/wyfs02/m01/83/d9/wkiom1d9-jbbnjtwaaa2hxgviv4976.png "/>


3. Test the connection to the Vcenter server and list the virtual machines on the vcenter server

Virsh-c ' Vpx://vcenter.long.cn/test/esxihost?no_verify=1 ' list--all

650) this.width=650; "title=" 02.png "alt=" Wkiom1d-enbg0zaaaabj8i77mr4794.png "src=" http://s4.51cto.com/wyfs02/M00/ 83/db/wkiom1d-enbg0zaaaabj8i77mr4794.png "/>


4, in the environment variable to add a row exportlibguestfs_backend=direct, if not joined, then V2V will be an error prompt request to join.

650) this.width=650; "title=" 03.png "style=" Float:none; "alt=" wkiom1d9-jetajtfaaa18l5hdle187.png "src=" http:/ S2.51cto.com/wyfs02/m02/83/d9/wkiom1d9-jetajtfaaa18l5hdle187.png "/>


Iii. V2V migrating Linux virtual machines on vcenter

1. Migration command:virt-v2v-icvpx://vsphere.local%[email protected]/test/esxihost?no_verify=1 rh7test-o local-os/var/ Lib/libvirt/images -of qcow2--bridge br0

650) this.width=650; "title=" 04-1.png "alt=" Wkiol1d-b_gd9h7jaaevjswsy_e972.png "src=" http://s1.51cto.com/wyfs02/ M01/83/d9/wkiol1d-b_gd9h7jaaevjswsy_e972.png "/>


2, wait for the migration to complete, you can see that has produced 2 files, one is a hard disk file, a configuration file

650) this.width=650; "title=" 05.png "style=" Float:none; "alt=" wkiom1d9-jjrsenxaaabogvczjk020.png "src=" http:/ S2.51cto.com/wyfs02/m00/83/d9/wkiom1d9-jjrsenxaaabogvczjk020.png "/>


3. These two files also appear in the storage pool

650) this.width=650; "title=" 06.png "style=" Float:none; "alt=" wkiol1d9-jmydrj1aacuzw1eqw4105.png "src=" http:/ S4.51cto.com/wyfs02/m01/83/d8/wkiol1d9-jmydrj1aacuzw1eqw4105.png "/>


4. It is not clear, however, that the virtual machine that was migrated was not present in the KVM virtual machine list. This article is to manually rebuild the virtual machine by creating a new virtual machine and importing the migrated hard disk files to complete the final migration.

650) this.width=650; "title=" 07.png "style=" Float:none; "alt=" wkiom1d9-jmt4vaoaabr9uapitu500.png "src=" http:/ S4.51cto.com/wyfs02/m00/83/d9/wkiom1d9-jmt4vaoaabr9uapitu500.png "/>

650) this.width=650; "title=" 08.png "style=" Float:none; "alt=" wkiom1d9-jqiqwzdaablrgfyv1e722.png "src=" http:/ S4.51cto.com/wyfs02/m01/83/d9/wkiom1d9-jqiqwzdaablrgfyv1e722.png "/>

650) this.width=650; "title=" 09.png "style=" Float:none; "alt=" wkiol1d9-jrjovn9aabjcaraydk987.png "src=" http:/ S4.51cto.com/wyfs02/m01/83/d8/wkiol1d9-jrjovn9aabjcaraydk987.png "/>


5. Successful Boot and Login

650) this.width=650; "Width=" 796 "height=" 325 "title=" 10.png "style=" Width:735px;height:291px;float:none; "alt=" Wkiom1d9-jvgcb1-aabib6sysz4550.png "src=" Http://s3.51cto.com/wyfs02/M01/83/D9/wKiom1d9-JvgCB1-AABIB6sySz4550.png "/>


Iv. V2V migrating Windows virtual machines on vcenter

1. Migration command:virt-v2v-icvpx://vsphere.local%[email Protected]/test/esxihost?no_verify=1 windows2008r2-test-o Local-os/var/lib/libvirt/images -of qcow2--bridge br0

650) this.width=650; "Width=" 868 "height=" 514 "title=" 11-1.png "style=" WIDTH:736PX;HEIGHT:474PX; "alt=" Wkiom1d-ccmsnid8aafnxhi6pas322.png "src=" Http://s1.51cto.com/wyfs02/M00/83/DA/wKiom1d-CCmSNId8AAFnXHI6Pas322.png "/>


2, wait for the migration to complete, you can see that has produced 2 files, one is a hard disk file, a configuration file

650) this.width=650; "title=" 12.png "style=" Float:none; "alt=" wkiol1d9-j2zgb8eaabnf4_pt_i796.png "src=" http:/ S3.51cto.com/wyfs02/m02/83/d8/wkiol1d9-j2zgb8eaabnf4_pt_i796.png "/>


3. These two files also appear in the storage pool

650) this.width=650; "title=" 13-1.png "alt=" Wkiom1d-cgdcgep3aadr6viigyy306.png "src=" http://s4.51cto.com/wyfs02/ M02/83/da/wkiom1d-cgdcgep3aadr6viigyy306.png "/>


4. It is also strange that the migrated Windows virtual machine does not appear in the KVM virtual machine list for reasons unknown. This article is to manually rebuild the virtual machine by creating a new virtual machine and importing the migrated hard disk files to complete the final migration.

650) this.width=650; "title=" 14.png "style=" Float:none; "alt=" wkiom1d9-j7biq4faabr9uapitu773.png "src=" http:/ S2.51cto.com/wyfs02/m02/83/d9/wkiom1d9-j7biq4faabr9uapitu773.png "/>

650) this.width=650; "title=" 15.png "style=" Float:none; "alt=" wkiol1d9-j_jxcpqaabudkfummm214.png "src=" http:/ S4.51cto.com/wyfs02/m00/83/d8/wkiol1d9-j_jxcpqaabudkfummm214.png "/>

650) this.width=650; "title=" 16.png "style=" Float:none; "alt=" wkiom1d9-j_smxs4aabcwo0ant4476.png "src=" http:/ S4.51cto.com/wyfs02/m00/83/d9/wkiom1d9-j_smxs4aabcwo0ant4476.png "/>


5. Successful Boot and Login

650) this.width=650; "title=" 17.png "style=" Float:none; "alt=" wkiom1d9-klc2imxaaoyoom8-og759.png "src=" http:/ S1.51cto.com/wyfs02/m00/83/d9/wkiom1d9-klc2imxaaoyoom8-og759.png "/>

650) this.width=650; "title=" 18.png "style=" Float:none; "alt=" wkiol1d9-kkqhd3vaaejwafzw3u377.png "src=" http:/ S3.51cto.com/wyfs02/m01/83/d8/wkiol1d9-kkqhd3vaaejwafzw3u377.png "/>


This article is from the "Jiangjianrong Technology blog" blog, make sure to keep this source http://jiangjianlong.blog.51cto.com/3735273/1812311

RedHat 7.2 KVM migrates VMware virtual machines via V2V

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.