当前位置:网站首页>KVM hot migration for KVM virtual management
KVM hot migration for KVM virtual management
2022-06-13 05:11:00 【I love Qianxi】
I can't write down the last article , Fill in this article
kvm Virtual management kvm Heat transfer
The principle of heat transfer is as follows :
If you want to migrate a running virtual machine, you must use shared storage , Mount the disk on shared storage , Anyone who wants to use it can mount it

The environment configuration of the three machines is as follows :
stay nfs The file configuration on the host is as follows
[[email protected] data]# vim /etc/exports
#shared dir
/data 192.168.119.0/24(rw,async,no_root_squash,no_all_squash)
On both sides kvm Test on the virtual machine
[[email protected] ~]# showmount -e 192.168.119.129
Export list for 192.168.119.129:
[[email protected] ~]# showmount -e 192.168.119.146
Export list for 192.168.119.146:
Mount the path of the disk file on the two host computers to nfs Of /data Catalog
[[email protected] images]# cd /data/
[[email protected] data]# ls
nebula1.qcow2 nebula1.xml
[[email protected] data]# mount -t nfs 192.168.119.7:/data /home/images
[[email protected] data]# mv /data/nebula1.qcow2 /home/images/
[[email protected] ~]# mount -t nfs 192.168.119.7:/data /home/images/
And then nfs View on the host
[[email protected] data]# ll -h
total 1.7G
-rw-------. 1 107 107 11G May 6 2021 nebula1.qcow2
qemu Put in UID Namely 107
Install on the first host kvm virtual machine
[[email protected] data]# virt-install --virt-type kvm --os-type=linux --name web01 --memory 1024 --vcpus 1,maxvcpus=10 --cdrom=/home/iso/CentOS-7-x86_64-Minimal-1708.iso --disk /home/images/web01.qcow2,size=10 --network bridge=virbr0 --graphics vnc,listen=0.0.0.0 --noautoconsole --check disk_size=off
Starting install...
Allocating 'web01.qcow2' | 10 GB 00:00:00
Domain installation still in progress. You can reconnect to the console to complete the installation process.
View the disk file on the second host , prove nfs Shared storage succeeded
[[email protected] ~]# ls /home/images/
nebula1.qcow2 web01.qcow2
Do it on two hosts host analysis , Add the following
192.168.119.146 kvm
192.168.119.129 backup
And then in kvm Do the migration above , Check again virsh list,kvm The virtual machines are gone , Moved to backup Up there
[[email protected] data]# virsh migrate --live --verbose web01 qemu+ssh://192.168.119.129/system --unsafe
Parameter interpretation :
migrate Migration means
- -live Running state migration
- -verbose Which one to migrate Kvm virtual machine
qemu+ssh://192.168.119.129/system qemu+ssh authentication ,IP by backup Of IP
- -unsafe This parameter must be added , Otherwise, it will report a mistake , Do not allow migration
边栏推荐
猜你喜欢

File descriptorfile description

Metartc4.0 integrated ffmpeg compilation

Chapter 2 process management

C language learning log 1.24

行情绘图课程大纲1-基础知识

Section 2 - branch and loop statements

External sort

Customer information management system - C language

PostgreSQL Guide: inside exploration (Chapter 10 basic backup and point in time recovery) - Notes

Shell built-in string substitution
随机推荐
Section 2 - branch and loop statements
Spread your wings and soar
1.2 differences caused by keywords
安装harbor(在线|离线)
Clause 34: lambda is preferred over std:: bind
Stepping on a horse (one stroke)
C language learning log 1.17
Section 5 - Operator details
Simple sr: Best Buddy Gans for highly detailed image super resolution Paper Analysis
QT realizes message sending and file transmission between client and server
Chapter 17 free space management
metaRTC4.0稳定版发布
C language learning log 10.10
Elliptic curve encryption
List collection concurrent modification exception
Simple-SR:Best-Buddy GANs for Highly Detailed Image Super-Resolution论文浅析
The games that you've tasted
动态规划-最长公共子串
C language learning log 12.25
C language learning log 1.22