<div dir="ltr">Nm, turns out qemu-kvm needs to be started with the full path (/usr/libexec/qemu-kvm -hda....) then virsh goes past this error.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 8, 2017 at 12:22 PM, DS DS <span dir="ltr"><<a href="mailto:dsvirt17@gmail.com" target="_blank">dsvirt17@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I am using "qemu-attach" in virsh to attach to an existing qemu process so I can send monitor commands to it.</div><div><br></div><div>the VM is started using</div><div>qemu-kvm -net none -hda ./out.img -m 4G -nographic<br></div><div><br></div><div>The VM gets started and the OS boots fine.</div><div><br></div><div>Then, I start virsh and do a "qemu-attach 44273" which is the PID of the qemu process.</div><div><div>virsh # qemu-attach 44273</div><div>error: Failed to attach to pid 44273</div><div>error: Cannot check QEMU binary qemu-kvm: No such file or directory</div></div><div><br></div><div>qemu-kvm is in /usr/libexec. There is a symlink to it from /usr/bin and /bin.</div><div><br></div><div>The virsh command "create" (for a different VM) works fine.</div><div><br></div><div>What could be missing? Are there any debug/log messages/config files that can shed some light.</div><div><br></div><div>Thanks.</div></div>
</blockquote></div><br></div>