Disable Logfiles

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Roman78
Posts: 5
Joined: 18. Feb 2015, 15:09

Disable Logfiles

Post by Roman78 »

Hello to all,

I use virtualbox a lot for experimenting whit other operating systems, now I discovered some 4 gig of logfiles. I don't need logfiles, so i deleted those. But how can i disable the logfiles.

Well.. i googled.. and found this:
The correct way to completely disable logging is to set environment variables. You might want to set these variables in the global user variables:

VBOX_RELEASE_LOG_DEST=nofile
VBOXSVC_RELEASE_LOG_DEST=nofile
VBOX_GUI_SELECTORWINDOW_RELEASE_LOG_DEST=nofile
Source: can't be posted, have to wait until tomorrow (new user policy).

Now my question, were can I find those Global User Variables?

I found XML files in C:\Users\%username%\.VirtualBox\ and C:\Users\%username%\VirtualBox VMs, the last one are all the machines, so it must be in the first one (or somewhere else?)...
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Disable Logfiles

Post by Martin »

Global environment variables in Windows are defined in the system settings.
Roman78
Posts: 5
Joined: 18. Feb 2015, 15:09

Re: Disable Logfiles

Post by Roman78 »

Maybe I'm to dumb for this, but were can I find those?
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Disable Logfiles

Post by Martin »

Roman78
Posts: 5
Joined: 18. Feb 2015, 15:09

Re: Disable Logfiles

Post by Roman78 »

Aha, in the system variables... and I was looking at VBox variables.

Thanks...

Let see if it's working...
Roman78
Posts: 5
Joined: 18. Feb 2015, 15:09

Re: Disable Logfiles

Post by Roman78 »

I can report: It is not working.

So.. how do I disable those Log files?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Disable Logfiles

Post by Perryg »

Can't be sure because you have not posted the link where you got this information but the commands you listed are usually ones that are passed while compiling. If you self compile put them in the LocalConfig.kmk file and rebuild.

You might want to read this section of the users guide about loghistorycount
http://www.virtualbox.org/manual/ch08.h ... etproperty
Setting at zero should do what you want, at least for the guests log file, but I would suggest you setting it to one in case you ever need help.
Roman78
Posts: 5
Joined: 18. Feb 2015, 15:09

Re: Disable Logfiles

Post by Roman78 »

Well I could not place a Link because it was my first post on the first day. But now I can. I found the information here: https://www.virtualbox.org/ticket/11988

I'll try your link.

/edit: I did not compiled it myself, just downloaded the Windows version.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Disable Logfiles

Post by noteirak »

frank confirmed these are environment variables
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply