Open Wenzel opened 8 years ago
I created PR #394 to fix this.
Sorry, I missed this when I commented on the PR. You're right, we have hard-coded qemu:///system elsewhere so we might as well do it again to be consistent. I think that it would be useful to have support for session one of these days too, but it looks like that could take a little more refactoring. For now, I think that your PR is the way to go. Thanks.
Hi ! I think I found another issue in the KVM driver.
When the command
pmemaccess
is issued viaQMP
in a new process, the command line is the following--qmp: virsh qemu-monitor-command winxp '{"execute": "pmemaccess", "arguments": {"path": "/tmp/vmirazy9h"}}'
which relates to this code inkvm.c:85
Without additonal arguments, virsh is trying to connect to QEMU usermode session. However we are only using the
qemu:///system
in the driver.That's why i have the following output :
We should also hardcode
qemu:///system
when we create thevirsh
command line : `virsh -c qemu:///system qemu-monitor-command winxp '{"execute": "pmemaccess", "arguments": {"path": "/tmp/vmirazy9h"}}'``PS: could it be possible to implement the domain lookup in
qemu:///session
also ? :)Thanks !