当前位置:网站首页>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
边栏推荐
- C language learning log 12.14
- Ruoyi cloud startup tutorial (hand-held graphics)
- Std:: map insert details
- Chapter 15 mechanism: Address Translation
- Luogu p1036 number selection
- float类型取值范围
- Hidden implementation and decoupling, knowing Pimpl mode
- 使用EasyDarwin+FFmpeg实现rtsp推流
- Force buckle 25 A group of K flipped linked lists
- What is the saturate operation in opencv
猜你喜欢
QT interface rendering style
lookup
Bm1z002fj-evk-001 startup evaluation
Section 8 - Practical commissioning techniques
Pycharm错误解决:Process finished with exit code -1073741819 (0xC0000005)
Shell built-in string substitution
Case - recursive factorial (recursive)
Ruoyi cloud startup tutorial (hand-held graphics)
Understanding inode
Advanced C - Section 2 - pointers
随机推荐
float类型取值范围
Violence enumeration~
Introduction to QT XML
QT brushes and brushes
C language learning log 1.24
[multithreading] thread pool core class -threadpoolexecutor
std::condition_ variable::wait_ for
QT realizes message sending and file transmission between client and server
RMQ、LCA
Clause 31: avoid default capture mode
QT direction key to move focus
Case - random numbers without repetition (HashSet and TreeSet)
COAP protocol libcoap API
List collection concurrent modification exception
通过命令行创建harbor镜像库
Std:: Map empty example
Bomb disposal cat
Hidden implementation and decoupling, knowing Pimpl mode
Simple sr: Best Buddy Gans for highly detailed image super resolution Paper Analysis
Opencv image storage and reading