2013년 1월 23일 수요일

How to install VMWare Tools on a FreeBSD 9.1 without X11.

First Step: Install FreeBSD as VMWare Guest.

Second Step: Update FreeBSD and Install ports.

  • Apply patches/updates.
# freebsd-update fetch && freebsd-update install
# portsnap fetch && portsnap extract && portsnap update

Thirth Step: Install prequiresties (Perl, compat6x)

======

I. Install Perl

# cd /usr/ports/lang/perl5.12
# make install

II. Install compat6x-amd64

# cd /usr/ports/misc/compat6x/
# make install

Forth Step: Download the kernel source.

# cd /usr/share/examples/cvsup
# cp stable-supfile /etc
# vi /etc/stable-supfile   // change from CHANGE_THIS to cvsup.freebsd.org
# csup -L 2 /etc/stable-supfile

Fifth Step: Take a VMWare Snapshot

Sixth Step: Mount the VMWare Tools ISO

  • i. In VMWare Workstation tab, choose VM -> Install VMWare Tools.
  • ii. In FreeBSD as root, create a directory to mount the CD-Rom to.
# mkdir /var/cdrom
# mount –t cd9660 /dev/cd0 /var/cdrom
  • iii. Extract the vmware-freebsd-tools.tar.gz
#cp /var/cdrom/vmware-freebsd-tools.tar.gz /root
#cd /root
#tar -zxvf vmware-freebsd-tools.tar.gz

Seventh Step: Recompile VMWare Tools Modules

  • i. the lib/modules/source directory under where you extracte
#cd /root/vmware-tools-distrib/lib/modules/source/
  • ii. Extract vmmemctl.tar
#tar -xf vmmemctl.tar
  • iii Change to the vmmemctl-only directory.
#cd vmmemctl-only
  • iv. Run make.
# make
# make install
  • v. Compile the vmblock module
# cd /root/vmware-tools-distrib/lib/modules/source/
  • vi. Extract vmblock.tar
# tar -xf vmblock.tar
  • vii. Change to the vmblock-only directory.
#cd vmblock-only
  • viii. Run make.
# make
  • ix. Run make install.
# make install

Final Step: Install VMWare Tools

# cd /root/vmware-tools-distrib/
# ./vmware-install.pl

At this point, accept all the defaults (press enter to all questions)
until you are returned to a shell prompt.

 If you use VMware-workstation 7.x, then you shall be blow sequence.
 Ignore the ‘failed’ service start, and the fact that it says the process
 has been aborted. Next, you need to use your favourite editor
 to edit the file /usr/local/etc/rc.d/vmware-tools.sh and locate
 the following 3 lines of code (they are separated by a few lines of
 code but are all in the same general area):
if [ "$vmdb_answer_VMHGFS_CONFED" = 'yes' ]; then if [ "$vmdb_answer_VMMEMCTL_CONFED" = 'yes' ]; then if [ "$?" -eq 0 -a "$vmdb_answer_VMXNET_CONFED" = 'yes' ]; then There will also be (not grouped together like the above line) the following line in the file: if [ "$vmdb_answer_VMBLOCK_CONFED" = 'yes' ]; then
 Change each of the above lines where it says yes to be xyes
 (add the letter X before the word yes) – then save&exit the file.
 Now we need to tell vmtools that it is configured by typing the following:
rm /etc/vmware-tools/not_configured
Now you can restart vmtools without rebooting like so:
/usr/local/etc/rc.d/vmware-tools.sh restart ```

Post Step : Take a VMWare Snapshot

댓글 없음:

댓글 쓰기