Github user ustcweizhou commented on the pull request:

    https://github.com/apache/cloudstack/pull/985#issuecomment-152187084
  
    succeed after the following change:
    
    diff --git 
a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
 
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingReso
    index 4ce1889..59b0c3c 100755
    --- 
a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
    +++ 
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
    @@ -1994,13 +1994,13 @@ public class LibvirtComputingResource extends 
ServerResourceBase implements Serv
             final SerialDef serial = new SerialDef("pty", null, (short)0);
             devices.addDevice(serial);
    
    -        /* Add a VirtIO channel for the Qemu Guest Agent tools */
    -        devices.addDevice(new ChannelDef("org.qemu.guest_agent.0", 
ChannelDef.ChannelType.UNIX));
    -
             /* Add a VirtIO channel for SystemVMs for communication and 
provisioning */
             if (vmTO.getType() != VirtualMachine.Type.User) {
                 devices.addDevice(new ChannelDef(vmTO.getName() + ".vport", 
ChannelDef.ChannelType.UNIX,
                                                  "/var/lib/libvirt/qemu/" + 
vmTO.getName() + ".agent"));
    +        } else {
    +            /* Add a VirtIO channel for the Qemu Guest Agent tools */
    +            devices.addDevice(new ChannelDef("org.qemu.guest_agent.0", 
ChannelDef.ChannelType.UNIX));
             }
    
             final VideoDef videoCard = new VideoDef(_videoHw, _videoRam);



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to