<div dir="ltr"><div><div><div><div><div><div><div>Could anyone please list out the steps required to run the command <br></div>$virsh qemu-agent-command<br><br></div>Steps that I followed:<br><br></div>1. Clone the latest source code of libvirt <br>
</div>2. Create a vm of f18 (source:liveCD)<br></div>3. Edit f18 domain xml and add this:<br><pre style="border:1px solid rgb(153,153,153);background-color:rgb(238,238,238);color:rgb(0,0,0);padding:1em;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px">
<channel type='unix'>
   <source mode='bind' path='/var/lib/libvirt/qemu/f16x86_64.agent'/>
   <target type='virtio' name='org.qemu.guest_agent.0'/>
</channel></pre>4. On host: #./tools/virsh start f18<br></div><div>5. On guest: #yum install qemu-guest-agent -y<br></div>6. On host: # ./tools/virsh qemu-agent-command f18 '{"execute":"guest-network-get-interfaces"}'<br>
<br></div>Expected Response:<br><br>{"return":[{"name":"lo","ip-<div bgcolor="#FFFFFF">addresses":[{"ip-address-type":"ipv4","ip-address":"127.0.0.1","prefix":8},{"ip-address-type":"ipv6","ip-address":"::1","prefix":128}],"hardware-address":"00:00:00:00:00:00"},{"name":"eth0","ip-addresses":[{"ip-address-type":"ipv4","ip-address":"192.168.122.62","prefix":24},{"ip-address-type":"ipv6","ip-address":"fe80::5054:ff:fe14:9998","prefix":64}],"hardware-address":"52:54:00:14:99:98"}]}<br>
<br></div><div bgcolor="#FFFFFF">Actual result:<br></div><div bgcolor="#FFFFFF">(null)<br></div><br clear="all"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><br></div><div>Where am I going wrong?<br>
</div><div><br>-- <br><div dir="ltr">Nehal J. Wani<br>
UG2, BTech CS+MS(CL)<br>
IIIT-Hyderabad<div><a href="http://commanlinewani.blogspot.com" target="_blank">http://commanlinewani.blogspot.com</a></div></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>