Wenn ich mittels
Code: Alles auswählen
virsh snapshot-create-as --domain debian9 --name "backup-debian9.qcow2" --no-metadata --atomic --disk-only --diskspec vda,snapshot=external
Wenn ich in allerdings wieder mit der originaldisk zusammenführen möchte dann bekomme ich ein Fehler
Code: Alles auswählen
virsh blockcommit debian9 vda --active --verbose --pivot
error: internal error: unable to execute QEMU command 'block-commit': Could not reopen file: Permission denied
Hier der betreffende Auszug aus der Konfigurationsdatei:
Code: Alles auswählen
# The default security driver is SELinux. If SELinux is disabled
# on the host, then the security driver will automatically disable
# itself. If you wish to disable QEMU SELinux security driver while
# leaving SELinux enabled for the host in general, then set this
# to 'none' instead. It's also possible to use more than one security
# driver at the same time, for this use a list of names separated by
# comma and delimited by square brackets. For example:
#
# security_driver = [ "selinux", "apparmor" ]
#
# Notes: The DAC security driver is always enabled; as a result, the
# value of security_driver cannot contain "dac". The value "none" is
# a special value; security_driver can be set to that value in
# isolation, but it cannot appear in a list of drivers.
#
#security_driver = "selinux"
security_driver = "none"
Code: Alles auswählen
virsh blockcommit debian9 vda --active --verbose --pivot
Block commit: [100 %]
Successfully
Meine Frage ist nun Bug oder nicht?
Wenn ja mach ich einen Bugreport.
bzw kann man das noch anders lösen ohne gleich die security optionen für die guest-images komplett abzuschalten?
Ach ja (aktuelles) unstable, und ich weiß eh ...
Code: Alles auswählen
libvirtd --version
libvirtd (libvirt) 4.7.0