Show qemu command line from virsh

6,190

Solution 1

You can consult the libvirt logs in:

/var/log/libvirt/qemu/$vmname.log

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

Solution 2

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
Share:
6,190

Related videos on Youtube

Jonathon Reinhart
Author by

Jonathon Reinhart

Professional C, asm, Python developer GitLab, FreeNas admin

Updated on September 18, 2022

Comments

  • Jonathon Reinhart
    Jonathon Reinhart over 1 year

    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?

  • Jonathon Reinhart
    Jonathon Reinhart over 5 years
    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.