Migration refers to the process of moving a virtual machine from one host or storage location to another host or storage location.
There are 4 migration options:
1, Cold migration: power is turned off , you can relocate the configuration file, the disk file to a new storage location. Can be migrated from one data center to another data center.
2 . Migrate a suspended virtual machine: The suspended virtual machine is moved to the new host . You can relocate configuration files, disk files to a new storage location, and migrate from one data center to another.
3. Migration via vmotion : power is turned on and you can move the virtual machine to a new host without disrupting the availability of the virtual machine. You cannot move a virtual machine from one datacenter to another data center , in the same data center .
4, through storagevmotion migration: power on. You can move the storage of virtual machines without disrupting the availability of virtual machines.
Migration of Vmotion migrations and suspended virtual machines ------- Hot Migration —-- supports migrating virtual machines without powering down the virtual machine. Vmotion migrations are sometimes referred to as "live migrations"
Migration process
Cold migration:
Precautions:
2 consider the operating system + bits and - -bit compatibility issues.
Migration tasks:
If you move to a different data store, the configuration file ( NVRAM Files ( BIOS ) , and log files are moved from the source host to the associated storage area of the destination host.
registering a virtual machine with a new host
The option to move to a different data store is selected, and the old version of the virtual machine is removed from the source host after the migration is complete.
Migrating a suspended virtual machine
Steps:
the configuration file ( NVRAM Files ( BIOS settings) and log files, pending files, and the virtual machine's disks are moved from the source host to the associated storage area of the destination host.
Registering a virtual machine
Old version removed from source host
There are three types of migration:
Change hosts: Migrating between hosts, storage unchanged (in shared storage)
Change data storage: Migrating between stores
Change host and datastore: All migrations such as cold migration
vmtion Requirements for Migration
a) enable vmotion on the host
b) must meet vmotion 's shared storage needs
c) meet The network requirements of Vmtion
vmotion Shared storage Requirements
1 , must reside on the same storage, both the source host and the destination host can access the storage.
2 , shared storage is typically located in a storage area network ( SAN ) on, iSCSI and the NAS on shared storage. FC san,ISCSI san ,NFS NAS
vmotion require enable vmtion set up Gigabit Ethernet between the hosts. Each vmotion host must have at least two Ethernet adapters.
Storage requirements:
For example: in Linux 6 in the construction of soft iSCSI shared storage as a virtual machine.
iSCSI The server is responsible for defining the storage objects and allocating the logical space.
in the linux6 installed on scsi-target-utils , Libibverbs , libmlx4 ,; LIBRDMACM , perl-config-general software package, and add a new hard disk.
hard disks, partitions, logical volumes, soft RAID and so on can be used as ISCSI storage devices for services
Migrating virtual machines