Installation of Open-VM-Tools FAILED (built on Fri Apr 1 21:22:49 EDT 2011)
-
I have problem to install Open-VM Tools with the latest build (2.0-RC1 (i386) built on Fri Apr 1 21:22:49 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!Installation aborted.Backing up libraries...
Removing package...
Starting package deletion for open-vm-tools-nox11-313025_2...done.
Starting package deletion for fusefs-kmod-0.3.9.p1...done.
Starting package deletion for fusefs-libs-2.7...done.
Starting package deletion for fusefs-kmod-0.3.9.p1.20080208_7...done.
Starting package deletion for fusefs-libs-2.7.4...done.
Starting package deletion for glib-2.26.1_1...done.
Starting package deletion for python27-2.7...done.
Starting package deletion for icu-4.6.1...done.
Starting package deletion for libdnet-1.11_3...done.
Skipping package deletion for libiconv-1.13.1_1 because it is a dependency.
Skipping package deletion for pcre-8.12 because it is a dependency.
Skipping package deletion for perl-5.10.1_3 because it is a dependency.
Skipping package deletion for pkg-config-0.25_1 because it is a dependency.
Starting package deletion for python27-2.7.1_1...done.
Removing Open-VM-Tools components...
Loading package instructions...
Include file open-vm-tools.inc could not be found for inclusion.
Deinstall commands...
Not executing custom deinstall hook because an include is missing.
Removing package instructions...done.
Auxiliary files... done.
Package XML... done.
Configuration... done.
Cleaning up... Failed to install package.Installation halted.
-
yep:
http://forum.pfsense.org/index.php/topic,33587.0.html
This has been the situation for long time now!
-
I opend a ticket today … http://redmine.pfsense.org/issues/1409
-
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) )
-
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.
-
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 ?
-
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.
- 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
- Login with ssh on your pfsense
- Edit the file /usr/local/pkg/open-vm-tools.inc
- Remove space at the end of line 13
- Add ; at the end of line 22
- Reinstall package (it will use the file on your disk)
- 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>
-
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…
-
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 >:(
-
You have to wget and install the icu package from this url first …
http://pfsense.trendchiller.com/packages/icu-4.6.1.tbz
-
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. -
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 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.
-
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.