pfsense Install Open-VM-Tools

Open-VM-Tools

 

* 8.7.0.3046.1 不支援 vmxnet3

 

# I found a great package I want called ???.

pkg_add -r ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-8.3-release/All/???

rehash

pkg_add -rv Open-VM-Tools

looking up ftp.freebsd.org
connecting to ftp.freebsd.org:21
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.3-release/Latest... File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.3-release/Latest/Open-VM-Tools.tbz' by URL
pkg_add: 1 package addition(s) failed

Caveats

The pkg_add command on its own will not properly download packages because the locations have changed on FreeBSD's servers since 8.3 is no longer supported upstream.


 

Install From Web GUI

 

/etc/inc/globals.inc

"xmlrpcbaseurl" => "https://packages.pfsense.org"

 


pfsense 自己的 package

 

https://files.pfsense.org/packages/8/All/

 


 

The Open VM Tools package package lets you use the open source VMware tools which work but can lag a bit behind the official tools in terms of support.

Verifying vmware-guestd

ps ax|grep vmware

/usr/local/sbin/vmware-guestd --background /var/run/vmware_guestd.pid --halt-command /sbin/shutdown -p now

 

kernel modules

kldstat

# 2.1.5 未安時

Id Refs Address    Size     Name
 1    9 0xc0400000 13bc558  kernel
 2    1 0xc3d33000 175000   zfs.ko
 3    1 0xc3eb6000 3000     opensolaris.ko

# 安裝後

 4    1 0xc4e9e000 4000     vmmemctl.ko
 5    1 0xc4ea2000 5000     vmxnet.ko
 6    1 0xc4ea8000 5000     vmblock.ko
 7    1 0xc4ead000 b000     vmhgfs.ko

安裝有會有類似 Setting:

/boot/loader.conf

vmxnet_load="YES"

ls -l /boot/kernel/vmxnet.ko

-r--r--r--  1 root  wheel  18851 Dec  9 16:03 /boot/kernel/vmxnet.ko

會有 interface:

vxn0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:0c:29:01:85:5b

 


Vmware Tools

 

<1> Install additional packages needed by VMware Tools

pkg_add -rv perl

pkg_add -rv compat6x-i386

<2> Fix the Shared Libraries Configuration

vi /etc/rc

/sbin/ldconfig -elf /usr/lib /usr/local/lib /lib /usr/local/lib/compat

<3> Input guest tools CD:

ESXi4:

Start the VMware Tools install at the pfSense VM's console by choosing "Install/Upgrade VMware Tools" from the VM/Guest menu.

<4> VM Install guest tools:

* ESXi 的 "Guest Operation System" 會影響這 Setting (會有不同的 guest tools)

mkdir -p /mnt/cdrom

mount_cd9660 /dev/acd0 /mnt/cdrom

cd /tmp

tar xvzf /mnt/cdrom/vmware-freebsd-tools.tar.gz

cd vmware-tools-distrib

./vmware-install.pl -d --clobber-kernel-modules=vmxnet3,pvscsi,vmmemctl

 

 


DOC

 

 

 

 

Creative Commons license icon Creative Commons license icon