From owner-freebsd-emulation@FreeBSD.ORG Mon Jun 11 16:21:55 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9E178106564A for ; Mon, 11 Jun 2012 16:21:55 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id E69608FC16 for ; Mon, 11 Jun 2012 16:21:54 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 0AB882842B for ; Mon, 11 Jun 2012 18:21:48 +0200 (CEST) Received: from [192.168.1.2] (static-84-242-120-26.net.upcbroadband.cz [84.242.120.26]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id A92D028426 for ; Mon, 11 Jun 2012 18:21:46 +0200 (CEST) Message-ID: <4FD61B1A.9030803@quip.cz> Date: Mon, 11 Jun 2012 18:21:46 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Subject: Unstoppable VM in VirtualBox-4.1.16 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 11 Jun 2012 16:21:55 -0000 I have VirtualBox running on FreeBSD 8.3-RELEASE amd64 GENERIC. It runs fine for a few days with 7 headless VMs running (FreeBSD 9.0 guests). Each with about 2GB RAM + 4 CPUs and 10GB disk. This is a testing installation, so I run make buildworld in an endless loop in each VM. Today I logged in to 2 VMs by ssh and issued `shutdown -p now`. The first VM stops and now is in Powered Off state, but the second is hanging in "Stopping" (according to phpVirtualBox) I can connect to this VM by VNC and there I see normal shutdown sequence ending with: All buffers synced. Uptime: 2d18h59m8s acpi0: Powering system off I tried # VBoxManage showvminfo FreeBSD_two --details` (doesn't work - hangs, I must use Ctrl+C) service vboxheadless status hangs too. # service vboxheadless status Machine Status ------------------------- ------------ FreeBSD_one Powered Off (there should be list of other 6 VMs, but it hangs) # VBoxManage controlvm FreeBSD_two poweroff (doesn't work - hangs, I must use Ctrl+C) # VBoxManage discardstate FreeBSD_two VBoxManage: error: The machine 'FreeBSD_two' is already locked for a session (or being unlocked) VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Machine, interface IMachine, callee nsISupports Context: "LockMachine(a->session, LockType_Write)" at line 619 of file VBoxManageMisc.cpp # ps auxwww root 27781 0.0 8.6 2235960 2158148 ?? Ts Fri09PM 8808:40.49 /usr/local/bin/VBoxHeadless --startvm FreeBSD_two -v off -n -m 5902 # kill -9 27781 (doesn't work - process is still alive) Is it know problem with VirtualBox on FreeBSD 8.3? Is there some way I can help to debug it? Details about system and packages: # uname -srmi FreeBSD 8.3-RELEASE amd64 GENERIC # pkg_info -r virtualbox-ose-4.1.16_1 Information for virtualbox-ose-4.1.16_1: Depends on: Dependency: cdrtools-3.00_2 Dependency: vde2-2.3.2 Dependency: libvncserver-0.9.9_1 Dependency: python27-2.7.3_2 Dependency: png-1.5.10 Dependency: curl-7.24.0 Dependency: virtualbox-ose-kmod-4.1.16 Dependency: py27-setuptools-0.6c11_3 Dependency: pkg-config-0.25_1 Dependency: libxslt-1.1.26_3 Dependency: glib-2.28.8_4 Dependency: gio-fam-backend-2.28.8_1 Dependency: libIDL-0.8.14_1 The machine is Cisco UCS C200 M2 with 1x Xeon E5649 + 24GB RAM CPU: Intel(R) Xeon(R) CPU E5649 @ 2.53GHz (2533.44-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x206c2 Family = 6 Model = 2c Stepping = 2 Features=0xbfebfbff Features2=0x29ee3ff AMD Features=0x2c100800 AMD Features2=0x1 TSC: P-state invariant real memory = 25769803776 (24576 MB) avail memory = 24719462400 (23574 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 12 CPUs FreeBSD/SMP: 1 package(s) x 6 core(s) x 2 SMT threads cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 cpu4 (AP): APIC ID: 4 cpu5 (AP): APIC ID: 5 cpu6 (AP): APIC ID: 16 cpu7 (AP): APIC ID: 17 cpu8 (AP): APIC ID: 18 cpu9 (AP): APIC ID: 19 cpu10 (AP): APIC ID: 20 cpu11 (AP): APIC ID: 21 last pid: 11425; load averages: 0.00, 0.01, 0.04 up 2+23:42:38 18:17:23 83 processes: 1 running, 80 sleeping, 1 stopped, 1 zombie CPU: 0.2% user, 0.0% nice, 0.4% system, 0.0% interrupt, 99.4% idle Mem: 288M Active, 2115M Inact, 16G Wired, 300M Cache, 2459M Buf, 4293M Free Swap: 12G Total, 36K Used, 12G Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 27879 root 21 44 0 2188M 2111M IPRT S 0 208:03 3.12% /usr/local/bin/VBoxHeadless --startvm SmartOs_live -v off - 27821 root 21 44 0 4248M 4177M ucond 3 144.5H 0.68% /usr/local/bin/VBoxHeadless --startvm FreeBSD_four -v off - 27861 root 23 44 0 2184M 2108M ucond 7 125:20 0.59% /usr/local/bin/VBoxHeadless --startvm FreeBSD_six -v off -n 27801 root 21 44 0 2183M 2107M ucond 7 144.7H 0.29% /usr/local/bin/VBoxHeadless --startvm FreeBSD_three -v off 27841 root 19 44 0 2183M 2108M ucond 6 90.5H 0.10% /usr/local/bin/VBoxHeadless --startvm FreeBSD_five -v off - 27781 root 2 44 0 2184M 2108M STOP 1 146.8H 0.00% /usr/local/bin/VBoxHeadless --startvm FreeBSD_two -v off -n 1280 root 14 44 0 50832K 12076K ucond 5 7:07 0.00% /usr/local/lib/virtualbox/VBoxSVC --auto-shutdown 1277 root 1 44 0 29724K 5640K select 8 3:22 0.00% /usr/local/lib/virtualbox/VBoxXPCOMIPCD 1229 root 1 44 0 11808K 2092K select 11 0:06 0.00% /usr/sbin/ntpd -g -c /etc/ntp.conf -p /var/run/ntpd.pid -f 7657 root 7 44 0 55828K 13256K ucond 2 0:02 0.00% /usr/local/bin/vboxwebsrv The top output above is after I stopped `make buildworld` in each jail, then stop VM FreeBSD_one, then FreeBSD_two. Let me know if I should post some more details. Miroslav Lachman