[libvirt-users] behaviour of "virsh shutdown domainName"

Jorge Somavilla somavilla at dit.upm.es
Sat Mar 13 17:08:05 UTC 2010


Hi all,

I am experiencing some problems with different versions of libvirt
(0.7.5 and 0.7.7), with a kvm (WinXP), host running Ubuntu 9.10, and i
would like to ask you two questions:

- In virsh, after running the command "shutdown domainName", what
should be the final state of the domain, if the shutdown finishes
correctly: "shutoff", "no-state", "inactive", or the domain shouldn't
show in "list --all" (full clean-up)?

- After the command "shutdown domainName", should i be able to run the
command "start domainName", without first defining the domain? (i.e.:
does shutdown "undefine" the domain?).

In my experience 0.7.5 used to leave the shut down domains as defined,
so i could run "start" right after. Testing in other hosts this
doesn't work always like that, and even if the domain apparently shuts
down correctly, the domain sometimes shows in "list --all", and
sometimes it doesn't. With libvirt 0.7.7 the domain never shows in
"list --all" after a successful shutdown, which makes me think it was
a bug and it has been corrected. Am i missing anything?

Any help would be much appreciated, thanks in advance.

Jorge Somavilla.




More information about the libvirt-users mailing list