Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2012 18:21:46 +0200
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        freebsd-emulation@freebsd.org
Subject:   Unstoppable VM in VirtualBox-4.1.16
Message-ID:  <4FD61B1A.9030803@quip.cz>

next in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x29ee3ff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AESNI>
   AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
   AMD Features2=0x1<LAHF>
   TSC: P-state invariant
real memory  = 25769803776 (24576 MB)
avail memory = 24719462400 (23574 MB)
ACPI APIC Table: <Cisco0 CiscoUCS>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FD61B1A.9030803>