I am debugging a problem with a libvirt VM starting, and I want to see the exact command line that it is going to use to start qemu. Is this possible using virsh or some other utility?


You can consult the libvirt logs in:


Source: https://fedoraproject.org/wiki/Windows_Virtio_Drivers


Just saw this question. In the hope it helps others, the easiest way to see the qemu command that was used, while the VM is running, is:

ps -ef | grep qemu-system-x86
  • Thanks but this doesn't help. Like I said in the question, I was trying to debug a VM that wouldn't start. The qemu process exited immediately, so looking at the running process list doesn't show what I was looking for. – Jonathon Reinhart Sep 1 '18 at 12:25

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.