Signed-off-by: Jincheng Miao <jmiao(a)redhat.com>
---
.../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>
--
1.7.1