From owner-freebsd-emulation@freebsd.org Sun Dec 10 23:27:32 2017 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 39E0EEA12DF for ; Sun, 10 Dec 2017 23:27:32 +0000 (UTC) (envelope-from dereks@lifeofadishwasher.com) Received: from mail-qt0-x235.google.com (mail-qt0-x235.google.com [IPv6:2607:f8b0:400d:c0d::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EF30B68529 for ; Sun, 10 Dec 2017 23:27:31 +0000 (UTC) (envelope-from dereks@lifeofadishwasher.com) Received: by mail-qt0-x235.google.com with SMTP id r39so34070382qtr.13 for ; Sun, 10 Dec 2017 15:27:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifeofadishwasher.com; s=google; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=aJQQMMcuKsi/tPfRpjtEEt34HKo3zb8D6quhyviRqzE=; b=PhxLXKSORDQNdtutbnaOsJ8LqEQre2NXUjv5xRfR3cjLirSZGCvi66cXeLz1PUOqZY CSRR2p8qTG8rwlVwC2U+9WnnLEPVmwW7S5+8Y1rkXaqXFg8jSYGdVr66GCO2eNfJwCXl hJxcFTCHRslPSxA0A4nsMBbpIJnuXKbKDgL7Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=aJQQMMcuKsi/tPfRpjtEEt34HKo3zb8D6quhyviRqzE=; b=qNkAQ1j8paUv8MkfhLeh7QD6QVgtKqC92pxdPpxlP1K5wqhifNjE+nH6iZQHq86gO1 gDB3xOZIR/GLtU3EqFPOHQijeXsH3oIgTnIwIYS5+IMmv6mZRGhOy03oZKI/crTIRESB jrgjDLEJilkf8LOayYQdztm738xOVeDf5pfxMjSB34OVbM9QF1MqRPLysUJzYjq2w+VS 0aBwHBkeLOPO5X4n2PDbxiUk3DIEzObknTcZVkzaclgspWC2jdFKfsdGUYFpT5KZFZk+ bW3TSeyVWd3Pq07I7UchwyNku3c9vDEIFRFun8685GfHW4zXJ6af4P3OR5K0EwJsTR84 C0iQ== X-Gm-Message-State: AKGB3mL9YUvHeUsw5fxzVjh4zaKP77Akb3zOREfcfxf1YAMTYirTrcWr xZsP0OXdtZDVgKvGoqOqGAoLY0lG X-Google-Smtp-Source: AGs4zMb0h/3toh2sOWUXOxbIyhxGaVWnb0zGpn19lV1TkYOX6OQIhn/KwlxL0UaMRUSfiFozDsafDQ== X-Received: by 10.200.15.164 with SMTP id b33mr23142938qtk.14.1512948450828; Sun, 10 Dec 2017 15:27:30 -0800 (PST) Received: from lifeofadishwasher.com ([2601:547:900:f500:4637:e6ff:fead:11c4]) by smtp.gmail.com with ESMTPSA id m30sm3365080qtb.29.2017.12.10.15.27.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Dec 2017 15:27:30 -0800 (PST) Received: by lifeofadishwasher.com (sSMTP sendmail emulation); Sun, 10 Dec 2017 18:27:28 -0500 Date: Sun, 10 Dec 2017 18:27:28 -0500 From: Derek Schrock To: freebsd-emulation@freebsd.org Subject: Re: VirtualBox VM hangs on shutdown / stopping Message-ID: <20171210232728.GA37468@ircbsd.lifeofadishwasher.com> Mail-Followup-To: freebsd-emulation@freebsd.org References: <5A2C6895.8030302@quip.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5A2C6895.8030302@quip.cz> User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Dec 2017 23:27:32 -0000 On Sat, Dec 09, 2017 at 05:49:57PM EST, Miroslav Lachman wrote: > I did a fresh installation on FreeBSD 10.4-RELEASE-p5 amd64 GENERIC. > > Whenever I need to stop the VM it hangs indefinitely. The OS in VM is > also FreeBSD 10.4-p5 amd64. Virtual machine runs fine, but if is use > shutdown -r now, shutdown -p now (in VM) or use ACPI PowerOff in > phpVirtualBox or VBoxManage it always hangs after OS in VM is completely > down (buffers synced etc.) > > Packages used: > virtualbox-ose-kmod-5.2.0_1 > virtualbox-ose-nox11-5.2.0_1 > > Built with Options : > PYTHON : off > R0LOGGING : off > UDPTUNNEL : on > VDE : on > VNC : on > WEBSERVICE : on > > > The process is still running: > > # ps auxww | grep FBSD_104_tpl > vboxusers 1268 0.0 5.3 1062960 891668 - I 11:30PM 0:32.43 > /usr/local/lib/virtualbox/VBoxHeadless --comment FBSD_104_tpl --startvm > ba50a283-41fa-48ae-8ff2-87591c50bfed --vrde config > > # VBoxManage list vms > "FBSD_104_tpl" {ba50a283-41fa-48ae-8ff2-87591c50bfed} > > but no running VMs listed by VBoxManage > > # VBoxManage list runningvms > > # VBoxManage controlvm "FBSD_104_tpl" poweroff > VBoxManage: error: The virtual machine is being powered down > VBoxManage: error: Details: code VBOX_E_INVALID_VM_STATE (0x80bb0002), > component ConsoleWrap, interface IConsole, callee nsISupports > VBoxManage: error: Context: "PowerDown(progress.asOutParam())" at line > 578 of file VBoxManageControlVM.cpp > > The above is the second try to stop VM after few minutes of waiting on > "Stopping" in phpVirtualBox. > > It must be killed by "kill PID", then I can run the VM again. > (phpVirtualBox says "Aborted") > > > Can anybody help me to debug and fix this issues? > > I never see this problem on different machines with slightly older > version of VirtualBox. We are using the same setup for years. > > Miroslav Lachman > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org" What are the chances that you're VNC'ed to the VM during shutdown? I've yet to gather all the parts but there is a bug in libvncserver/vbox that fails to allow a VM to quit if the VNC session isn't closed before the the VM is shutdown.