Migrating virtual machines

Source: Internet
Author: User

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:

    • Power must be turned off.

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

  1. a) enable vmotion on the host

  2. b) must meet vmotion 's shared storage needs

  3. 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

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.