-
-
Notifications
You must be signed in to change notification settings - Fork 53
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Add TLS support for remote backup. It seems not all distributions ship an up to date domainbackup.rng, so its
not possible to start an NBD pull service with TLS support. As distributions adopt, add option --with-tls, so remote
backup via NBDS is possible.
https://fossies.org/linux/libvirt/src/conf/schemas/domainbackup.rng on debian11:
60 <element name="server">
61 <optional>
62 <attribute name="tls">
63 <ref name="virYesNo"/>
64 </attribute>
on rhel 8.5 tls option is missing, so created backup-begin xml fails to validate:
</optional>
<!-- add tls? -->
</group>
Backup XML example:
<domainbackup mode="pull">
<server tls="yes" name="192.168.20.2" port="10809"/>
<disks>
<disk name="vda">
<scratch file="/var/tmp/backup.9Y9VD.sda"/>
</disk>
</disks>
</domainbackup>
this however requires some setup on the host too:
sudo virsh backup-begin --backupxml bck.xml restoredvm
error: internal error: unable to execute QEMU command 'object-add': Unable to access credentials /etc/pki/qemu/ca-cert.pem: No such file or directory
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request