4 Replies Latest reply on Oct 1, 2020 2:14 AM by jen2

    How to disable all logging in the new version 16

    jen2 Lurker

      I am new here sorry if this has been asked before, I couldn't find results,

       

      The old method described in https://kb.vmware.com/s/article/1028 is not working any more in the new version 16

       

      Now a new excusable will be execute the command C:\Program Files (x86)\VMware\VMware Player\x64\mksSandbox.exe" --logFile x:\xxx\mksSandbox.log to load the VM

       

      And if Is there any way to disable the UI logs as well please,

       

      I hope some one can help,

       

      thanks

        • 1. Re: How to disable all logging in the new version 16
          jen2 Lurker

          I hope that someone also help me how to disable logging in the guest as well for the vmware tools

           

          in this link https://kb.vmware.com/s/article/1007873 it is stated that writing log = false will not disable logs,

           

          I have no such file in windows so I created an empty file in I:\ProgramData\VMware\VMware Tools as tools.conf, and used tools.conf.example as a guide, and the logs are still on, I tried adding log = false and didn't work, I tried to change the log file to memory didn't work

           

          I Linux, there is a file in /etc/vmware-tools and contain the log = true but marked as comment with # so I removed # and changed to false didn't work neither

           

          I hope someone help me both in windows and Linux,

           

          thanks,

          • 2. Re: How to disable all logging in the new version 16
            jen2 Lurker

            I found  a way to minimize the logging for the VMtools in the guest to one line, and nothing will be written after this line

             

            Adding log = false will do nothing, but I kept it anyway, but changing the level to none will work, just creat tools.conf if not exist, or edit it to be like the following

             

            TH first 3 lines are enough, but I added all of the logs just in case

             

             

            [logging]
            log = false
            vmtoolsd.level = none
            vmsvc.level = none
            vmusr.level = none
            vmresset.level = none
            toolboxcmd.level = none
            hgfsServer.level = none
            vmbackup.level = none
            vmvss.level = none

             

            I hope some one can help me finding a way to disable logs for the UI and unity helper of course the new log file in the version mksSandbox.log

            • 3. Re: How to disable all logging in the new version 16
              kasper@wharton.upenn.edu Enthusiast

              My understanding is that you can modify the file 'tools.conf' inside the guest

              to control debugging information that is written to a file on the host.   I am hoping

              this is not true as it would present a security issue.   I am hoping that any

              debugging / logging information is strictly controlled on the host and NOT

              the guest.

               

              Ideally the VMX file should have line options to manage this.

              • 4. Re: How to disable all logging in the new version 16
                jen2 Lurker

                Yes, it is not true!

                 

                Editing 'tools.conf' will only affect the guest, the log files are stored in temp folder in windows, and var/log in linux, it is well explained here   https://kb.vmware.com/s/article/1007873

                 

                But these logs are the VMware tools only