Bo's Oracle Station

查看: 1101|回复: 0

课程第9次:2020-02-28星期五

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2020-2-28 19:26:25 | 显示全部楼层 |阅读模式
1. KVM虚拟机的配置文件路径/etc/libvirt/qemu/*.xml:
  1. etworks  rhel7.6.xml  win10.xml
复制代码
  1. <devices>
  2.     <emulator>/usr/libexec/qemu-kvm</emulator>
  3.     <disk type='block' device='disk'>
  4.       <driver name='qemu' type='raw' cache='none' io='native'/>
  5.       <source dev='/dev/sdc1'/>
  6.       <target dev='vda' bus='virtio'/>
  7.       <boot order='1'/>
  8.       <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
  9.     </disk>
  10.     <controller type='usb' index='0' model='qemu-xhci' ports='15'>
复制代码


备份虚拟机的配置(元数据meta),只要上面的xml文件,恢复时拷贝到此处(systemctl restart libvirtd)
备份虚拟机的盘数据(data),考贝dd if=/dev/sdc of=...file  bs=4M   , 恢复dd of=/dev/sdc if=...file

2. KVM虚拟机所在的主机如果重启,它们的运行内存会被保存
/var/lib/libvirt/qemu/save

3. 解释/etc/auto.master:
  1. /net    -hosts
  2. #
  3. # Include /etc/auto.master.d/*.autofs
  4. # The included files must conform to the format of this file.
  5. #
  6. +dir:/etc/auto.master.d
复制代码

4. systemctl reload nfs-server == exportfs -r


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-20 13:16 , Processed in 0.030337 second(s), 24 queries .

快速回复 返回顶部 返回列表