1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-09 11:46:49 +00:00
webvirtcloud/instances/templates
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
..
instances feat(instances): a running VM gets its root password and SSH key through its guest agent 2026-10-25 15:37:37 +03:00
add_instance_network_block.html fix(templates): pages parse without markup errors, element IDs are unique 2026-10-19 07:49:25 +03:00
add_instance_owner_block.html logger updates (#31) 2023-08-09 09:20:18 +03:00
add_instance_volume.html fix(templates): pages parse without markup errors, element IDs are unique 2026-10-19 07:49:25 +03:00
allinstances.html feat(instances): the new-VM dialog shows what each host has given its VMs 2026-10-25 13:13:40 +03:00
allinstances_index_grouped.html feat(tables): tables sort with tablesort, the grouped VM list within each host 2026-10-24 19:02:51 +03:00
allinstances_index_nongrouped.html feat(tables): tables sort with tablesort, the grouped VM list within each host 2026-10-24 19:02:51 +03:00
bottom_bar.html fix(instances): the VM page opens the tab a redirect points to, and host links are for administrators 2026-10-08 08:50:21 +03:00
create_flavors.html fix(instances): adding or deleting a flavor keeps the unfinished VM form 2026-10-24 11:12:07 +03:00
create_flavors_reply.html fix(instances): adding or deleting a flavor keeps the unfinished VM form 2026-10-24 11:12:07 +03:00
create_inst_block.html feat(instances): the new-VM dialog shows what each host has given its VMs 2026-10-25 13:13:40 +03:00
create_instance_w1.html fix(instances): a dependent list on the create pages shows only the latest choice 2026-10-24 12:22:46 +03:00
create_instance_w2.html fix(instances): a dependent list on the create pages shows only the latest choice 2026-10-24 12:22:46 +03:00
create_presets.html fix(instances): adding or deleting a flavor keeps the unfinished VM form 2026-10-24 11:12:07 +03:00
create_steps.html feat(instances): a new VM is made on one form in three steps 2026-10-23 23:26:28 +03:00
instance.html feat(instances): the XML editor shows a change before saving it 2026-10-24 19:40:46 +03:00
instance_actions.html fix(instances): the VM lists ask before a forced power off or power cycle 2026-10-21 21:01:25 +03:00
instance_state.html feat(instances): the VM list filters by state, and a host's name finds its VMs 2026-10-24 18:51:47 +03:00