使用virsh执行qemu-monitor命令
virsh 可以发送命令给qemu-monitor virsh # help qemu-monitor-command host NAME qemu-monitor-command – QEMU Monitor Command SYNOPSIS qemu-monitor-command <domain> [–hmp] [–pretty] {[–cmd] <string>}……
If you find that you're not, I hope you have the strength to start all over again.
virsh 可以发送命令给qemu-monitor virsh # help qemu-monitor-command host NAME qemu-monitor-command – QEMU Monitor Command SYNOPSIS qemu-monitor-command <domain> [–hmp] [–pretty] {[–cmd] <string>}……
将无法解析的命令 1. catch parse异常. 2. 错误输出直接重定向/dev/null.避免干扰output #!/usr/bin/env python import sys import os import subprocess from optparse import OptionParser class redirect_stdout_stderr(object):…
virsh dumpxml domain 虚拟机dumpxml例,可以参考格式 xml <domain type=’kvm’ id=’12’> <name>ceph-node3</name> <uuid>4f52f828-f538-45cb-9f02-eeb555e96020</uuid> <memory unit=’KiB’>8388608</memory> <currentMemory unit=’KiB’>8388608</currentMemory> <vcpu placement=’static’>2</vcpu> <resource> <partition>/machine</partition> </resource> <os>…
使用docker安装ceph #划分子网 docker network create –driver bridge –subnet 172.20.0.0/16 ceph-network docker network ls docker network inspect ceph-network #用于存放ceph配置 mkdir -p…
定义 SNIA对快照的描述: A point in time copy of a defined collection of data. 快照有全量快照和增量快照.我们常用的基本是增量快照(delta snapshot) A type of point in…