mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +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:
parent
2e3ffba851
commit
eeae606d08
15 changed files with 409 additions and 309 deletions
|
|
@ -33,16 +33,18 @@
|
|||
</div>
|
||||
</div>
|
||||
{# open when one of them is set or refused #}
|
||||
<details class="border-top pt-3"{% if form.migration_address.value or form.migration_address.errors or form.gstfsd_key.errors %} open{% endif %}>
|
||||
<details class="border-top pt-3"{% if form.migration_address.value or form.migration_address.errors or form.migration_tls.value or form.gstfsd_key.errors %} open{% endif %}>
|
||||
<summary>
|
||||
<span class="fw-semibold">{% trans "Advanced" %}</span>
|
||||
<span class="d-block small text-body-secondary text-break ms-3">
|
||||
{% trans "Migration address" %}: {{ form.migration_address.value|default:_("the host name") }}
|
||||
{% if form.migration_tls.value %}· {% trans "migrations over TLS" %}{% endif %}
|
||||
· {% trans "gstfsd key" %}: {% if form.instance.gstfsd_key %}{% trans "stored" %}{% else %}{% trans "none" %}{% endif %}
|
||||
</span>
|
||||
</summary>
|
||||
<div class="mt-3">
|
||||
{% bootstrap_field form.migration_address %}
|
||||
{% bootstrap_field form.migration_tls %}
|
||||
{% bootstrap_field form.gstfsd_key %}
|
||||
</div>
|
||||
</details>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue