
I'm a bit lost and don't know where to start, especially regarding communication between the VM host and the virtual server.
#CYBERPOWER POWERPANEL PERSONAL RUN BATCH FILE PC#
This part is figured out: if the battery is fully depleted the host machine's BIOS handles it, if it's not I have another PC that isn't on battery power that wakes up automatically and can send a wake-on-LAN packet. The server needs to come back online as soon as power is restored after a shutdown. Ideally if power goes out again before the battery is at 100% charge, a faster version of the script shuts down the server within 2 minutes. If power comes back before shutdown after 10 minutes, the script is aborted. When the process is killed, the virtual server shuts down, then the physical host shuts down.

When power goes out, a bash script is triggered on the virtual server to notify admins, show players a warning after 5 minutes, then PaperMC shuts down after 10 minutes. Host machine, router and modem on battery backup outlets. PaperMC server runs in a VM, headless Debian 10 again. Physical machine runs headless Debian 10 and is a QEMU/KVM virtual machine host.

UPS: Cyberpower CP1000PFCLCD, can power the server for 20 minutes at higher than typical loads. Due to frequent power outages (thanks Hydro!) causing hard shutdowns and problems in game, I decided to invest in a UPS with enough battery capacity to allow for a graceful shutdown when power goes out. I'm self-hosting a PaperMC server for my extended group of friends. Join us on Discord for in-depth discussions! Users may make one promotional self-post per month about their own content.ĭirect posts to one of the subreddit megathreads when appropriate. Self-promoted links to revenue generating content are not allowed. Using your server as an example is allowed. Friendly suggestions and constructive criticism are fine. Submit content that's relevant for Minecraft administrators and developers. Hello and welcome to /r/admincraft! This subreddit is for Minecraft administrators and developers who are serious about cultivating a quality server with a quality community. CyberPower reserves the right to cancel this Agreement or the Program, or modify price and co-op fund schedules at any time, and for any reason, on prior written notification to Participant.Welcome to /r/admincraft! Read this guide before posting.

This Agreement is valid for one (1) year, and may be automatically renewed by CyberPower.

To join and use the Program, every Participant must agree to the following: (CyberPower) provides opportunities to each participating value added reseller (Participant). The Channel Partner Alliance program (Program) from Cyber Power Systems (USA), Inc. Acceptance of Terms PLEASE READ THE FOLLOWING TERMS AND CONDITIONS CAREFULLY
