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

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

GitHub user ustcweizhou opened a pull request:

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

    CLOUDSTACK-8715: qemu-guest-agent support on KVM

    @wido can you check if these codes are useful for you? 

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

    $ git pull https://github.com/ustcweizhou/cloudstack guest-agent

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

    https://github.com/apache/cloudstack/pull/1027.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 #1027
    
----
commit 9317ef728f66ca7ff26166592ca2083432fdc805
Author: Wido den Hollander <[email protected]>
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
    
    Keep in mind that on Ubuntu AppArmor still needs to be disabled since the 
default
    AppArmor profile doesn't allow libvirt to write into /var/lib/libvirt/qemu

commit dbf8d0271eee8fd6a79f0159e377c636a0960011
Author: Wido den Hollander <[email protected]>
Date:   2015-10-30T11:33:27Z

    Install the Qemu Guest Agent inside the SSVM

commit f6e4955e128d4079692900630f8cbc1096840696
Author: Wei Zhou <[email protected]>
Date:   2015-11-01T20:56:09Z

    [Guest Agent] add guest_agent column in vm_template table

commit 13c7b8d472f1ae3992398a17317df48f3900317c
Author: Wei Zhou <[email protected]>
Date:   2015-11-02T07:52:18Z

    [Guest Agent] add guest agent support in kvm hypervisor plugin

commit 8df88e484ef0140a7ead5fdd6c49aebca7777e45
Author: Wei Zhou <[email protected]>
Date:   2015-11-02T09:15:41Z

    [Guest Agent] add rebootVM and stopVM via guest agent

commit 83abf9f0d9a125449a48a6211f6a6e9898088026
Author: Wei Zhou <[email protected]>
Date:   2015-11-03T09:44:32Z

    [Guest Agent] send boot args to systemvms by send_to_vm_agent.py

commit 010e5a7699bbc871473363530bb890bddbf1ed99
Author: Wei Zhou <[email protected]>
Date:   2015-11-03T11:46:00Z

    [Guest Agent] fix UI bugs

----


> 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
>            Assignee: Wido den Hollander
>              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)

Reply via email to