From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E5EFC138247 for ; Sun, 15 Dec 2013 16:55:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61B37E0B88; Sun, 15 Dec 2013 16:55:35 +0000 (UTC) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 307F2E0AE1 for ; Sun, 15 Dec 2013 16:55:33 +0000 (UTC) Received: by mail-pd0-f169.google.com with SMTP id v10so4371567pde.14 for ; Sun, 15 Dec 2013 08:55:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=sSWYkDYSvXBNYYTB9VJYWdL/hfLZbWUl5EKwWnhMV9U=; b=bUBn7P5jMMRTqIEivc86fourixeZOb8J4RJc2m6XWta+O7aSoL1CAYCmeeXl3xwDiG p3Pf4zvb/jmotu76ckFL55XcYYLnx9Ub7be/uEb7VyW1o+CvuA0tMnP4ljUX1GyZhOkp k2K9VWqDuYHmVTP1gwuiexV64lA8HoPDig17gdbpRJpYGBp0rvCqqW7gSjrnvoKONuUr jQ1KkvbjFUXxAVARqtlXSwiiZOVr0Tm8WJhMUE3s/+Qus13O2ET/JQ/x5W/s3O8CNrz8 c+4yrd78HZ8QbsHxjUfn8DVQYa/ybwaQK4yUIwhQSij471ZV90GU6/V+Vg7iemWO5B7e kfEg== X-Received: by 10.66.65.134 with SMTP id x6mr15509721pas.142.1387126533041; Sun, 15 Dec 2013 08:55:33 -0800 (PST) Received: from [192.168.247.60] (76-10-185-98.dsl.teksavvy.com. [76.10.185.98]) by mx.google.com with ESMTPSA id wd6sm27451813pab.3.2013.12.15.08.55.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 15 Dec 2013 08:55:32 -0800 (PST) Message-ID: <52ADDF02.8020402@gmail.com> Date: Sun, 15 Dec 2013 08:55:30 -0800 From: Daniel Frey User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131013 Thunderbird/17.0.9 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Nut and networked UPS config References: <52AB5840.4080304@libertytrek.org> In-Reply-To: <52AB5840.4080304@libertytrek.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: d1da3927-277a-4e88-b33b-5ebdf41c2ef4 X-Archives-Hash: 0df12c2b51ac086f70a7f129c11f948c On 12/13/2013 10:56 AM, Tanstaafl wrote: > Hello all, > > I have a network accessible UPS (Powerware 9150 with the network option > installed), so am looking for tips on how to properly configure a gentoo > VM running on ESXi to initiate a safe shutdown during an extended power > outage via this network card. I have an APC UPS and am currently going through this myself. (ESXi 5.1, but I don't believe that matters.) Generally the proper way to do this is have the monitoring tools installed on a vMA VM monitoring the host. It doesn't look like Powerware has anything to work directly with vMA VM. APC does have this tool. It appears it tells the host to shut down the VMs running then the host itself. This does require that the Power Off method on VMs are set to 'Guest shutdown' and that vmware-tools is running on all virtual machines, and that the Virtual Machine startup/shutdown sequence is enabled and configured. > Looks like nut has full support for this UPS, so hopefully it won't be > too difficult... It looks like it has full USB support but experimental snmp support. It may not work at all. > The host is a Dell R515, which does have an iDRAC6 Enterprise card in > it, but I'm not sure if I can utilize the BCM to talk to guest VMs > running under ESXi? >From what I've read that card is like a remote console, so I don't think it can be used in that manner. > > Would appreciate any suggestions... > I haven't tried this myself, but if you can get the Gentoo VM to listen to the UPS via snmp you may be able to enable ssh on the host itself and send the host a halt command to shut down (there are security risks leaving ssh running on the host!) and not actually doing anything on the local VM at all, and letting the host shut the system down. This still requires the Power Off methods are set & Virtual Machine startup/shutdown sequence enabled and configured and vmware-tools are installed on all virtual machines. If you don't install vmware-tools on everything it's possible those VMs will not shut down properly and possibly get corrupted. You can test it with no VMs running at first (well, except the one monitoring the UPS, make sure you have a backup) to make sure the host shuts down, if that works, test it with a few running. Just make sure you have backups of your virtual machines! Dan