cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-8715) Add support for qemu-guest-agent to libvirt provider
Date Tue, 27 Oct 2015 10:08:28 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-8715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14976137#comment-14976137
] 

ASF GitHub Bot commented on CLOUDSTACK-8715:
--------------------------------------------

GitHub user wido opened a pull request:

    https://github.com/apache/cloudstack/pull/985

    CLOUDSTACK-8715: Add VirtIO channel to all Instances for the Qemu Gue…

    …st Agent
    
    This commit adds a additional VirtIO channel with the name 'org.qemu.guest_agent.0'
    to all Instances.
    
    With the Qemu Guest Agent the Hypervisor gains more control over the Instance if
    these tools are present inside the Instance, for example:
    
    * Power control
    * Flushing filesystems
    
    In the future this should allow safer snapshots on KVM since we can instruct the
    Instance to flush the filesystems prior to snapshotting the disk.
    
    More information: http://wiki.qemu.org/Features/QAPI/GuestAgent

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/wido/cloudstack CLOUDSTACK-8715

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/985.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #985
    
----
commit 10447b262c30d03bc50cfba869d6e0c5957d8926
Author: Wido den Hollander <wido@widodh.nl>
Date:   2015-10-27T10:03:49Z

    CLOUDSTACK-8715: Add VirtIO channel to all Instances for the Qemu Guest Agent
    
    This commit adds a additional VirtIO channel with the name 'org.qemu.guest_agent.0'
    to all Instances.
    
    With the Qemu Guest Agent the Hypervisor gains more control over the Instance if
    these tools are present inside the Instance, for example:
    
    * Power control
    * Flushing filesystems
    
    In the future this should allow safer snapshots on KVM since we can instruct the
    Instance to flush the filesystems prior to snapshotting the disk.
    
    More information: http://wiki.qemu.org/Features/QAPI/GuestAgent

----


> Add support for qemu-guest-agent to libvirt provider
> ----------------------------------------------------
>
>                 Key: CLOUDSTACK-8715
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8715
>             Project: CloudStack
>          Issue Type: New Feature
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: KVM
>            Reporter: Sten Spans
>              Labels: kvm, libvirt, qemu, systemvm
>             Fix For: Future
>
>
> The qemu guest agent is a newer part of qemu/kvm/libvirt which exposes quite a lot of
useful functionality, which can only be provided by having an agent on the VM. This includes
things like freezing/thawing filesystems (for backups), reading files on the guest, listing
interfaces / ip addresses, etc.
> This feature has been requested by users, but is currently not implemented.
> http://users.cloudstack.apache.narkive.com/3TTmy3zj/enabling-qemu-guest-agent
> The first change needed is to add the following to the XML generated for KVM virtual
machines,:
> <channel type='unix'>
>   <source mode='bind'/>
>   <target type='virtio' name='org.qemu.guest_agent.0'/>
> </channel>
> This provides the communication channel between libvirt and the agent on the host. All
in all a pretty simple change to LibvirtComputingResource.java / LibvirtVMDef.java
> Secondly the qemu-guest-agent package needs to be added to the systemvm template.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message