From owner-freebsd-virtualization@FreeBSD.ORG Wed Jun 26 01:38:13 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A9E0247B for ; Wed, 26 Jun 2013 01:38:13 +0000 (UTC) (envelope-from Cy.Schubert@komquats.com) Received: from smtp-out-05.shaw.ca (smtp-out-05.shaw.ca [64.59.134.13]) by mx1.freebsd.org (Postfix) with ESMTP id 7A5B61058 for ; Wed, 26 Jun 2013 01:38:13 +0000 (UTC) X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=7/EMZfWbaVtDMdTqnk9efwidrOfQb3DZMdpNhNw5Oc4= c=1 sm=1 a=8kH30pTDz5EA:10 a=QrugwKR0C_UA:10 a=wAGQQ9Az6v0A:10 a=BLceEmwcHowA:10 a=ICAaq7hcmGcA:10 a=8nJEP1OIZ-IA:10 a=IbtKDeXwb2+SRU442/pi3A==:17 a=pGLkceISAAAA:8 a=BWvPGDcYAAAA:8 a=6I5d2MoRAAAA:8 a=2bEeW3B-gFl1O6axoeYA:9 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 a=V7tsTZBp22UA:10 a=SV7veod9ZcQA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO spqr.komquats.com) ([96.50.7.119]) by smtp-out-05.shaw.ca with ESMTP; 25 Jun 2013 19:38:06 -0600 Received: from slippy.cwsent.com (slippy8 [10.2.2.6]) by spqr.komquats.com (Postfix) with ESMTP id 35E9A80; Tue, 25 Jun 2013 18:38:06 -0700 (PDT) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.14.7/8.14.7) with ESMTP id r5Q1c5Fn003324; Tue, 25 Jun 2013 18:38:05 -0700 (PDT) (envelope-from Cy.Schubert@komquats.com) Message-Id: <201306260138.r5Q1c5Fn003324@slippy.cwsent.com> X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.5 From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.komquats.com/ To: Mikhail Tsatsenko Subject: Re: VirtualBox: The value of the Base Memory field on the System page is not complete In-Reply-To: Message from Mikhail Tsatsenko of "Tue, 25 Jun 2013 20:23:08 +0400." Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Tue, 25 Jun 2013 18:38:05 -0700 Cc: kron , freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Cy Schubert List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jun 2013 01:38:13 -0000 In message , Mikhail Tsatsenko writes: > 2013/6/25 kron : > > On 2013/06/25 09:16, Mikhail Tsatsenko wrote: > >> 2013/6/25 kron : > >>> Greetings, > >>> > >>> I'm running virtualbox-ose-4.2.14 on FreeBSD 9.1-STABLE r252094M > >>> amd64. The GUI of VirtualBox cannot create/update virtual box > >>> definitions (the *.vbox) files. The scrollbar and the form field > >>> for =22Base Memory=22 are broken and the following error message > >>> is displayed: > >>> > >>> =22The value of the Base Memory field on the System page is not > >>> complete.=22 > >>> > >>> I guess it comes from the base memory upper bound preset to zero > >>> but I have no clue what's the source for the zero value. > >>> > >>> The problem is just in the GUI: > >>> - I can create or update VMs using the CLI > >>> - the VMs created in older VirtualBox versions run fine > >>> > >>> I anyone facing the same problem? > >> I confirm the problem. Apparently this is a regression in the latest= versi > on. > >> > >> Currently I'm looking at full diff between VirtualBox 4.2.12 and > >> 4.2.14, but still can't find a change which could cause the issue. > > > > At a first glance, RTSystemQueryAvailableRam? I see some > > new occurrences in the diff. Unfortunately, it's one of > > the OS dependent functions. However, I don't speak C++, > > so I'm just guessing... > Thanks for suggestion. > Perhaps you are right, furthermore I can not see FreeBSD version of > that function, so currently we have at least two different approaches: > - Rollback to an old version of system memory calculation method > (which was a dirty hack,according to code comments) > - Or just implement such function and send it upstream. > The second way seems to me more preferable. It takes me a few days, > until that you have to use cli tools or previous VirtualBox port > revision from svn. Here's a partial patch. The patch relies on devel/sysinfo. All you need t= o=20 do is find a way to link libsysinfo.so and libkvm.so in. I simply hacked = it=20 for now just to prove it can be done. A native solution would be better=20 though. --- src/VBox/Runtime/Makefile.kmk.orig 2013-06-21 05:27:18.000000000 -070= 0 +++ src/VBox/Runtime/Makefile.kmk 2013-06-25 13:52:25.971618756 -0700 =40=40 -73,7 +73,7 =40=40 include =24(PATH_SUB_CURRENT)/tools/Makefile.kmk =20 BLDPROGS +=3D uniread - LIBRARIES +=3D RuntimeR3 RuntimeBldProg RuntimeR0 RuntimeEFCPP=20 RuntimeR3NoCRTGCC + LIBRARIES +=3D RuntimeR3 RuntimeBldProg RuntimeR0 RuntimeEFCPP=20 RuntimeR3NoCRTGCC -lsysinfo -lkvm LIBRARIES.solaris +=3D RuntimeR0Stub LIBRARIES.win +=3D RuntimeR0Stub ifdef VBOX_WITH_RAW_MODE =40=40 -837,6 +837,7 =40=40 generic/RTProcDaemonize-generic.cpp =5C generic/RTProcIsRunningByName-generic.cpp =5C generic/RTThreadGetNativeState-generic.cpp =5C + r3/linux/systemmem-linux.cpp =5C r3/freebsd/mp-freebsd.cpp =5C r3/freebsd/rtProcInitExePath-freebsd.cpp =5C r3/posix/RTFileQueryFsSizes-posix.cpp =5C =40=40 -844,7 +845,6 =40=40 r3/posix/RTMemProtect-posix.cpp =5C r3/posix/RTPathUserHome-posix.cpp =5C r3/posix/RTSystemQueryOSInfo-posix.cpp =5C - r3/posix/RTSystemQueryTotalRam-posix.cpp =5C r3/posix/RTTimeNow-posix.cpp =5C r3/posix/RTTimeSet-posix.cpp =5C r3/posix/dir-posix.cpp =5C --=20 Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org