Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    VMware Tools Installation Question

    Scheduled Pinned Locked Moved 1.2.1-RC Snapshot Feedback and Problems-RETIRED
    11 Posts 3 Posters 6.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sullrich
      last edited by

      look at the /usr/local/etc/rc.d/ script

      1 Reply Last reply Reply Quote 0
      • M
        MattMeyer
        last edited by

        Thanks very much sullrich.  I see that the vmware-kmod.sh script is different than the one supplied in the package.  I understand now how the kernel modules are loaded at boot time now.

        Appreciate the insight.  Thanks again.

        1 Reply Last reply Reply Quote 0
        • C
          cmb
          last edited by

          The scripts are modified as we don't use rc.conf.

          On a stock FreeBSD, all your changes go in /etc/rc.conf and that file contains overrides from the /etc/defaults/rc.conf. You should never edit /etc/defaults/rc.conf on a stock FreeBSD box, as it says in that file:

          This is rc.conf - a file full of useful variables that you can set

          to change the default startup behavior of your system.  You should

          not edit this file!  Put any overrides into one of the ${rc_conf_files}

          instead and you will be able to update these defaults later without

          spamming your local configuration information.

          1 Reply Last reply Reply Quote 0
          • M
            MattMeyer
            last edited by

            Thanks very much for that tip.  Please pardon the elementary question, but my stock image does not have a /etc/rc.conf file that already exists.  I assume I will need to create this manually.  Please advise if this is the case.

            Thanks.

            1 Reply Last reply Reply Quote 0
            • M
              MattMeyer
              last edited by

              Well, I tried creating the file manually, then making it executable.  However it's not persistent after a reboot.  How can I make this persistent.

              Thanks.

              1 Reply Last reply Reply Quote 0
              • S
                sullrich
                last edited by

                @MattMeyer:

                Well, I tried creating the file manually, then making it executable.  However it's not persistent after a reboot.  How can I make this persistent.

                Thanks.

                pfSense does not use rc.conf and the freebsd rc system.  We have our own.

                1 Reply Last reply Reply Quote 0
                • M
                  MattMeyer
                  last edited by

                  Ahh, that makes sense why the file keeps getting deleted then.  After comparing the vmware-kmod.sh file in the appliance with the manual install, I noticed that half the file was edited.  The most notable parts are where the defaults are set.  If I read this correctly, those parts define whether of not to load the module by default and use the rc.conf system to override the setting.  This gives a user more control of what he/she wants loaded.  Since pfSense does not use the rc.conf system, you had to edit the script to make modules load at default instead of giving a choice in the matter.

                  I'm I following this correctly?

                  1 Reply Last reply Reply Quote 0
                  • C
                    cmb
                    last edited by

                    Is there a reason you don't want it to load certain things?

                    You'll have to manually edit the startup script to change what is loaded.

                    1 Reply Last reply Reply Quote 0
                    • M
                      MattMeyer
                      last edited by

                      It's not that I want to load or unload certain modules.  I'm just trying to understand the "hows".  There are also a few things that I would change with the virtual appliance, and installing a fresh image and creating my own "master" template would be preferred.  The few things I am changing are:

                      1.  The file size seems too big.  If I install a fresh image using the ISO, manually install the tools package, then zip up the vmdk, the file size is just around 50M or the same as the ISO.  This is what I was expecting, but the standard virtual appliance is over 3x larger.  I cannot figure out why this is.

                      2.  I use VMware ESX server, and the virtual appliance is created using COW (copy-on-write, aka thin) vmdks with the "virtual" size of 4GB.  When I convert this COW to Thick disks, it uses the full 4GB.  Now, this is really not a big deal considering how much free space there is, but it is really a lot of wasted space.

                      In my tests, I've created a version of a virtual appliance using a 1GB vmdk and can be compressed to just over 50M.

                      1 Reply Last reply Reply Quote 0
                      • C
                        cmb
                        last edited by

                        @MattMeyer:

                        1.  The file size seems too big.  If I install a fresh image using the ISO, manually install the tools package, then zip up the vmdk, the file size is just around 50M or the same as the ISO.  This is what I was expecting, but the standard virtual appliance is over 3x larger.  I cannot figure out why this is.

                        I wondered the same, there is only about 100 MB of data on the vmdk, but even after a defrag it's significantly larger than that.  Wrote it off, as I don't have time to chase that one down right now.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.