1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 09:26:03 +00:00

feat(migration): encrypt migrations over TLS between hosts that have it

QEMU sends a migrating VM's memory and copied disks in the clear. A
compute gets "Encrypt migrations (TLS)" (edit page, Advanced; API
field migration_tls); a migration between two hosts that both have it
passes VIR_MIGRATE_TLS whenever data moves (not for a shut-off VM's
definition alone), and the log says TLS. The hosts need QEMU's
certificates in /etc/pki/qemu; a host without them refuses before
anything moves. Tried on two AlmaLinux 10 hosts: the TLS stream starts
with a TLS record, the plain one with QEMU's QEVM header.
This commit is contained in:
catborise 2026-11-19 15:19:18 +03:00
parent 2e3ffba851
commit eeae606d08
15 changed files with 409 additions and 309 deletions

View file

@ -344,6 +344,7 @@ def migrate_instance(
autoconverge,
compress,
uri=new_compute.migration_uri,
tls=source.migration_tls and new_compute.migration_tls,
pools=disk_pools,
on_copy=on_copy,
running_only=running_only,