OPNsense Forum

English Forums => General Discussion => Topic started by: pantgr on August 20, 2015, 01:39:36 pm

Title: [SOLVED] Any one know how to install vmware tools on vmware workstasion 11.1.2 ?
Post by: pantgr on August 20, 2015, 01:39:36 pm
hello to all nice to meet you  ;). I will try to install vm-ware tools on version FreeBSD 10.1-RELEASE-p17 (OPNsense 15.7.9-i386) but this pack missing :
pkg install compat6x-`uname -m`
Updating OPNsense repository catalogue...
OPNsense repository is up-to-date.
All repositories are up-to-date.
pkg: No packages available to install matching 'compat6x-i386' have been found in the repositories

I have 2 questions :

1) vmware tools help to run my router better?
2) if yes how to install this missing pack ?

Thanks you

Title: Re: Any one saccses to install vmware tools on vmware workstasion 11.1.2 ?
Post by: franco on August 20, 2015, 04:12:43 pm
Hi there, very simple... :)

# pkg install os-vmware

This is a sneak preview of our plugin system. It has problems but it gets the open-vm-tools-nox11 installed for you and starts all things on bootup. We're still sorting out early load of the kernel module to enable vmx drivers without fiddling with /boot/loader.conf yourself.
Title: Re: [SOLVED] Any one saccses to install vmware tools on vmware workstasion 11.1.2 ?
Post by: pantgr on August 21, 2015, 12:21:28 pm
Thank you very mach :-)
Title: Re: Any one saccses to install vmware tools on vmware workstasion 11.1.2 ?
Post by: Lunddahl on October 12, 2015, 03:46:18 pm
Hi there, very simple... :)

# pkg install os-vmware

This is a sneak preview of our plugin system. It has problems but it gets the open-vm-tools-nox11 installed for you and starts all things on bootup. We're still sorting out early load of the kernel module to enable vmx drivers without fiddling with /boot/loader.conf yourself.

Worked fine last week, but after todays updates, on a clean install, there seems to be problems:

Loading VM*** kernel module: KLD vm***.ko: depends on kernel - not available or version mismatch.

How to solve, last weeks install is still working fine, even after updates...




Title: Re: [SOLVED] Any one saccses to install vmware tools on vmware workstasion 11.1.2 ?
Post by: franco on October 13, 2015, 07:14:38 am
Interesting, can you please provide me with your versions info from the dashboard system widget?

Then, try this to see if it fixes your issue:

# pkg install -f open-vm-tools-nox11
Title: Re: [SOLVED] Any one saccses to install vmware tools on vmware workstasion 11.1.2 ?
Post by: Lunddahl on October 13, 2015, 09:00:36 am
It was just with the version downloaded from the images yesterday, i reproduced both with and without updates.

The one i have working was from last week, i thing i have upgraded it fully, and then installed the tools, no issues. If i remember correctly i think i saw an upgrade of the os-vmware being installed too.

I will reproduce later today or tomorrow, and give you a decent report ;-)

Are the log files for installing updates saved somewhere, then i can post them too, there were some errors shown.

- Ulrik Lunddahl


Title: Re: [SOLVED] Any one saccses to install vmware tools on vmware workstasion 11.1.2 ?
Post by: franco on October 13, 2015, 08:37:19 pm
They all go into the system log, but won't help much with apparent ABI mismatch.

The packages are refreshed each week, so maybe one week had a bad version, we need to pin this down, first of all making sure the current mirror package is ok. :)

PS: we're hijacking this old thread now, but in the future it would be better to trace down problem reports in new tickets (especially when they were previously solved).
Title: Re: Any one know how to install vmware tools on vmware workstasion 11.1.2 ?
Post by: Lunddahl on October 14, 2015, 02:15:00 pm
I tried to reproduce today using a fresh install from: OPNsense-15.7.11-OpenSSL-cdrom-amd64.iso

# pkg install os-vmware

Code: [Select]
Oct 14 10:32:42 pkg: libdnet-1.12_1 installed
Oct 14 10:32:44 pkg: icu-55.1 installed
Oct 14 10:32:45 pkg: glib-2.44.1_1 installed
Oct 14 10:32:45 pkg: open-vm-tools-nox11-1280544_12,1 installed
Oct 14 10:32:45 configd.py: [c0c85c57-bcdf-428d-a46d-1915e46bfbe4] generate template OPNsense.VMware
Oct 14 10:32:45 pkg: os-vmware-1.2 installed
Oct 14 10:32:45 kernel: KLD vmmemctl.ko: depends on kernel - not available or version mismatch
Oct 14 10:32:45 kernel: linker_load_file: Unsupported file type
Oct 14 10:32:45 kernel: KLD vmxnet.ko: depends on kernel - not available or version mismatch
Oct 14 10:32:45 kernel: linker_load_file: Unsupported file type
Oct 14 10:32:45 kernel: KLD vmblock.ko: depends on kernel - not available or version mismatch
Oct 14 10:32:45 kernel: linker_load_file: Unsupported file type
Oct 14 10:32:45 kernel: KLD vmhgfs.ko: depends on kernel - not available or version mismatch
Oct 14 10:32:45 kernel: linker_load_file: Unsupported file type

Then i reinstalled and upgraded:

Code: [Select]
apinger 0.6.1_4 88.4kB IP device monitoring tool
ataidle 2.7.2 22.0kB Utility to spin down ATA drives
beep 1.0_1 8.48kB Beeps a certain duration and pitch out of the PC Speaker
bind910 9.10.3_1 51.2MB BIND DNS suite with updated DNSSEC and DNS64
bsdinstaller 2.3_5 1.55MB BSD Installer mega-package
bsnmp-regex 0.6_1 65.0kB bsnmpd module allowing creation of counters from log files
bsnmp-ucd 0.4.1 97.8kB bsnmpd module that implements parts of UCD-SNMP-MIB
ca_root_nss 3.20 961kB Root certificate bundle from the Mozilla Project
choparp 20021107_4 13.9kB Simple proxy arp daemon
clog 1.0.1_3 12.2kB Circular log support for FreeBSD syslogd
cpdup 1.17_2 60.8kB Comprehensive filesystem mirroring and backup program
cpustats 0.1 6.62kB Gather system statistics
curl 7.44.0 4.12MB Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
dhcp6 20080615_2 416kB KAME DHCP6 client, server, and relay
dhcpleases 0.2 28.4kB Read dhpcd.lease file and add it to hosts file
dnsmasq 2.75,1 702kB Lightweight DNS forwarder, DHCP, and TFTP server
easy-rsa 2.2.2 92.5kB Small RSA key management package based on openssl
expat 2.1.0_3 480kB XML 1.0 parser written in C
expiretable 0.6_1 16.8kB Utility to remove entries from the pf(4) table based on their age
filterdns 0.2 29.9kB filterdns
filterlog 0.2 19.5kB Parse pflog(4) output
freetype2 2.6_1 2.64MB Free and portable TrueType font rendering engine
gettext-runtime 0.19.6 826kB GNU gettext runtime libraries and programs
glib 2.44.1_1 18.9MB Some useful routines of C programming (current stable version)
gmp 5.1.3_2 2.65MB Free library for arbitrary precision arithmetic
icu 55.1 71.1MB International Components for Unicode (from IBM)
idnkit 1.0_5 2.31MB Library to handle internationalized domain names
ifinfo 10.1 12.3kB Interface statistics reader
igmpproxy 0.1_2,1 36.6kB Multicast forwarding IGMP proxy
indexinfo 0.2.3 10.5kB Utility to regenerate the GNU info page index
isc-dhcp42-client 4.2.8 1.69MB The ISC Dynamic Host Configuration Protocol client
isc-dhcp42-relay 4.2.8 1.57MB The ISC Dynamic Host Configuration Protocol relay
isc-dhcp42-server 4.2.8_1 4.04MB ISC Dynamic Host Configuration Protocol server
jansson 2.7_1 164kB C library for encoding, decoding, and manipulating JSON data
ldns 1.6.17_5 1.86MB Library for programs conforming to DNS RFCs and drafts
libart_lgpl 2.3.21_2,1 372kB Library for high-performance 2D graphics
libdaemon 0.14_1 98.9kB Lightweight C library that eases the writing of UNIX daemons
libdnet 1.12_1 254kB Simple interface to low level networking routines
libedit 3.1.20150325_1 592kB Command line editor library
libevent2 2.0.22_1 1.86MB API for executing callback functions on events or timeouts
libffi 3.2.1 129kB Foreign Function Interface
libhtp 0.5.16 490kB Security-aware parser for the HTTP protocol
libiconv 1.14_8 2.28MB Character set conversion library
libltdl 2.4.6 146kB System independent dlopen wrapper
libmcrypt 2.5.8_3 595kB Multi-cipher cryptographic library (used in PHP)
libnet 1.1.6_3,1 914kB C library for creating IP packets
libpdel 0.5.3_6 5.09MB Packet Design multi-purpose C library for embedded applications
libxml2 2.9.2_3 4.70MB XML parser library for GNOME
libyaml 0.1.6_2 341kB YAML 1.1 parser and emitter written in C
lighttpd 1.4.37 797kB Secure, fast, compliant, and flexible Web Server
lzo2 2.09 734kB Portable speedy, lossless data compression library
minicron 0.0.2 7.59kB A very small cron
miniupnpd 1.9_1,1 130kB UPnP IGD implementation which uses pf/ipf
mpd4 4.4.1_2 1.04MB Multi-link PPP daemon based on netgraph(4)
mpd5 5.7_3 1.28MB Multi-link PPP daemon based on netgraph(4)
nano 2.4.2 469kB Nano's ANOther editor, an enhanced free Pico clone
nettle 2.7.1 4.30MB Low-level cryptographic library
ntp 4.2.8p3_1 6.01MB The Network Time Protocol Distribution
oniguruma4 4.7.1_1 1.06MB BSDL Regular Expressions library compatible with POSIX/GNU/Perl
open-vm-tools-nox11 1280544_12,1 2.44MB Open VMware tools for FreeBSD VMware guests
openldap-client 2.4.42_2 5.71MB Open source LDAP client implementation
openssh-portable 7.1.p1_2,1 4.34MB The portable version of OpenBSD's OpenSSH
openssl 1.0.2_4 11.7MB SSL and crypto library
openvpn 2.3.8 1.13MB Secure IP/Ethernet tunnel daemon
opnsense 15.7.16 31.2MB OPNsense release package
opnsense-update 15.7.12 9.13kB OPNsense update utility
os-vmware 1.2 620B VMware tools wrapper
pcre 8.37_4 5.58MB Perl Compatible Regular Expressions library
pecl-radius 1.2.7 114kB Radius client library for PHP
perl5 5.20.3_8 51.4MB Practical Extraction and Report Language
pftop 0.7_4 167kB Utility for real-time display of statistics for pf
phalcon 2.0.8 5.39MB Phalcon PHP Framework written in C-language
php-pfSense 0.2_4 16.4kB Library for getting useful info
php-suhosin 0.9.38 223kB PHP extension that implements high-level protections
php-xdebug 2.2.5 263kB Xdebug extension for PHP
php56 5.6.14 17.2MB PHP Scripting Language
php56-bcmath 5.6.14 50.3kB The bcmath shared extension for php
php56-bz2 5.6.14 28.2kB The bz2 shared extension for php
php56-ctype 5.6.14 18.3kB The ctype shared extension for php
php56-curl 5.6.14 92.1kB The curl shared extension for php
php56-dom 5.6.14 226kB The dom shared extension for php
php56-filter 5.6.14 54.9kB The filter shared extension for php
php56-gettext 5.6.14 18.3kB The gettext shared extension for php
php56-hash 5.6.14 403kB The hash shared extension for php
php56-json 5.6.14 45.6kB The json shared extension for php
php56-ldap 5.6.14 65.0kB The ldap shared extension for php
php56-mbstring 5.6.14 3.52MB The mbstring shared extension for php
php56-mcrypt 5.6.14 54.1kB The mcrypt shared extension for php
php56-mysql 5.6.14 60.2kB The mysql shared extension for php
php56-openssl 5.6.14 164kB The openssl shared extension for php
php56-pdo 5.6.14 138kB The pdo shared extension for php
php56-pdo_sqlite 5.6.14 33.4kB The pdo_sqlite shared extension for php
php56-session 5.6.14 95.3kB The session shared extension for php
php56-simplexml 5.6.14 65.0kB The simplexml shared extension for php
php56-sockets 5.6.14 124kB The sockets shared extension for php
php56-sqlite3 5.6.14 54.9kB The sqlite3 shared extension for php
php56-tokenizer 5.6.14 23.8kB The tokenizer shared extension for php
php56-xml 5.6.14 67.4kB The xml shared extension for php
php56-zlib 5.6.14 42.6kB The zlib shared extension for php
pkg 1.5.6 10.3MB Package manager
png 1.6.18 878kB Library for manipulating PNG images
py27-Babel 2.0 9.83MB Collection of tools for internationalizing Python applications
py27-Jinja2 2.8 2.10MB Fast and easy to use stand-alone template engine
py27-MarkupSafe 0.23 110kB Implements a XML/HTML/XHTML Markup safe string for Python
py27-pytz 2015.4,1 977kB World Timezone Definitions for Python
py27-requests 2.7.0 3.13MB HTTP library written in Python for human beings
py27-setuptools27 17.0 1.53MB Python packages installer
py27-sqlite3 2.7.10_6 92.1kB Standard Python binding to the SQLite3 library
py27-ujson 1.33 61.6kB Ultra fast JSON encoder and decoder for Python
python27 2.7.10 68.7MB Interpreted object-oriented programming language
radvd 1.15 144kB Linux/BSD IPv6 router advertisement daemon
rate 0.9 98.3kB Traffic analysis command-line utility
relayd 5.5.20140810_1 278kB OpenBSD relay daemon
rrdtool12 1.2.30_7 3.02MB Round Robin Database Tools v1.2
smartmontools 6.4_1 1.49MB S.M.A.R.T. disk monitoring tools
sqlite3 3.8.11.1_1 2.86MB SQL database engine in a C library
squid 3.5.9_1 9.45MB HTTP Caching Proxy
sshlockout_pf 0.0.2_2 11.0kB Automatically block IPs with failed SSH logins using pf(4)
strongswan 5.3.3 5.10MB Open Source IKEv2 IPsec-based VPN solution
sudo 1.8.14p3 2.15MB Allow others to run commands as root
suricata 2.0.8_2 2.10MB High Performance Network IDS, IPS and Security Monitoring engine
syslogd 10.1_1 50.2kB FreeBSD syslogd with additions
unbound 1.5.4_1 5.36MB Validating, recursive, and caching DNS resolver
voucher 0.1_4 11.0kB voucher support
wol 0.7.1_2 45.4kB Tool to wake up Wake-On-LAN compliant computers
zip 3.0_1 736kB Create/update ZIP files compatible with PKZIP

But there seems to be no difference, same error.

I'm only using vmware tools for automation (shutdown/reboot), all i need is vmware_guestd, and it seems to work without loading the kernel modules.

I ended up editing /usr/local/opnsense/scripts/vmware/setup.sh commenting out loading of kernel modules.

Code: [Select]
export vmware_guest_vmblock_enable="YES"
export vmware_guest_vmhgfs_enable="YES"
export vmware_guest_vmmemctl_enable="YES"
export vmware_guest_vmxnet_enable="YES"
export vmware_guestd_enable="YES"

#/usr/local/etc/rc.d/vmware-kmod start (commented out)
/usr/local/etc/rc.d/vmware-guestd start

I have no clue weather this is the right way to do it, but i works for me, however for simplicity it would be nice to have a os-vmware-guestdonly package.

I don't know why the kernel modules is no able to load, and i don't know what ABI mismatch is.

Let me know if there is anything else i can do to help ?
Title: Re: Any one know how to install vmware tools on vmware workstasion 11.1.2 ?
Post by: DoubleJ on October 25, 2015, 05:40:35 pm
oops. posted double
Title: Re: Any one know how to install vmware tools on vmware workstasion 11.1.2 ?
Post by: DoubleJ on October 25, 2015, 05:42:52 pm
I tried to install VM-tools on ESXi 5.5 with latest dev release of opnsense 15.7.99_1261 (amd64/LibreSSL).
I run into the same problem. kernel mods cannot be loaded:

Quote
Oct 14 10:32:45   kernel: KLD vmmemctl.ko: depends on kernel - not available or version mismatch
Oct 14 10:32:45   kernel: linker_load_file: Unsupported file type
Oct 14 10:32:45   kernel: KLD vmxnet.ko: depends on kernel - not available or version mismatch
Oct 14 10:32:45   kernel: linker_load_file: Unsupported file type
Oct 14 10:32:45   kernel: KLD vmblock.ko: depends on kernel - not available or version mismatch
Oct 14 10:32:45   kernel: linker_load_file: Unsupported file type
Oct 14 10:32:45   kernel: KLD vmhgfs.ko: depends on kernel - not available or version mismatch
Oct 14 10:32:45   kernel: linker_load_file: Unsupported file type

I tried the suggestions as provided in this thread, but no success.
Any progress or update on how to solve?
Title: Re: Any one know how to install vmware tools on vmware workstasion 11.1.2 ?
Post by: franco on October 25, 2015, 06:58:17 pm
Are you guys sure the kernel mods cannot be loaded? I tried autoloading them in the latest os-vmware 1.2, but that doesn't work. It may just be the autoloading error you're seeing... What's the output of the following cmd?

# kldstat

I also need the full version info as shown in the dashboard. Maybe there is an older kernel stuck in the system?!
Title: Re: Any one know how to install vmware tools on vmware workstasion 11.1.2 ?
Post by: DoubleJ on October 26, 2015, 05:29:06 pm
Version info from UI:

OPNsense 15.7.99_1261-amd64
FreeBSD 10.1-RELEASE-p19
LibreSSL 2.2.4

Output kldstat:

Id Refs Address            Size     Name
 1    1 0xffffffff80200000 20afd18  kernel

Is this good or bad?  :)
Title: Re: Any one know how to install vmware tools on vmware workstasion 11.1.2 ?
Post by: franco on October 27, 2015, 11:32:12 am
It's the correct kernel version, but the modules are definitely not loaded.

Still trying to pin this down, but a rework of the os-vmware plugin is coming soon.
Title: Re: Any one know how to install vmware tools on vmware workstasion 11.1.2 ?
Post by: franco on October 28, 2015, 08:45:39 am
I think I know why this happens, I will fix this for 15.7.18. It won't pick it up automatically, so the fix then will be:

# pkg install -f open-vm-tools-nox11

I'm expecting 15.7.18 on Friday if all goes well. I'll try to provide a test package as later today. :)
Title: Re: Any one know how to install vmware tools on vmware workstasion 11.1.2 ?
Post by: franco on October 28, 2015, 03:02:37 pm
Could anyone help test the package for 15.7.18? This is amd64 / OpenSSL (although LibreSSL will most likely work as well):

# pkg add -f https://pkg.opnsense.org/FreeBSD:10:amd64/15.7/experimental/All/open-vm-tools-nox11-1280544_12,1.txz
Title: Re: Any one know how to install vmware tools on vmware workstasion 11.1.2 ?
Post by: DoubleJ on October 31, 2015, 05:38:09 pm
Tested it on the latest development release:

Used version:

OPNsense 15.7.99_1261-amd64
FreeBSD 10.1-RELEASE-p19
LibreSSL 2.2.4

kldstat output:

Id Refs Address            Size     Name
 1   10 0xffffffff80200000 20afd18  kernel
 2    1 0xffffffff82411000 231a     vmmemctl.ko
 3    1 0xffffffff82414000 2382     vmxnet.ko
 4    1 0xffffffff82417000 2d8c     vmblock.ko
 5    1 0xffffffff8241a000 89be     vmhgfs.ko

So it seems to work now !! Thanks! 8)
Title: Re: Any one know how to install vmware tools on vmware workstasion 11.1.2 ?
Post by: franco on October 31, 2015, 11:52:45 pm
Perfect, thanks for testing!! Next version will also have an early driver load so you can use the vmx devices in your config by default. :)