Re: [PATCH 1/3] add guest agent configuration to domain xml

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi Jmiao

Don't forget to add "[libvirt-test-API]"  to your patch summary.

Thanks
Hongming

On 02/04/2015 05:26 PM, Jincheng Miao wrote:
Signed-off-by: Jincheng Miao <jmiao@xxxxxxxxxx>
---
  .../domain/xmls/kvm_linux_guest_install_cdrom.xml  |    4 ++++
  repos/domain/xmls/kvm_linux_guest_install_net.xml  |   20 ++++++++++++--------
  2 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/repos/domain/xmls/kvm_linux_guest_install_cdrom.xml b/repos/domain/xmls/kvm_linux_guest_install_cdrom.xml
index cb59e76..8f398bb 100644
--- a/repos/domain/xmls/kvm_linux_guest_install_cdrom.xml
+++ b/repos/domain/xmls/kvm_linux_guest_install_cdrom.xml
@@ -35,5 +35,9 @@
      <console/>
      <input bus="ps2" type="mouse"/>
      <graphics keymap="en-us" port="-1" type="vnc"/>
+    <channel type='unix'>
+      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/GUESTNAME.agent'/>
+      <target type='virtio' name='org.qemu.guest_agent.0'/>
+    </channel>
    </devices>
  </domain>
diff --git a/repos/domain/xmls/kvm_linux_guest_install_net.xml b/repos/domain/xmls/kvm_linux_guest_install_net.xml
index c4a7de7..5fad3a7 100644
--- a/repos/domain/xmls/kvm_linux_guest_install_net.xml
+++ b/repos/domain/xmls/kvm_linux_guest_install_net.xml
@@ -24,13 +24,17 @@
        <source file='DISKPATH'/>
        <target bus='HDDRIVER' dev='DEV'/>
      </disk>
-  <interface type="network">
-    <source network="default"/>
-    <mac address='MACADDR'/>
-    <model type='NICDRIVER'/>
-  </interface>
-  <console/>
-  <input bus="ps2" type="mouse"/>
-  <graphics keymap="en-us" port="-1" type="vnc"/>
+    <interface type="network">
+      <source network="default"/>
+      <mac address='MACADDR'/>
+      <model type='NICDRIVER'/>
+    </interface>
+    <console/>
+    <input bus="ps2" type="mouse"/>
+    <graphics keymap="en-us" port="-1" type="vnc"/>
+    <channel type='unix'>
+      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/GUESTNAME.agent'/>
+      <target type='virtio' name='org.qemu.guest_agent.0'/>
+    </channel>
    </devices>
  </domain>

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]