[ https://issues.apache.org/jira/browse/CLOUDSTACK-8715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14978377#comment-14978377 ]
ASF GitHub Bot commented on CLOUDSTACK-8715: -------------------------------------------- Github user remibergsma commented on the pull request: https://github.com/apache/cloudstack/pull/985#issuecomment-151838470 Hi @wido : SELinux is off: ``` [root@kvm1 channel]# getenforce Permissive ``` The generated XML: ``` 2015-10-28 13:02:00,216 DEBUG [resource.wrapper.LibvirtStartCommandWrapper] (agentRequest-Handler-5:null) st arting s-324-VM: <domain type='kvm'> <name>s-324-VM</name> <uuid>acdaffdf-9676-42eb-a386-f8aee0aaccca</uuid> <description>Debian GNU/Linux 5.0 (64-bit)</description> <cpu></cpu><sysinfo type='smbios'> <system> <entry name='manufacturer'>Apache Software Foundation</entry> <entry name='product'>CloudStack KVM Hypervisor</entry> <entry name='uuid'>acdaffdf-9676-42eb-a386-f8aee0aaccca</entry> </system> </sysinfo> <os> <type arch='x86_64' machine='pc'>hvm</type> <boot dev='cdrom'/> <boot dev='hd'/> <smbios mode='sysinfo'/> </os> <on_reboot>restart</on_reboot> <on_poweroff>destroy</on_poweroff> <on_crash>destroy</on_crash> <memory>524288</memory> <devices> <memballoon model='none'/> </devices> <vcpu>1</vcpu> <features> <pae/> <apic/> <acpi/> </features> <cputune> <shares>500</shares> </cputune> <clock offset='utc'> <timer name='kvmclock' > </timer> </clock> <devices> <emulator>/usr/libexec/qemu-kvm</emulator> <interface type='bridge'> <source bridge='cloud0'/> <mac address='0e:00:a9:fe:00:66'/> <model type='virtio'/> <rom bar='off' file=''/></interface> <interface type='bridge'> <source bridge='cloudbr0'/> <mac address='06:03:40:00:00:08'/> <model type='virtio'/> <rom bar='off' file=''/></interface> <interface type='bridge'> <source bridge='breth0-50'/> <mac address='06:ce:f8:00:00:17'/> <model type='virtio'/> <rom bar='off' file=''/></interface> <interface type='bridge'> <source bridge='cloudbr0'/> <mac address='06:16:8c:00:00:12'/> <model type='virtio'/> <rom bar='off' file=''/></interface> <console type='pty'> <target port='0'/> </console> <disk device='disk' type='file'> <driver name='qemu' type='qcow2' cache='none' /> <source file='/mnt/812ea6a3-7ad0-30f4-9cab-01e3f2985b98/544cbd54-7cfc-423c-b956-c0135efa059f'/> <target dev='vda' bus='virtio'/> </disk> <disk device='cdrom' type='file'> <driver name='qemu' type='raw' cache='none' /> <source file='/usr/share/cloudstack-common/vms/systemvm.iso'/> <target dev='hdc' bus='ide'/> </disk> <serial type='pty'> <target port='0'/> </serial> <graphics type='vnc' autoport='yes' listen='192.168.22.21' passwd='NYq46aTBPtud7Nj4D62C9Q'/> <channel type='unix'> <source mode='bind'/> <address type='virtio-serial'/> <target type='virtio' name='org.qemu.guest_agent.0' state='connected'/> </channel> <channel type='unix'> <source mode='bind' path='/var/lib/libvirt/qemu/s-324-VM.agent'/> <address type='virtio-serial'/> <target type='virtio' name='s-324-VM.vport'/> </channel> <input type='tablet' bus='usb'/> </devices> </domain> ``` > 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)