Netgate m1n1wall

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

0 Members and 1 Guest are viewing this topic.

Offline unguzov

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
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.

Offline Clouseau

  • Full Member
  • ***
  • Posts: 111
  • Wheeers thö bög?
    • View Profile
yep:

http://forum.pfsense.org/index.php/topic,33587.0.html

This has been the situation for long time now!
---------------------------------------------------------
Multible Alix 2D13 - pfSense 2.0 32bit
Multible Vmware vSphere - pfSense 2.0 32&64bit

Offline Macom2007

  • Full Member
  • ***
  • Posts: 121
    • View Profile

Offline Clouseau

  • Full Member
  • ***
  • Posts: 111
  • Wheeers thö bög?
    • View Profile
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 - pfSense 2.0 32bit
Multible Vmware vSphere - pfSense 2.0 32&64bit

Offline Macom2007

  • Full Member
  • ***
  • Posts: 121
    • View Profile
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.

Offline Macom2007

  • Full Member
  • ***
  • Posts: 121
    • View Profile
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 ?

Offline nothing_fr

  • Newbie
  • *
  • Posts: 9
    • View Profile
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 :

Code: [Select]
<?php

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
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
#!/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
#!/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");

}

?>

« Last Edit: April 05, 2011, 03:49:14 am by nothing_fr »

Offline Macom2007

  • Full Member
  • ***
  • Posts: 121
    • View Profile
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...

Offline Clouseau

  • Full Member
  • ***
  • Posts: 111
  • Wheeers thö bög?
    • View Profile
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 - pfSense 2.0 32bit
Multible Vmware vSphere - pfSense 2.0 32&64bit

Offline Macom2007

  • Full Member
  • ***
  • Posts: 121
    • View Profile
You have to wget and install the icu package from this url first ...

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

Offline unguzov

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
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.
« Last Edit: April 06, 2011, 01:03:48 pm by unguzov »

Offline Macom2007

  • Full Member
  • ***
  • Posts: 121
    • View Profile
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 ....

Offline unguzov

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
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.
« Last Edit: April 08, 2011, 04:12:36 am by unguzov »

Offline Rezin

  • Jr. Member
  • **
  • Posts: 49
    • View Profile
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.