[libvirt] [PATCH 3/8] Add a new 'virsh qemu-attach' command.
Matthias Bolte
matthias.bolte at googlemail.com
Tue Jul 5 11:09:28 UTC 2011
2011/7/4 Daniel P. Berrange <berrange at redhat.com>:
> This command allows libvirt to attach to an existing QEMU
> instance.
>
> $ qemu-kvm -cdrom ~/demo.iso \
> -monitor unix:/tmp/demo,server,nowait \
> -name foo \
> -uuid cece4f9f-dff0-575d-0e8e-01fe380f12ea &
> $ QEMUPID=$!
> $ virsh qemu-attach $QEMUPID
> ---
> tools/virsh.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++
> tools/virsh.pod | 26 +++++++++++++++++++++++++-
> 2 files changed, 72 insertions(+), 1 deletions(-)
>
> diff --git a/tools/virsh.c b/tools/virsh.c
> index 9a189fd..f7a1274 100644
> --- a/tools/virsh.c
> +++ b/tools/virsh.c
> @@ -11611,6 +11611,52 @@ cleanup:
> return ret;
> }
>
> +/*
> + * "qemu-attach" command
> + */
> +static const vshCmdInfo info_qemu_attach[] = {
> + {"help", N_("Qemu Attach")},
> + {"desc", N_("Qemu Attach")},
Below you replaced Qemu with QEMU, but here you use Qemu.
ACK.
--
Matthias Bolte
http://photron.blogspot.com
More information about the libvir-list
mailing list