Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jun 2013 18:38:05 -0700
From:      Cy Schubert <Cy.Schubert@komquats.com>
To:        Mikhail Tsatsenko <m.tsatsenko@gmail.com>
Cc:        kron <kron24@gmail.com>, freebsd-virtualization@freebsd.org
Subject:   Re: VirtualBox: The value of the Base Memory field on the System  page is not complete
Message-ID:  <201306260138.r5Q1c5Fn003324@slippy.cwsent.com>
In-Reply-To: Message from Mikhail Tsatsenko <m.tsatsenko@gmail.com> of "Tue, 25 Jun 2013 20:23:08 %2B0400." <CAGK=9AGuTQC%2BCdxjym5JSkYEJ19KpetxJgJ=4pHmYyb5ggf6Eg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <CAGK=3D9AGuTQC+Cdxjym5JSkYEJ19KpetxJgJ=3D4pHmYyb5ggf6Eg=40mai=
l.gmail.c
om>
, Mikhail Tsatsenko writes:
> 2013/6/25 kron <kron24=40gmail.com>:
> > On 2013/06/25 09:16, Mikhail Tsatsenko wrote:
> >> 2013/6/25 kron <kron24=40gmail.com>:
> >>> 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 <Cy.Schubert=40komquats.com>
FreeBSD UNIX:  <cy=40FreeBSD.org>   Web:  http://www.FreeBSD.org







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