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

    Installation of Open-VM-Tools FAILED (built on Fri Apr 1 21:22:49 EDT 2011)

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    14 Posts 5 Posters 7.0k 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.
    • C
      Clouseau
      last edited by

      There is no need for new ticket - there is one all ready. Now it's time to wait and see what will be done. (Nothing else to do if you can't fix this by your selves - I don't  8) )

      –--------------------------------------------------------------
      Multible Alix 2D13, APU1,APU2,APU3 - pfSense 2.4.x 64bit
      Multible Vmware vSphere - pfSense 2.4.x 64bit

      pfSense - FreeNAS - OwnCloud

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

        I managed to get a step further by manual downloading and installing the missing package icu-4.6.1.tgz. Now i get this error during the installation :

        Parse error: syntax error, unexpected T_SL in /usr/local/pkg/open-vm-tools.inc on line 13

        I can manual start the vm tools now, they are displayed as "not managed" but are working.

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

          Now i have the vm ware tools running, but with one problem …. The filter rules reloading stuck forver at :

          Checking for nat PF hooks in package /usr/local/pkg/open-vm-tools.inc...

          Any ideas ?

          1 Reply Last reply Reply Quote 0
          • N
            nothing_fr
            last edited by

            I have corrected manualy the file /usr/local/pkg/open-vm-tools.inc to get it work on ESXi 4.1 / PfSense 2 RC1 AMD64.

            1. Install package, it will fail with error : Parse error: syntax error, unexpected T_SL in /usr/local/pkg/open-vm-tools.inc on line 13
            2. Login with ssh on your pfsense
            3. Edit the file /usr/local/pkg/open-vm-tools.inc
            4. Remove space at the end of line 13
            5. Add ; at the end of line 22
            6. Reinstall package (it will use the file on your disk)
            7. ENJOY !

            Corrected file :

            
            function open_vm_tools_deinstall() {
                    exec("rm /usr/local/etc/rc.d/vmware*");
            }
            
            function open_vm_tools_install() {
                    exec("/bin/cp /usr/local/lib/vmware-tools/modules/drivers/*.ko /boot/kernel/");
                    if(!file_exists("/boot/loader.conf"))
                            touch("/boot/loader.conf");
                    $load_conf = file_get_contents("/boot/loader.conf");
                    if(!strstr("vmxnet")) {
                            $load_conf .= <<<eofa<br>vmblock_load="YES"
            vmmemct_load="YES"
            vmhgfs_load="YES"
            vmxnet_load="YES"
            EOFA;
                            file_put_contents("/boot/loader.conf", $load_conf);
                    }
            
                    $boot_loader;
                    $vmware_guestd = <<<eof<br>#!/bin/sh
            #
            # This file was automatically generated
            # by the pfSense package manager.
            #
            # Do not edit this file.  Edit
            # /usr/local/pkg/open-vm-tools.inc instead.
            #
            # PROVIDE: vmware-guestd
            # REQUIRE: DAEMON
            # BEFORE: LOGIN
            
            . /etc/rc.subr
            
            # Global
            checkvm_cmd="/usr/local/bin/vmware-checkvm > /dev/null"
            
            # VMware guest daemon
            name="vmware_guestd"
            rcvar=`set_rcvar`
            start_precmd="\${checkvm_cmd}"
            unset start_cmd
            stop_precmd="\${checkvm_cmd}"
            unset stop_cmd
            command="/usr/local/bin/vmtoolsd"
            command_args="-c /usr/local/share/vmware-tools/tools.conf -p /usr/local/lib/open-vm-tools/plugins/vmsvc"
            pidfile="/var/run/\${name}.pid"
            
            load_rc_config \$name
            vmware_guestd_enable="YES"
            vmware_guestd_flags="--background \${pidfile}"
            run_rc_command "\$1"
            
            EOF;
            
                    $vmware_kmod = <<<eof<br>#!/bin/sh
            #
            # This file was automatically generated
            # by the pfSense package manager.
            #
            # Do not edit this file.  Edit
            # /usr/local/pkg/open-vm-tools.inc instead.
            #
            # PROVIDE: vmware-kmod
            # REQUIRE: FILESYSTEMS
            # BEFORE: netif
            
            . /etc/rc.subr
            
            # Global
            checkvm_cmd="/usr/local/bin/vmware-checkvm > /dev/null"
            
            # Functions
            vmware_guest_vmmemctl_start()
            {
                    echo 'Loading vmmemctl kernel module.'
                    kldload /usr/local/lib/vmware-tools/modules/drivers/vmmemctl.ko >/dev/null 2>&1
            }
            vmware_guest_vmxnet_start()
            {
                    echo 'Loading vmxnet kernel module.'
                    kldload /usr/local/lib/vmware-tools/modules/drivers/vmxnet.ko >/dev/null 2>&1
            }
            vmware_guest_vmblock_start()
            {
                    echo 'Loading vmblock kernel module.'
                    kldload /usr/local/lib/vmware-tools/modules/drivers/vmblock.ko >/dev/null 2>&1
            }
            vmware_guest_vmhgfs_start()
            {
                    echo 'Loading vmhgfs kernel module.'
                    kldload /usr/local/lib/vmware-tools/modules/drivers/vmhgfs.ko >/dev/null 2>&1
            }
            
            # VMware kernel module: vmmemctl
            name="vmware_guest_vmmemctl"
            rcvar=`set_rcvar`
            start_precmd="\${checkvm_cmd}"
            start_cmd="vmware_guest_vmmemctl_start"
            stop_precmd="\${checkvm_cmd}"
            stop_cmd=":"
            
            load_rc_config \$name
            vmware_guest_vmmemctl_enable="YES"
            run_rc_command "\$1"
            
            # VMware kernel module: vmxnet
            name="vmware_guest_vmxnet"
            rcvar=`set_rcvar`
            start_precmd="\${checkvm_cmd}"
            start_cmd="vmware_guest_vmxnet_start"
            stop_precmd="\${checkvm_cmd}"
            stop_cmd=":"
            
            load_rc_config \$name
            vmware_guest_vmxnet_enable="YES"
            run_rc_command "\$1"
            
            # VMware kernel module: vmblock
            name="vmware_guest_vmblock"
            rcvar=`set_rcvar`
            start_precmd="\${checkvm_cmd}"
            start_cmd="vmware_guest_vmblock_start"
            stop_precmd="\${checkvm_cmd}"
            stop_cmd=":"
            
            load_rc_config \$name
            vmware_guest_vmblock_enable="YES"
            run_rc_command "\$1"
            
            # VMware kernel module: vmhgfs
            name="vmware_guest_vmhgfs"
            rcvar=`set_rcvar`
            start_precmd="\${checkvm_cmd}"
            start_cmd="vmware_guest_vmhgfs_start"
            stop_precmd="\${checkvm_cmd}"
            stop_cmd=":"
            
            load_rc_config \$name
            vmware_guest_vmhgfs_enable="YES"
            run_rc_command "\$1"
            
            EOF;
            
                    // Write out conf files.
                    $fd = fopen("/usr/local/etc/rc.d/vmware-guestd.sh", "w");
                    if(!$fd)
                            die("Could not open /usr/local/etc/rc.d/vmware-guestd.sh for writing");
                    fwrite($fd, $vmware_guestd);
                    fclose($fd);
                    $fd = fopen("/usr/local/etc/rc.d/vmware-kmod.sh", "w");
                    if(!$fd)
                            die("Could not open /usr/local/etc/rc.d/vmware-kmod.sh for writing");
                    fwrite($fd, $vmware_kmod);
                    fclose($fd);
            
                    // Remove non used files
                    unlink_if_exists("/usr/local/etc/rc.d/vmware-kmod");
                    unlink_if_exists("/usr/local/etc/rc.d/vmware-guestd");
            
                    // Make sure files are executable.
                    exec("chmod a+rx /usr/local/etc/rc.d/*.sh");
            
            }
            
            ?></eof<br></eof<br></eofa<br> 
            
            1 Reply Last reply Reply Quote 0
            • M
              Macom2007
              last edited by

              Check your Filter Reload Status. On my box it is stuck at :

              Checking for nat PF hooks in package /usr/local/pkg/open-vm-tools.inc…

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

                2.0-RC1 (i386) built on Mon Apr 4 06:04:37 EDT 2011

                Beginning package installation for Open-VM-Tools…
                Downloading package configuration file... done.
                Saving updated package information... done.
                Downloading Open-VM-Tools and its dependencies...
                Checking for package installation...
                Downloading http://files.pfsense.org/packages/8/All/icu-4.6.1.tbz ...  could not download from there or http://ftp2.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.1-release/All/icu-4.6.1.tbz.
                of icu-4.6.1 failed!Cleaning up... Failed to install package.
                ....
                Installation halted.

                Nothing new  >:(

                –--------------------------------------------------------------
                Multible Alix 2D13, APU1,APU2,APU3 - pfSense 2.4.x 64bit
                Multible Vmware vSphere - pfSense 2.4.x 64bit

                pfSense - FreeNAS - OwnCloud

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

                  You have to wget and install the icu package from this url first …

                  http://pfsense.trendchiller.com/packages/icu-4.6.1.tbz

                  1 Reply Last reply Reply Quote 0
                  • U
                    unguzov
                    last edited by

                    No change in 2.0-RC1 (i386) built on Wed Apr 6 10:36:17 EDT 2011.

                    It is clear that this link is broken - http://files.pfsense.org/packages/8/All/icu-4.6.1.tbz
                    Only file http://files.pfsense.org/packages/8/All/icu-4.6.tbz is present at this URL.

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

                      I have the VM Open tools running …. Simple wget the icu-4.6-1-tgz file from the url in my earlier post and follow the instruction from nothing_fr ....

                      1 Reply Last reply Reply Quote 0
                      • U
                        unguzov
                        last edited by

                        @Macom2007:

                        I have the VM Open tools running …. Simple wget the icu-4.6-1-tgz file from the url in my earlier post and follow the instruction from nothing_fr ....

                        I am sure that this will work, I just want to show problem to developers  :)

                        EDIT: It works, but after that I have VMWare Tools running but no access to web interface and no internet. I have ping from console to LAN, but not from LAN to pfSense box. I reverted to old shanpshot of my VM without VMWare Tools. I'm using VMWare Server 2.0.2 on Windows Vista 32bit.

                        1 Reply Last reply Reply Quote 0
                        • R
                          Rezin
                          last edited by

                          @nothing_fr:

                          I have corrected manualy the file /usr/local/pkg/open-vm-tools.inc to get it work on ESXi 4.1 / PfSense 2 RC1 AMD64.

                          Thank you.  :)

                          Adding a semi-colon at the end of line 22 fixed the "Checking for nat PF hooks in package /usr/local/pkg/open-vm-tools.inc…" issue for me. I couldn't see a space at line 13 though.

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