Kevin Wilson
2014-Dec-23 16:22 UTC
[libvirt-users] "virsh list" does not show anything after reboot [newbie]
Hi, libvirt users and gurus, I am a newbie to visualization, hope this question is not too silly, please bear with me. I had installed three guest on Fedora 21 with the virt-install tool, by: virt-install --name=f21_x86_64_guest --file=/var/lib/libvirt/images/guest.qcow2 --cdrom /workStorage/work/down/f21/Fedora-Live-Workstation-x86_64-21-5.iso --ram=2048 virt-install --name=f21_x86_64_guest1 --file=/var/lib/libvirt/images/guest.qcow2 --cdrom /workStorage/work/down/f21/Fedora-Live-Workstation-x86_64-21-5.iso --ram=2048 --force virt-install --name=f21_x86_64_guest2 --file=/var/lib/libvirt/images/guest.qcow2 --cdrom /workStorage/work/down/f21/Fedora-Live-Workstation-x86_64-21-5.iso --ram=2048 --force When runing "virsh list" I see these three guests as running. Now, I rebooted the machine, and "virsh list" does not show anything. It turned out that running "systemctl status libvirtd" showed some error (about some NFS path which was not found), and once I fixed that, I restarted the libvirtd, and this time running "systemctl status libvirtd" showed that it is running OK. Yet, runnig "virsh list" does not show anything Any ideas ? what I should do to run one of these guest I created before booting the machine ? Regards, Kevin
Eric Blake
2014-Dec-23 16:26 UTC
Re: [libvirt-users] "virsh list" does not show anything after reboot [newbie]
On 12/23/2014 09:22 AM, Kevin Wilson wrote:> When runing "virsh list" I see these three guests as running. > > Now, I rebooted the machine, and "virsh list" does not show anything. > It turned out that > running "systemctl status libvirtd" showed some error (about some NFS > path which was not found), > and once I fixed that, I restarted the libvirtd, and this time running > "systemctl status libvirtd" > showed that it is running OK. Yet, runnig "virsh list" does not show anythingDoes 'virsh list --all' show anything? If so, you have hit a state where your guests are not running, but still defined, and 'virsh start $dom' will restart the given domain. Normally, the 'libvirt-guests' systemd service will arrange to automatically restart a guest where it left off just before the host power-cycled, but that can fall apart when libvirtd itself has problems restarting. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org