I have a rather weird problem. I'm going to try and present facts but the truth is that my problem seems so awkward that I don't really know what is happening.

I run a Debian 8.11 host with libvirt-1.2.9.
I have a virtual domain running ok with debian as well.

Fact #1. Starting the domain works fine:

virsh start my-domain

Fact #2. Stopping the domain FAILS:

virsh shutdown my-domain

Fact #3. If I SSH into my virtual domain (even just one command), then suddenly stopping the domain works?!?

ssh my-domain hostname
virsh shutdown my-domain

Do you have an explanation?
How can I programmatically do something to the vm so that it becomes stoppable? (they don't necessarily all have ssh installed)


  • Quote: "I have a virtual domain running ok with debian as well." I didn't specify but it's 8.11 as well – Chebarbudo Sep 13 '18 at 15:34
  • In a way, the guest OS shouldn't matter. What puzzles me is that basically, I cannot use "virsh shutdown" until I have made contact with a guest : - ssh into linux - or samba into windows - or http into macos It looks like the guest is not receiving any shutdown request until it has served some kind of dedicated request (a request dedicated to its os regardless of the fact it is a vm). – Chebarbudo Sep 14 '18 at 14:11
  • You have a strange problem, then, and you should be as detailed as possible about the entire environment. – Michael Hampton Sep 14 '18 at 17:54

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.

Browse other questions tagged or ask your own question.