ubuntu – kvm snapshot-create-as失败

前端之家收集整理的这篇文章主要介绍了ubuntu – kvm snapshot-create-as失败前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有带qemu / kvm的ubuntu服务器.
我尝试使用libvirt创建快照(进一步备份)并得到此错误
# virsh snapshot-create-as --domain 56 --name copy_snap --no-Metadata --disk-only --atomic --diskspec vda,snapshot=external,file=/path/to/snapshot
error: internal error: cannot update AppArmor profile 'libvirt-429060e6-88af-4515-b028-e5c9493a926a'

期刊:

# journalctl  -f
Dec 10 16:09:02 gamma libvirtd[23795]: internal error: Child process (/usr/lib/libvirt/virt-aa-helper -p 0 -r -u libvirt-429060e6-88af-4515-b028-e5c9493a926a -f /home/v.pastushenko/wiki.snap) unexpected exit status 1: virt-aa-helper: error: /var/lib/libvirt/qemu/channel/target/C7-Wiki.org.qemu.guest_agent.0
                                       virt-aa-helper: error: skipped restricted file
                                       virt-aa-helper: error: invalid VM definition
Dec 10 16:09:02 gamma libvirtd[23795]: internal error: cannot update AppArmor profile 'libvirt-429060e6-88af-4515-b028-e5c9493a926a'
Dec 10 16:09:02 gamma libvirtd[23795]: internal error: Child process (/usr/lib/libvirt/virt-aa-helper -p 0 -r -u libvirt-429060e6-88af-4515-b028-e5c9493a926a) unexpected exit status 1: virt-aa-helper: error: /var/lib/libvirt/qemu/channel/target/C7-Wiki.org.qemu.guest_agent.0
                                       virt-aa-helper: error: skipped restricted file
                                       virt-aa-helper: error: invalid VM definition
Dec 10 16:09:02 gamma libvirtd[23795]: internal error: cannot update AppArmor profile 'libvirt-429060e6-88af-4515-b028-e5c9493a926a'

在dmesg日志中,我没有看到来自AppArmor的任何拒绝消息.

软件版本:

# uname -a
Linux gamma 3.19.0-30-generic #34-Ubuntu SMP Fri Oct 2 22:08:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
# kvm --version
QEMU emulator version 2.2.0 (Debian 1:2.2+dfsg-5expubuntu9.6),Copyright (c) 2003-2008 Fabrice Bellard
# dpkg -l | grep libvirt-bin
ii  libvirt-bin                          1.2.12-0ubuntu14.2                  amd64        programs for the libvirt library

我认为我需要为AppArmor添加一些规则,这将允许libvirt更新它的配置文件.但我对dmesg中缺少审计日志感到困惑.有没有人有任何想法如何解决这个问题?

看起来你的libvirt版本已经过时或安装不正确:最新版本的发行版中有app armor配置脚本. 请检查/etc/apparmor.d/libvirt/中是否有文件
原文链接:https://www.f2er.com/ubuntu/347668.html

猜你在找的Ubuntu相关文章