V
vlad
Guest
That might be a assign of bad host hardware or something wrong with your kernel, or whole proxmox setup. Test your hardware, try different kernels and/or re-install whole proxmox.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows]
"ErrorMode"=dword:00000002
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows]
"ShutdownWarningDialogTimeout"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Error Message Instrument]
"EnableDefaultReply"=dword:00000001
#!/bin/bash
POWEROFF_PASSWORD=$2
LOGFILE=/tmp/poweroff.log
TELNET=$(which telnet)
is_tcpport_up() {
SERVERIP="$1"
SERVERPORT="$2"
(
sleep 3
echo "quit"
) | $TELNET $SERVERIP $SERVERPORT | grep "Connected to " > /dev/null 2>&1
[[ "$?" -ne "1" ]] && return 0 || return 1
}
power_off() {
remoteport=3210
remoteip=$1
echo -n Using PowerOff service on ${remoteip}:${remoteport}: >>$LOGFILE
is_tcpport_up $remoteip $remoteport > /dev/null 2>&1
if [[ "$?" -eq "0" ]]; then
echo -n " OK" >>$LOGFILE
sleep 2
for ((d=0;d<3;d++)); do
(
sleep 2
echo "password $POWEROFF_PASSWORD"
sleep 1
echo "action poweroff"
sleep 1
echo "doit"
) | $TELNET $remoteip $remoteport > /dev/null 2>&1
echo -n . >>$LOGFILE
done
echo Done. >>$LOGFILE
return 0
else
echo Failed!. >>$LOGFILE
return 1
fi
}
power_off $1
./poweroff.sh <your_ip> <your_password>
Use gpedit.msc to enable:
Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options\Shutdown: Allow system to be shut down without having to log on
If it still does not work, try registry entries below.
Above works great with Win2003s.Code:[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows] "ErrorMode"=dword:00000002 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows] "ShutdownWarningDialogTimeout"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Error Message Instrument] "EnableDefaultReply"=dword:00000001
I use that tool only with Win2k to do full backups, never shutdown my host machines.
Use gpedit.msc to enable:
Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options\Shutdown: Allow system to be shut down without having to log on
If it still does not work, try registry entries below.
Above works great with Win2003s.Code:[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows] "ErrorMode"=dword:00000002 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows] "ShutdownWarningDialogTimeout"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Error Message Instrument] "EnableDefaultReply"=dword:00000001
I use that tool only with Win2k to do full backups, never shutdown my host machines.
We use essential cookies to make this site work, and optional cookies to enhance your experience.