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

中国建设教育协会官方网站贵州省建设局网站

中国建设教育协会官方网站,贵州省建设局网站,广告设计与制作基础知识,安卓软件开发工程师克隆主要是对磁盘文件进行操作。 1#xff09;完整克隆 a、拷贝虚拟机磁盘文件 b、生成虚拟机配置文件 centos7-2 291b0480-955a-45e2-a001-690fded69d1b c、导入xml并启动 [rootcentos8 ~]# virt-clone -o centos7 --auto-clone ERROR 要克隆的域必须已经关闭。 [rootcent…克隆主要是对磁盘文件进行操作。 1完整克隆 a、拷贝虚拟机磁盘文件 b、生成虚拟机配置文件 centos7-2 291b0480-955a-45e2-a001-690fded69d1b c、导入xml并启动 [rootcentos8 ~]# virt-clone -o centos7 --auto-clone ERROR 要克隆的域必须已经关闭。 [rootcentos8 ~]# virsh destroy centos7 Domain ‘centos7’ destroyed [rootcentos8 ~]# virt-clone -o centos7 --auto-clone ‘centos2-clone.qcow2’ 15% [ ] 102 MB/s | 1.5 GB 00:01:25 正在分配 ‘centos2-clone.qcow2’ | 10 GB 00:00:13 成功克隆 ‘centos7-clone’。 [rootcentos8 ~]# ll /opt 总用量 9477500 -rw------- 1 root root 1633353728 2月 27 14:03 centos2-clone.qcow2 #比centos2少个快照所以文件大小要比centos2小 -rw-r–r-- 1 root root 1887109120 2月 27 14:03 centos2.qcow2 [rootcentos8 ~]# virsh list --all Id 名称 状态 centos7 关闭centos7-clone 关闭 修改虚拟机名称 [rootcentos8 ~]# virsh domrename centos7-clone centos7-2 Domain successfully renamed [rootcentos8 ~]# virsh list --all Id 名称 状态 centos7 关闭centos7-2 关闭 将克隆的虚拟机跟原先的虚拟机xml文件导出来查看其两者的区别在哪里 [rootcentos8 opt]# virsh dumpxml centos7 centos7.xml [rootcentos8 opt]# virsh dumpxml centos7-3 centos7-3.xml [rootcentos8 opt]# vimdiff centos7.xml centos7-3.xml 1、虚拟机name 2、uuid不同 3、source file的磁盘文件不同 4、虚拟机的mac地址不同 手动完整克隆虚拟机 1、拷贝虚拟机的磁盘文件 cp centos7.qcow2 centos7-clone.qcow2 2、拷贝虚拟机xml配置文件 cp centos7.xml centos7-clone.xml 3、修改name、磁盘文件路径 4、将uuid删掉下次启动虚拟机时会自动生成新的uuid 5、将mac删掉下次启动虚拟机时会自动生成新的 6、导入虚拟机virsh define centos7-clone.xml 7、启动虚拟机virsh start centos7-clone 2链接克隆 a、基于源磁盘文件、生成链接磁盘文件 [rootcentos8 opt]# qemu-img create -f qcow2 -F qcow2 -b centos2-clone.qcow2 centos3.qcow2 Formatting ‘centos3.qcow2’, fmtqcow2 cluster_size65536 extended_l2off compression_typezlib size10737418240 backing_filecentos2-clone.qcow2 backing_fmtqcow2 lazy_refcountsoff refcount_bits16 [rootcentos8 opt]# qemu-img info centos3.qcow2 image: centos3.qcow2 file format: qcow2 virtual size: 10 GiB (10737418240 bytes) disk size: 196 KiB cluster_size: 65536 backing file: centos2-clone.qcow2 backing file format: qcow2 Format specific information: compat: 1.1 compression type: zlib lazy refcounts: false refcount bits: 16 corrupt: false extended l2: false b、生成虚拟机配置文件 c、导入xml并启动 以上两步合并一条命令 [rootcentos8 opt]# virt-install --virt-type kvm --os-typelinux --os-variant rhel7.4 --name centos7-3 --memory 1024 --vcpus 1 --disk /opt/centos3.qcow2 --boot hd --network networkdefault --graphics vnc,listen0.0.0.0 --noautoconsole
http://www.hkea.cn/news/14571335/

相关文章:

  • 郑州seo建站网站访客qq抓取原理
  • 做期货资讯网站个人主页网站制作教程
  • 四川住房和城乡建设厅网站首页景区网站模板
  • 优良的定制网站建设公司网站建设费一般多少
  • 如何优化网站提高排名wordpress伪静态规则iis
  • 网站建设招标书技术介绍网站建设教程pdf下载
  • 免费的网站域名查询浏览器网站链接加标签
  • 网站可以个人做吗石家庄住房和城乡建设局官网
  • 湖北省建设厅网站杨凯app开发公司哪家比较好
  • 网站不兼容怎么办啊0基础学编程先学什么
  • 自助建站网站系统算命公司网站建设制作开发方案
  • 沈阳三好街网站建设嘉兴做网站的
  • 单位网站设计制作wordpress 全部函数
  • 网站建设前期需要干嘛怎么重新打开wordpress
  • 佛山出格建站建立一个团购网站需要多少钱
  • 潍坊做网站优化上海网站seo招聘
  • 网站开发技术分享ppt网站更换备案号
  • 网站建设功能怎么写上海开本建设工程有限公司
  • 网站制作怎么学网站营销有哪些
  • 企业网站有哪些举例公司网站建设 公司简介怎么写
  • c语言自学免费网站安徽做手机网站
  • 做网站找个人还是公司招聘wordpress
  • 单页网站模板修改吗开封搜索引擎优化
  • 建站网站官方哈尔滨门户网站设计报价
  • 国外做的不错的网站设计网站推荐理由
  • 如何做房地产微信推送网站广告深圳建设集团是国企吗
  • 网站设计实例榆林哪里做网站
  • 建网站的工具电子商务网站建设与管理考卷
  • 卖磁铁的网站怎么做的网站建设. 龙兵科技
  • 西安网络优化培训机构公司seo优化软件购买