3

I spun up a VM using virsh create, and I am able to see the VM in virsh list, however, when I run virt-manager, I am unable to see the VM in the GUI

I am trying to use virt-manager to access the VM console (virsh console does not work)

Does anybody have ideas how to troubleshoot this?

I found this: virt-manager doesn't show list of local KVMs but virsh does : but the question was never answered

EDIT: tried restarting libvirtd, still see the same thing. "grep libvirt /var/log/messages" does not show anything

EDIT2: spun up a second VM on second HV, the second VM shows up in virt-manager, but the first one doesn't. Very odd. Diffing the xml files dont show anything major, and the qemu commands look the same under ps

4
  • I am still not sure what happened, but I was able to work around this by running virt-manager on another box and connecting remotely
    – benhsu
    Oct 20, 2012 at 23:18
  • check the connection uri in virt-manager
    – c4f4t0r
    Jan 12, 2014 at 23:30
  • 1
    One thing I've noticed is a difference between the output of virsh list --all and that of sudo virsh list --all. My virt-manager VMs show up with the latter, not the former. The converse is true of VMs created with virtsh/virt-install, when executed without sudo.
    – Mark
    Mar 14, 2016 at 21:50
  • Running with sudo solved the problem. Mar 7, 2017 at 9:16

1 Answer 1

2

I would start by checking the logs on the virtualization server (grep for libvirt in /var/log/messages) and see if any messages point you towards a problem.

I've encountered issues before where virsh worked fine, but virt-manager behaved weirdly. Restarting libvirt on the virtualization server has always solved the problem for me.

1
  • Yeah. Admin 101 - look for errors first. Beforea asking because that is what you will be asked for anyway. Error logs are always a good idea to start at. +1.
    – TomTom
    Jan 12, 2014 at 20:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .