]> xenbits.xensource.com Git - libvirt.git/commit
qemu: implement keyfile auth for ssh disks with nbdkit
authorJonathon Jongsma <jjongsma@redhat.com>
Thu, 22 Dec 2022 22:56:47 +0000 (16:56 -0600)
committerJonathon Jongsma <jjongsma@redhat.com>
Tue, 19 Sep 2023 19:28:50 +0000 (14:28 -0500)
commit68599168ea8185689bd227e6d142e3d933558f84
tree80e42e739b41ed836c0e76e64699fb8413cce19e
parent1e2fa6d524f0e2c65c0ce703dbde22b1e8c78285
qemu: implement keyfile auth for ssh disks with nbdkit

For ssh disks that are served by nbdkit, we can support logging in with
an ssh key file. Pass the path to the configured key file and the
username to the nbdkit process.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/conf/domain_conf.c
src/conf/storage_source_conf.c
src/conf/storage_source_conf.h
src/qemu/qemu_nbdkit.c
tests/qemunbdkitdata/disk-network-ssh-key.args.disk0 [new file with mode: 0644]
tests/qemunbdkitdata/disk-network-ssh.args.disk2 [new file with mode: 0644]
tests/qemunbdkittest.c
tests/qemuxml2argvdata/disk-network-ssh-key.xml [new file with mode: 0644]