Ticket #5524 (closed enhancement: wontfix)
acpipowerbutton and Other Users problem
|Reported by:||ToddAndMargo||Owned by:|
Guest: Windows Server 2003 R2, Windows XP Pro SP3 Host: CenbtOS 5.4
Would you guys please consider fixing this for me. I am at risk of data corruption (why the "critical" priority). It is also a total pain in the neck.
This is the command I use to shut down my headless Windows guests:
/usr/bin/VBoxManage controlvm $VM_Name acpipowerbutton
In theory, it works perfectly. In practice, it is a disaster. If you watch your "head" with VRDP, you will notice a pop up on your Windows guest to the effect: "Other people are logged on". And, you *never* shut down. So, you backup a running VM with dump. Or, you reboot/shutdown your host and kill all your headless VM's and corrupt the heck out of them. As I said: a disaster.
Supposedly, and I have not checked this, you can modify the following Windows command to shut your headless VM's down:
shutdown /s /m \%Headless_VM_IP% /t 10 /c "Shutdown:PowerFailure" /f /d U:6:12
I have tried this inside the Windows guest and it does work. I just have not modified it for Linux and tried it from the host.
This is such a disaster. Would you guys please come up with a method to actually shut down a headless VM under actual operating conditions with VBoxManage? I would really, really appreciate it.
Many thanks, -T