1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-09 11:46:49 +00:00
webvirtcloud/instances/templates/instances
catborise 75fcc6f6c0 feat(instances): a running VM gets its root password and SSH key through its guest agent
The Access tab's Root Password and SSH Keys worked only on a shut-off
VM, through gstfsd on the compute. A running VM whose QEMU guest agent
is connected now gets them through the agent: guest-set-user-password
with the SHA-512 crypt hash, and guest-ssh-add-authorized-keys adding
the key to root's keys. A shut-off VM still goes through gstfsd; any
other VM is refused with "Shut the VM down, or start its QEMU guest
agent, and try again", and the buttons are disabled.

Each is one agent command with a 10 s timeout. libvirt's own calls for
them (setUserPassword, authorizedSSHKeysSet) wait for a hung agent
indefinitely, holding a worker and the VM's lock, and the domain's
agent timeout would change every other agent call of the VM too.

The agent's or libvirt's error is shown as is through error_text, so
users who do not see the hosts get no connection details, and the
attempt is logged as failed. The README names the SELinux boolean a
RHEL-family guest needs before its agent may add SSH keys.
2026-10-25 15:37:37 +03:00
..
access_tab.html feat(instances): a running VM gets its root password and SSH key through its guest agent 2026-10-25 15:37:37 +03:00
destroy_instance_form.html fix(instances): a paused VM can be destroyed from its page 2026-10-08 08:50:21 +03:00
destroy_tab.html fix(instances): a paused VM can be destroyed from its page 2026-10-08 08:50:21 +03:00
edit_instance_volume.html fix(templates): each confirmation says what its action does 2026-10-21 21:25:45 +03:00
form_errors.html fix(instances): a refused VM create form comes back with what was entered 2026-10-20 08:12:25 +03:00
info_tab.html Bootstrap5 (#17) 2021-07-07 14:12:38 +03:00
power_tab.html fix(templates): icon-only buttons, selects and delete pages have accessible names 2026-10-19 16:15:06 +03:00
resize_tab.html fix(instances): a running VM's options and CPU edits keep the pending changes 2026-10-11 14:09:23 +03:00
settings_tab.html fix(instances): the XML dialog keeps the edit and defines only this VM 2026-10-24 20:03:20 +03:00
snapshots_tab.html fix(templates): each confirmation says what its action does 2026-10-21 21:25:45 +03:00
stats_tab.html feat(tables): tables sort with tablesort, the grouped VM list within each host 2026-10-24 19:02:51 +03:00