vampyre_masquerade

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by vampyre_masquerade

  1. As far as i can tell there are 2 services that handle the button calls, logind and acpid, with the changes made to the logind config this should disable logind from handling the calls, take note though that the logind config file will be over written with each reboot so a script needs to be used to rewrite the chnages on each boot, this is a simple user script that is run on array start. It just copies a prewritten file from the usb to the system on array start. cp /boot/config/acpi_handler.sh /etc/acpi/acpi_handler.sh && chmod 755 /etc/acpi/acpi_handler.sh && /etc/rc.d/rc.acpid restart && cp /boot/config/logind.conf /etc/elogind/logind.conf && chmod 644 /etc/elogind/logind.conf && /etc/rc.d/rc.elogind restart (its all one line), also when you make changes to acpid or logind the service needs to be restarted, maybe you missed that step. Lastly im assuming the acpi_handler needs to have complete information, so the lines about the power button need to stay, but have nothing to run, maybe it defaults to bios if it cant see anything to do with the call. Tbh thats as far as my knowledge goes, youll have to practice some google fu like i did. I did a quick search and there are lots of discussions on disabling the power button.
  2. $%^&$%^&*%&$%^&!!! After all this time i finally figured it out!!!!!! For some reason after 6.10 both acpid and logind were activly fighting to handle the button calls, so both responded, acpid was working correctly and start my VM but then logind would chime in and shutdown the system. I modified logind.conf to the below HandlePowerKey=ignore HandleSuspendKey=ignore HandleSuspendKey=ignore HandleHibernateKey=ignore Kept acpi_handler.sh the same Then modified my array start up script to edit the logind.conf on startup just like the acpi_handler.sh.
  3. As far as i can tell this has never been looked at by the developers as an issue, is it because this is now a defunct feature, or is it been addressed in 6.11.0? Either way knowledge is key.
  4. Is this going to be confirmed as a bug or not, is this a feature that no longer exists? its been almost a month.
  5. WOW this is reallly starting to piss me off now, even if I fully nuke the scripts and make it as simple as possible it still ignores the commands. First I made a dead simple event handler, /etc/acpi/events/power event=button/power action=/etc/acpi/VM.sh Copied the VM handling script into VM.sh and made sure it was executable. #! /bin/bash # if domain is running, shut down if virsh list | grep "Windows 11 .*running" ; then virsh shutdown "Windows 11" # resume domain if it's paused elif virsh list | grep "Windows 11 .*paused" ; then virsh resume "Windows 10" elif virsh list | grep "Windows 11 .*pmsuspended" ; then virsh dompmwakeup "Windows 11" # otherwise start domain else virsh start "Windows 11" fi Reload acpid, press the power button and BAM FFS it still shuts down the system. I'm convinced this cant just be me now, it has to be a bug.
  6. Hi Thanks for the idea, gave it a try and unfortunately nothing changed from the original issue, still ignores the acpi and goes straight to shutdown.
  7. Currently i have a Nginx Proxy Manager docker sitting on its own reverseproxy docker network, this does a port translate from 18443 to 443, within this network i have multiple dockers communicating through DNS on its own internal virtual switch. Now to get to NPM i have my router taking the DNS queries and sending them to a virtual IP on the router to port translate to 18443. What id like to achieve is moving the reverseproxy docker network away from the host network bridge 192.168.1.10 and give it a virtual bridge ip of say 192.168.1.15, this way i can just send the DNS resolutions straight to NPM with no forwards or port translations, NPM could operate on 443 and unraid could use 443 for webui. I also like the idea of having the images handled by NPM on its own network so i cant just give NPM the ip for this would remove the reverseproxy docker network. How i currently have it works fine, its just seems redundant and messy doing it this way.
  8. After having some free time and no replies I decided to look into this more my self. After running acpi_listen and pressing the power button I was presented with 2 events. button/power LNXPWRBN:00 00000080 00000001 button/power PBTN 00000080 00000000 Not knowing why there was two I decided to modify acpi_handler.sh to reflect the two options. (I do not understand this script at all, had to piece one together from other examples) #!/bin/sh # Default acpi script that takes an entry for all actions IFS=${IFS}/ set $@ case "$1" in button/power) case "$2" in PBTN) . /boot/config/plugins/user.scripts/scripts/VMStartStop/script ;; *) logger "ACPI action $2 is not defined" ;; esac ;; button/power) case "$2" in LNXPWRBN:00) . /boot/config/plugins/user.scripts/scripts/VMStartStop/script ;; *) logger "ACPI action $2 is not defined" ;; esac ;; *) # logger "ACPI group $1 / action $2 is not defined" ;; esac So a bit more information but still no further ahead, still shuts down the system like there was no modification at all.
  9. Update: No change in the latest 6.10.1, system is still ignoring acpi_handler.sh.
  10. Hi Recently upgraded from 6.9.2 up to 6.10 stable, the process was quite smooth with only some small hiccups updating my Windows 11 to use the new TMP method. There is how ever a change in the system through the upgrade that I am unable to rectify. Previously on unraid boot I had a script that modified the acpi_handler.sh to incorporate a script when the power button was pressed, this would determine the state of my Windows 11 VM and Start/Stop the VM if needed. Now it seems to be both performing the VM start as well as the default behaviour of system shutdown i.e. when the power button is pressed the VM will load for about 1 minute before the system force closes it and the array stops for a shutdown. acpi_handler.sh update script run at array first start. (I have also tried just replacing the entire file instead of the line, no difference) #!/bin/bash sed -i 's|power) /sbin/init 0|power) . /boot/config/plugins/user.scripts/scripts/VMStartStop/script|g' /etc/acpi/acpi_handler.sh modified acpi_handler.sh file after array start. (so we know its been modified correctly) #!/bin/sh # Default acpi script that takes an entry for all actions IFS=${IFS}/ set $@ case "$1" in button) case "$2" in power) . /boot/config/plugins/user.scripts/scripts/VMStartStop/script ;; *) logger "ACPI action $2 is not defined" ;; esac ;; *) # logger "ACPI group $1 / action $2 is not defined" ;; esac VM control script that is called from acpi_handler.sh. #! /bin/bash # if domain is running, shut down if virsh list | grep "Windows 11 .*running" ; then virsh shutdown "Windows 11" # resume domain if it's paused elif virsh list | grep "Windows 11 .*paused" ; then virsh resume "Windows 10" elif virsh list | grep "Windows 11 .*pmsuspended" ; then virsh dompmwakeup "Windows 11" # otherwise start domain else virsh start "Windows 11" fi With nothing changed from the original running scripts except updating the 6.10 I can only assume a critical change has occurred in the new kernel or system version. Please don't recommend I use WOL as I already do, or a separate button or device. Been able to just press the power button and treat my server like a desktop is a very convenient feature for all that use the desktop. Troy
  11. Hi So I updated from 6.7.2 to rc3, most things worked quite fine except when accessing the GUI from a FQDN (via reverse proxy haproxy in pfSense), this would work fine once then fail every other time after closing the browser tab, accessing from IP works everytime. I have reverted back to 6.7.2 now because of the second issue, accessing SMB shares through Android Solid Explorer totally broke, I tried recreating the settings, clearing cache, clearing data, restarting, the lot, would just state network error each time. Now that I'm back on 6.7.2 it's still broken? Anyone have an idea? Edit: looking into it more I can access SMB thought smbv1 now but was previously setup to work with smbv2. Edit 2: Dont worry fixed it, i screwed up when i was playing with the ident.cfg trying to give the server a domain name. unraid-diagnostics-20191018-2028.zip
  12. Hi Can anyone tell me if any of the Binhex VPN dockers can be used as an internet gateway instead of a proxy? Basically i'm trying to replicate the VPN gateway my router creates to ExpressVPN onto a more powerful machine.
  13. Hey After reading 35 page and eyes going a bit funny now i'm still lost as to what OpenVPN Client even does. Installed fine, took the ExpressVPN OVPN configs fine and started the VPN creating a TUN5 with a 10.x.x.x IP. Id say 90% of the posts in this thread are about the server plugin not the client plugin. what i wanted to do was replace the VPN connection my router has to ExpressVPN and set certain devices in my network (through DHCP) to point to the Unraid OpenVPN Client as the gateway to pipe their traffic through the VPN. So please correct me if i'm incorrect. OpenVPN Client Plugin for Unraid can not be used as a gateway for LAN traffic. I'm guessing it can only be used for Docker traffic and maybe Unraid traffic?
  14. Son of a %^$#$@%$#%^&^ Now it decides to do as its meant to do.
  15. Hey All So i normal trawl google and research to find my answers but this one is making me more bald. I have been using Unraid for many years but only as a server without VM's (lotsa Dockers though), in that respect i can work my way around it fairly well. What im trying to do.... VM of OpenWRT which has a br0 Nic as LAN, a USB Nic as WAN connected to VDSL Modem (DHCP) and a OpenVPN client as a second WAN So Unraid works great and have it configured/working, i also have the OpenWRT installed, configured and working (DHCP, DNSCrypt, VPN, Policy Routing of IP's to different WANs). The issue starts if ever i need to do an unattended restart of Unraid, if i restart the Unraid server it all loads as its meant to but for some reason Unraid keeps a hold of the USB Nic and wont pass it through to the VM on first boot, if after it all settles i then stop the VM from the GUI and restart it then Unraid lets go of the Nic and OpenWRT loads as intended. Naturally if only Unraid loads and OpenWRT fails then i cant connect to it if im not there. Now then to mention some stuff that i know a few are so itching to tell me to do. This is all been run on a Asrock Desk Mini, its plenty powerful enough to do everything i want but only has 1 Nic and 2 Drives (oh and a nvme), so no i cant add a Pcie Nic, also it only has one USB controller so i cant assign it to the VM, im not looking to upgrade to anything bigger this size is perfect. No i dont have a parity drive but i back up to an external USB drive every few days. OpenWRT is great for simplicity sake and i have tried all the others like pfSense, untangled.......... aka OpenWRT is perfect for my needs and i have it working perfectly. Yes i already have a Netgear Nighthawk router (which is now in access point mode) and it would defeat the purpose of the VPN to use it. Basically i need to find a way to force Unraid not to take a hold of the USB Nic when it boots (sounds so simple but F@#K its not). Sorry if i sound narky ive just read far to many posts where someone will always recommends to do exactly the opposite of what the OP is looking for.