1.ESXi to KVM V2V case description
(1). Configure the Task list:
1) migrating Linux systems to KVM virtual platforms under Vmwareesxi virtual platform.
2) Migrate the Windows system to the KVM virtual platform under the Vmwareesxi virtual platform.
Tip: This article only describes the two migration processes, KVM to ESXi V2V can be migrated using the Vmwareconvert tool.
(2). VMwareESXi5.1 and Virtual machine case description
VMwareESXi5.1
IP Address: 192.168.233.154
Account Number: root/1111111
(3). OEL63_TEST01 is using oel63linux virtual machine, IP address: 192.168.233.162
(4). VM2003_TEST02 is using WINDOWS03 virtual machine, IP address: 192.168.233.163
(5). KVM Virtual Platform configuration considerations, KVM Storage Pool configuration Brief process
12345 |
# mkdir -p /data/vmfs # virsh pool-define- as vmdisk --type dir --target /data/vmfs # virsh pool-build vmdisk # virsh pool-autostart vmdisk # virsh pool-start vmdisk |
2.Migrating Linux systems to KVM virtual platforms under the Vmwareesxi virtual platform
(1) KVM Virtual machine configuration, creating ESXi authentication files
The virtual machine must be turned off, or the following prompt will appear.
(2) Start migration
123 |
[[email protected] ~]# virt-v2v -ic esx: //192.168.233.154/?no_verify=1 -op vmdisk -b br0 OEL63_test01 OEL63_test01_OEL63_test01_1: 100 % [===========================================================]D 0h14m29s virt-v2v: OEL63_test01 被 virtio 驱动程序配置。 |
To view the configuration file, the disk format is in RAW format and the disk file name is the following format.
SSH login is OK.
3.Vmwareesxi virtual platform for Windows System migration to KVM virtual platform
(1) Support for Windows file system and drivers needs to be installed on a KVM virtual host, which requires the following support packages installed.
libguestfs-winsupport-1.0-7.el6.x86_64.rpm
ftp://ftp.rediris.es/volumes/sites/scientificlinux.org/scientific/6.1/x86_64/updates/security/ libguestfs-winsupport-1.0-7.el6.x86_64.rpm
virtio-win-1.2.0-1.el6.noarch.rpm
http://remoteoutpost.nl/repos/RHEL6-Server-Supplementary/virtio-win-1.2.0-1.el6.noarch.rpm
(2) Start migration
123 |
[[email protected] ~]# virt-v2v -ic esx: //192.168.233.154/?no_verify=1 -op vmdisk -b br0 VM2003_test02 VM2003_test02_VM2003_test02: 100 % [======================================================================================]D 0h11m45s virt-v2v: VM2003_test02 被 virtio 驱动程序配置。 |
The system starts normally by looking in the manager.
View the Device Manager and discover that both disk drives and NIC drivers are optimized.
This esxi virtual machine-to-KVM migration process is complete. In turn, you need to migrate with VMware's migration tool.
KVM---Virtualization migration (ESXi to KVM)