On 11/08/2012 03:25 PM, Daniel P. Berrange wrote:
The 'shutdown' and 'reboot' commands use terms that apply to the
operating system, because they *are* controlling the operating
system, not the virtual machine. They directly result in the
guest OS commands 'shutdown' and 'reboot' being invoked.
At least for QEMU this is only true for agent mode. Otherwise (default)
both virsh shutdown and virsh reboot are the same from the OS
perspective, namely a system powerdown request and will typically
result in the shutdown script to be run.
That's what can confuse users without insight to libvirt code.
--
Mit freundlichen Grüßen/Kind Regards
Viktor Mihajlovski
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294