ProxMox + APC или как выключить сервер посла того как пропало электричество.
Всем здравствуйте. Подскажите пожалуйста как можно выключить виртуальные машины и после сам сервер на proxMox. кто то может уже настраивал и знает последовательность действий и какие ПО использовать? на виндовые машины можно наверное поставить «Start System Protect Service» а вот как сам ProxMox погасить?
Рекомендую использовать утилиту apcupsd. Она отлично работает с упсами от APC. Пример того, как это работает на гипервизорах есть в моей статье — https://serveradmin.ru/ustanovka-i-nastroyka-apcupsd-na-xenserver/ Хоть там и используется XenServer, но смысл везде одинаковый. Все конфиги одинаковые, только установка на систему разная, но очень простая.
все сделал поставил в proxMox apcupsd, далее прописал в конфиге клиентском как у вас ip и порт сетевой карты SNMP что вставлена в UPS, в итоге не поднялось подключение
при запуске cat /var/log/apcupsd.events
2017-09-23 19:39:30 +0300 apcupsd 3.14.14 (31 May 2016) debian startup succeeded
2017-09-23 19:40:40 +0300 Communications with UPS lost.
2017-09-23 19:50:40 +0300 Communications with UPS lost.
2017-09-23 20:00:40 +0300 Communications with UPS lost.
2017-09-23 20:10:40 +0300 Communications with UPS lost.
2017-09-23 20:20:40 +0300 Communications with UPS lost.
а при запуске cat: /var/log/apcupsd.status: No such file or directory
пишет cat: /var/log/apcupsd.status: No such file or directory
Причем есть прога «Start System Protect Service» которая на винде цепляются к этой SNMP карте, так у нее проблем нет все работает, я брал те же ip и порт что в этой проге прописаны.
No shutdown for Windows 10 machines
sigxcpu
Active Member
Since upgrading to PVE4b2, the Windows 10 machine does not really shut down. The VM screen goes black and CPU usage jumps to 100% (multiplied by the number of VM cores).
Forced downgrade to QEMU 2.3 and does the same, so I assume it has something to do with 4.2.0 kernel.
Tried a fresh install of Windows and it does the same, so it is not something inside the VM.
strace shows that all the KVM process is doing like crazy is
Killing the KVM process always works.
spirit
Famous Member
On this post I have sent a 4.2.1 kernel, can you test it ?
IS it the same with linux guest or other windows (7,8,8.1 ?) ?
«Are you looking for a French Proxmox training center?
sigxcpu
Active Member
FreeBSD works fine (if machine != q35, hangs otherwise with interrupt storm on irq19). I don’t have a Linux guest.
Does your patched 4.2.1 kernel have ZFS 0.6.5.1? Otherwise there will be breakage with userland tools.
LE: Nope, does not fix it. Still hangs after shutdown (I’m not sure it is a clean shutdown either, because it is too fast).
spirit
Famous Member
Another possibility (if that occur only on windows),
can you edit the file
/usr/share/perl5/PVE/QemuServer.pm
and comment theses line
then restart
/etc/init.d/pvedaemon restart
and stop/start the vm again.
Theses are new hyper-v flags we have enabled for proxmox 4.0.
«Are you looking for a French Proxmox training center?
sigxcpu
Active Member
Nope, still doesn’t solve it. Here’s the kvm process parameters:
spirit
Famous Member
another new flags are (you can also comment them in QemuServer.pm) :
Also, some user reports kernel 4.2 problems,
maybe can you try to downdrage to 4.1 kernel:
«Are you looking for a French Proxmox training center?
sigxcpu
Active Member
Nope, still not working. I’ve tried with first ones on and remove the last ones and also with all 4 commented out.
Unfortunately I don’t think I can test with 4.1.3 as the userland ZFS tools are too new (0.6.5.1) now.
LE: I have another server with L5630 CPU and I will move this VM on that one and check to make sure it is not a CPU issue. The one with problems is a HP Microserver Gen8 with E3-1265L V2.
Nope. The L5630 machine (PVE4b2) does exactly the same so it is not a physical CPU issue.
Start and stop KVM VM from command line
steno
New Member
Hello! Great work guys !
I have a small problem, I want make a small bash script for backup qcow2 files, how can I stop from command line (no web interface) an KVM machine ?
Like vmctl stop/start, but for KVM VMs.
Proxmox Staff Member
Hello! Great work guys !
I have a small problem, I want make a small bash script for backup qcow2 files, how can I stop from command line (no web interface) an KVM machine ?
Like vmctl stop/start, but for KVM VMs.
and you will see the options:
Best regards,
Tom
Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation
steno
New Member
For problem with Windows 2003 server, i’m not a windows guy but on local policy you must allow shutdown without logon.
- Start / Run / gpedit.msc
- Drill into Computer Configuration / Windows Settings / Security Settings / Local Policies / Security Options. Find the entry named «Shutdown: Allow system to be shut down without having to log on». Double click on it, change it to «Enabled».
- Drill into Computer Configuration / Administrative Templates / System. Find the entry named «Display Shutdown Event Tracker». Double click on it, change it to «Disabled».
Now «qm shutdown VMID» works fine.
Warning! Remeber, this «hack» enable shutdown button on login dialog .
mlanner
Active Member
. but it doesn’t seem to shutdown my VMs.
. it works just fine, though.
But I’d rather not need to kill my machines that way. Any ideas/suggestions?
Proxmox Staff Member
. but it doesn’t seem to shutdown my VMs.
. it works just fine, though.
But I’d rather not need to kill my machines that way. Any ideas/suggestions?
Best regards,
Tom
Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation
mlanner
Active Member
Proxmox Staff Member
Best regards,
Tom
Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation
mlanner
Active Member
Thanks Tom. Works beautifully.
Out of curiosity, would:
qm shutdown all
dietmar
Proxmox Staff Member
Best regards,
Dietmar
Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation
mlanner
Active Member
Thanks. I tried your suggestion and it works fine.
mlanner
Active Member
dietmar
Proxmox Staff Member
# service pve-manager stop
This stops all VMs and all Containers (we have start/stop ordering now).
Best regards,
Dietmar
Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation
Ovidiu
Active Member
I know this is a very old thread but as I can’t find a better one, here comes my question:
I’M busy setting up my backup of the proxmox machine with duply and duplicity and duply has a file called pre and one post — I planned to insert » service pve-manager stop» into pre and » service pve-manager start» into post but it only worked half-way:
I manually executed duply from the command line as root and it successfully stopped all VMs but failed to start them. When I re-connected to my screen session, the command service pve-manager start was just displayed on the display without any apparent result. Any ideas?
My next try will be to insert «/etc/init.d/pve-manager start» into post and see if that makes any difference.
# service pve-manager stop
This stops all VMs and all Containers (we have start/stop ordering now).
ProxMox не выключает ВМ
Список форумов SYSAdmins.RU -> ВИРТУАЛИЗАЦИЯ | На страницу 1, 2 След. |
Автор | |||||
---|---|---|---|---|---|
SChugun Участник форума Зарегистрирован: 07.10.2010
|
| ||||
Вернуться к началу |
| ||||
Зарегистрируйтесь и реклама исчезнет! | |||||
triangel Активный участник Зарегистрирован: 13.02.2007 |
| ||||
Вернуться к началу |
| ||||
SChugun Участник форума Зарегистрирован: 07.10.2010
|
| ||||
Вернуться к началу |
| ||||
triangel Активный участник Зарегистрирован: 13.02.2007 |
| ||||
Вернуться к началу |
| ||||
SChugun Участник форума Зарегистрирован: 07.10.2010
|
| ||||
Вернуться к началу |
| ||||
triangel Активный участник Зарегистрирован: 13.02.2007 |
| ||||
Вернуться к началу |
| ||||
SChugun Участник форума Зарегистрирован: 07.10.2010
|
| ||||
Вернуться к началу |
| ||||
triangel Активный участник Зарегистрирован: 13.02.2007 |
| ||||
Вернуться к началу |
| ||||
SChugun Участник форума Зарегистрирован: 07.10.2010
|
| ||||
Вернуться к началу |
| ||||
triangel Активный участник Зарегистрирован: 13.02.2007 |