当前位置: 首页 > news >正文

怎么做qq分享网站wordpress页脚修改

怎么做qq分享网站,wordpress页脚修改,简约风ppt模板免费,ps怎么做网站首页kvm存储虚拟化 一、命令行工具管理虚拟磁盘1、查看虚拟磁盘2、添加磁盘3、删除磁盘 二、qcow2格式的磁盘文件1、创建磁盘文件2、差量镜像/快速创建虚机2.1 创建差量镜像2.2 准备配置文件2.3 创建虚拟机2.4 批量部署虚拟机 三、存储池 storage pool1、类型2、在线迁移2.1 规划后… kvm存储虚拟化 一、命令行工具管理虚拟磁盘1、查看虚拟磁盘2、添加磁盘3、删除磁盘 二、qcow2格式的磁盘文件1、创建磁盘文件2、差量镜像/快速创建虚机2.1 创建差量镜像2.2 准备配置文件2.3 创建虚拟机2.4 批量部署虚拟机 三、存储池 storage pool1、类型2、在线迁移2.1 规划后端存储2.2 运行虚拟机的主机挂载测试存储3、创建存储池4、添加主机名解析5、测试迁移 一、命令行工具管理虚拟磁盘 1、查看虚拟磁盘 [rootmartin-host ~]# virsh domblklist vm01_centos79 Target Source ------------------------------------------------ hda /var/lib/libvirt/images/vm01_centos79.qcow2 hdb /kvm/iso/CentOS-7.9-x86_64-Everything-2009.iso vda /var/lib/libvirt/images/vm01_centos79-1.qcow22、添加磁盘 [rootmartin-host ~]# qemu-img create -f qcow2 /var/lib/libvirt/images/vm01_centos79-2.qcow2 5G Formatting /var/lib/libvirt/images/vm01_centos79-2.qcow2, fmtqcow2 size5368709120 encryptionoff cluster_size65536 lazy_refcountsoff [rootmartin-host ~]# ls /var/lib/libvirt/images/ vm01_centos79-1.qcow2 vm01_centos79-2.qcow2 vm01_centos79.qcow2 vm02_centos79.qcow2[rootmartin-host ~]# virsh attach-disk vm01_centos79 --source /var/lib/libvirt/images/vm01_centos79-2.qcow2 --target vdb --subdriver qcow2 --cache writeback --persistent Disk attached successfully磁盘缓存的工作模式: 1、writeback 回写 2、writethrough 通写默认[rootmartin-host ~]# virsh domblklist vm01_centos79 Target Source ------------------------------------------------ hda /var/lib/libvirt/images/vm01_centos79.qcow2 hdb /kvm/iso/CentOS-7.9-x86_64-Everything-2009.iso vda /var/lib/libvirt/images/vm01_centos79-1.qcow2 vdb /var/lib/libvirt/images/vm01_centos79-2.qcow23、删除磁盘 [rootmartin-host ~]# virsh detach-disk vm01_centos79 vda --persistent Disk detached successfully[rootmartin-host ~]# virsh detach-disk vm01_centos79 vdb --persistent Disk detached successfully二、qcow2格式的磁盘文件 1、创建磁盘文件 [rootmartin-host ~]# qemu-img create -f qcow2 /opt/disk01.qcow2 8G Formatting /opt/disk01.qcow2, fmtqcow2 size8589934592 encryptionoff cluster_size65536 lazy_refcountsoff [rootmartin-host ~]# qemu-img info /opt/disk01.qcow2 image: /opt/disk01.qcow2 file format: qcow2 virtual size: 8.0G (8589934592 bytes) disk size: 196K cluster_size: 65536 Format specific information:compat: 1.1lazy refcounts: false 2、差量镜像/快速创建虚机 2.1 创建差量镜像 [rootmartin-host ~]# qemu-img create -f qcow2 -b /var/lib/libvirt/images/vm01_centos79.qcow2 /var/lib/libvirt/images/test1_centos79.qcow2 Formatting /var/lib/libvirt/images/test1_centos79.qcow2, fmtqcow2 size8589934592 backing_file/var/lib/libvirt/images/vm01_centos79.qcow2 encryptionoff cluster_size65536 lazy_refcountsoff [rootmartin-host ~]# qemu-img info /var/lib/libvirt/images/test1_centos79.qcow2 image: /var/lib/libvirt/images/test1_centos79.qcow2 file format: qcow2 virtual size: 8.0G (8589934592 bytes) disk size: 196K cluster_size: 65536 backing file: /var/lib/libvirt/images/vm01_centos79.qcow2 Format specific information:compat: 1.1lazy refcounts: false 2.2 准备配置文件 [rootmartin-host qemu]# cp vm01_centos79.xml test1_centos79.xml 虚拟名称、UUID、磁盘文件位置、MAC地址、VNC2.3 创建虚拟机 [rootmartin-host ~]# virsh define /etc/libvirt/qemu/test1_centos79.xml Domain test1_centos79 defined from /etc/libvirt/qemu/test1_centos79.xml[rootmartin-host ~]# virsh list --allId Name State ----------------------------------------------------- test1_centos79 shut off- vm01_centos79 shut off- vm02 shut off[rootmartin-host ~]# virsh start test1_centos79 Domain test1_centos79 started[rootmartin-host ~]# virsh autostart test1_centos79 Domain test1_centos79 marked as autostarted2.4 批量部署虚拟机 #!/bin/bash ## 删除所有虚拟机for vm_name in $(virsh list --all | awk NR2{print $2}) dovirsh destroy ${vm_name} /dev/nullvirsh undefine ${vm_name} /dev/null donerm -rf /var/lib/libvirt/images/*# 新建虚拟机 kvm_config_file/opt/kvm/vm_base.xml kvm_disk_file/opt/kvm/vm_base.qcow2read -p 虚拟机数量: numberfor i in $(seq $number) dovm_namevm${i}_centos79cp ${kvm_config_file} /etc/libvirt/qemu/${vm_name}.xmlqemu-img create -f qcow2 -b ${kvm_disk_file} /var/lib/libvirt/images/${vm_name}.qcow2 /dev/nullsed -ri s/vm_base/${vm_name}/g /etc/libvirt/qemu/${vm_name}.xmlsed -ri /uuid/c \ uuid$(uuidgen)/uuid /etc/libvirt/qemu/${vm_name}.xmlvm_mac52:54:00:$(openssl rand -hex 10 | sed -r s/(..)(..)(..).*/\1:\2:\3/)sed -ri /mac/c \ mac address${vm_mac}/ /etc/libvirt/qemu/${vm_name}.xmlvirsh define /etc/libvirt/qemu/${vm_name}.xml /dev/nulldone三、存储池 storage pool 存储磁盘文件的路径/位置 1、类型 本地存储池 网络存储池 虚拟机在线迁移(必须) [rootmartin-host ~]# virsh pool-list --all Name State Autostart -------------------------------------------default active yes iso active yes [rootmartin-host ~]# virsh pool-dumpxml default pool typedirnamedefault/nameuuid1328db51-967c-4696-a63c-88814221c3ad/uuidcapacity unitbytes211654430720/capacityallocation unitbytes20023582720/allocationavailable unitbytes191630848000/availablesource/sourcetargetpath/var/lib/libvirt/images/pathpermissionsmode0711/modeowner0/ownergroup0/grouplabelsystem_u:object_r:virt_image_t:s0/label/permissions/target /pool2、在线迁移 2.1 规划后端存储 [rootkvm_nfs ~]# cat /etc/exports /kvm_image 192.168.140.200(rw,no_root_squash) 192.168.140.10(rw,no_root_squash)2.2 运行虚拟机的主机挂载测试存储 [rootmartin-host ~]# mount 192.168.140.11:/kvm_image /mnt/ [rootmartin-host ~]# touch /mnt/a [rootmartin-host ~]# ls /mnt/ a [rootmartin-host ~]# umount /mnt 3、创建存储池 [rootmartin-host ~]# df -hT | grep nfs 192.168.140.11:/kvm_image nfs4 100G 33M 100G 1% /pool_by_nfs [rootmartin-host ~]# 4、添加主机名解析 [rootmartin-host ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.140.200 martin-host.linux.com 192.168.140.10 new-host.linux.com[rootmartin-host ~]# scp /etc/hosts root192.168.140.10:/etc/hosts root192.168.140.10s password: hosts 5、测试迁移 [rootmartin-host ~]# virsh migrate vm1_centos79 --live qemussh://192.168.140.10/system --unsafe root192.168.140.10s password:
http://www.hkea.cn/news/14446678/

相关文章:

  • 有色建设网站加强网站互动交流平台建设自查
  • 网站开发与维护竞赛临夏建设网站
  • wordpress网站合并企业建站做网站
  • 淮南查查网手机网站怎么做SEO优化
  • 番禺外贸型网站建设桂林房产
  • 深圳 网站策划wordpress 生成水印
  • 常见的网站首页布局特价手机网站建设
  • 电脑装机网站明星百度指数在线查询
  • 科技公司网站建设策划方案海南省建设工程执业中心网站
  • 百度网站降级的原因wordpress 七牛 水印
  • 怎么学php网站开发大气婚庆网站源码
  • 东莞最便宜网站建设小门户网站模版
  • 网站建设费用 做个网站要多少钱手机网站怎么做淘宝客
  • 常用网站开发软件6企业网站建立意义何在
  • 苏州网站建设软件收费关于网站建设管理的通知
  • 网站建设的美图网店推广方法和技巧
  • seo点击排名软件哪家好网站建设和网络优化请示
  • ppt做的最好的网站四川平昌县建设局网站
  • 南宁网站制作定制如何用ftp登陆网站
  • 福州网站设计哪家好网站开发用盗版犯法
  • 成都网络推广网站奉贤网站建设推广
  • 专业建设标准搜易网优化的效果如何
  • 济南专业做网站公司哪家好南昌制作网站的公司吗
  • 纯静态网站开发如何在别人的网站模板上加兼容
  • 网站域名快速备案大连 找人做网站
  • asp.net网站开发教程 pdf做技能培训和那个网站合作好
  • 辽宁建设工程信息网官方网站大连白云小学网站建设
  • 上海民政网站相关建设情况网络 设计
  • 模板网站有哪几类电子商务网站平台建设目标
  • 常州企业网站建设价格网站开发与应用就业方向