From owner-freebsd-questions@FreeBSD.ORG Tue Apr 30 04:25:45 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DD88C9CE for ; Tue, 30 Apr 2013 04:25:45 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from webmail.dweimer.net (24-240-198-187.static.stls.mo.charter.com [24.240.198.187]) by mx1.freebsd.org (Postfix) with ESMTP id AC8A5191E for ; Tue, 30 Apr 2013 04:25:45 +0000 (UTC) Received: from www.dweimer.net (webmail.dweimer.local [192.168.5.2]) by webmail.dweimer.net (8.14.5/8.14.5) with ESMTP id r3U4HE2n003529 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 29 Apr 2013 23:17:14 -0500 (CDT) (envelope-from dweimer@dweimer.net) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 29 Apr 2013 23:17:14 -0500 From: dweimer To: FreeBSD Questions Subject: Virtual Box service vboxheadless shutdown problems. Organization: dweimer.net Mail-Reply-To: dweimer@dweimer.net Message-ID: <09a2b5de4a38a3d034ce34e61b3d3113@dweimer.net> X-Sender: dweimer@dweimer.net User-Agent: Roundcube Webmail/0.8.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: dweimer@dweimer.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Apr 2013 04:25:45 -0000 I have recently setup a FreeBSD server to run virtual box, and a couple of FreeBSD jails. Performance is running great, but upon getting my UPS setup with NUT, and running some reboot tests to verify that everything is shutting down and starting up properly I ran into an issue. The /usr/local/etc/rc.d/vboxheadless script is not shutting down the VM properly, which in turn is causing other services to not stop properly. I have set the following options in my rc.conf file vboxnet_enable="YES" vboxheadless_enable="YES" vboxheadless_machines="HomeServer" vboxheadless_user="dweimer" vboxheadless_stop="acpipowerbutton" vboxheadless_delay="0" issuing service vboxheadless stop, does correctly shutdown the VM cleanly, and of course service vboxheadless start starts everything OK. But when running a shutdown command the shutdown process hangs, until it gets a 90 sec watchdog timeout on the vboxheadless stop command. The VNC console to the VM, never shows any attempt for the VM to shutdown. The windows VM, also doesn't show any events in the log as if it tried to shutdown. Has anyone else ran into this? Or have any idea what to check to find out more information as to what is happening to stop the shutdown process from running correctly? -- Thanks, Dean E. Weimer http://www.dweimer.net/