主机系统是 CentOS 6.5 x86_64。我按照以下步骤设置了一个 Ubuntu 客户端本维基。客户机可以工作,但是:如果我重新启动主机,则需要很长时间(上次重新启动时大约 30 分钟)客户机才能真正启动。如果在此期间我启动 virsh 并执行“列表”,它就会挂起。
以下是 /var/log/libvirt/libvirt.log 的片段:
2014-10-14 16:47:11.509+0000: 4668: info : virDomainLoadAllConfigs:14696 : Scanning for configs in /var/run/libvirt/qemu
2014-10-14 16:47:11.527+0000: 4668: info : virDomainLoadAllConfigs:14696 : Scanning for configs in /etc/libvirt/qemu
2014-10-14 16:47:11.527+0000: 4668: info : virDomainLoadAllConfigs:14718 : Loading config file 'mythbuntu.xml'
2014-10-14 16:47:11.529+0000: 4668: info : qemuDomainSnapshotLoad:484 : Scanning for snapshots for domain mythbuntu in /var/lib/libvirt/qemu/snapshot/mythbuntu
2014-10-14 17:14:41.751+0000: 4668: info : virNetDevProbeVnetHdr:94 : Enabling IFF_VNET_HDR
2014-10-14 17:14:41.805+0000: 4668: info : virSecurityDACSetOwnership:296 : Setting DAC user and group on '/home/kvm/mythbuntu.img' to '107:107'
2014-10-14 17:14:41.806+0000: 4668: info : virSecurityDACSetOwnership:296 : Setting DAC user and group on '/mnt/mythtv1/mythbackend_recordings' to '107:107'
2014-10-14 17:14:42.084+0000: 4668: info : lxcSecurityInit:1380 : lxcSecurityInit (null)
注意到时间上的巨大跳跃了吗,从 16:47:11 到 17:14:41?后者是客户机实际启动的时间,此时,“virsh list”再次可用。
看起来 libvirt/kvm/qemu 被什么东西挂住了,但最终还是能够继续运行。有人知道它被什么东西挂住了吗?
编辑:我不使用快照。事实上:
# ls /var/lib/libvirt/qemu/snapshot/mythbuntu
ls: cannot access /var/lib/libvirt/qemu/snapshot/mythbuntu: No such file or directory
父级如下所示:
# ls -R /var/lib/libvirt/qemu/
/var/lib/libvirt/qemu/:
dump mythbuntu.monitor save snapshot
/var/lib/libvirt/qemu/dump:
/var/lib/libvirt/qemu/save:
/var/lib/libvirt/qemu/snapshot: