免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2461 | 回复: 0
打印 上一主题 下一主题

[VMware] Installing VMware Tools In A FreeBSD 7.0 Guest [复制链接]

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-16 20:11 |只看该作者 |倒序浏览

From
http://blog.sourcehosting.net/2008/03/10/vmware-tools-installation-problem-under-freebsd-70/
March 10, 2008
Installing VMware Tools In A FreeBSD 7.0 Guest
Filed under:
Operating Systems
— Tags:
freebsd
,
vmware


Greg Larkin @ 7:35 pm
Hi everyone,
I’ve got
FreeBSD 7.0
downloaded and running as a VMware Server virtual machine so I can start checking it out and get a feel for how it works. Once
ZFS
is deemed stable for production, I’ll plan to migrate to the 7.x series.
The first thing I generally do after setting up a new VM is install
VMware Tools
. Wait - scratch that. The first thing I have to do before installing VMware Tools is install Perl, since it’s not part of the FreeBSD base system. That’s easy enough:
cd /usr/ports/lang/perl5.8 && make WITH_GDBM=yes install clean
Ok, on to the VMware Tools installer! After starting the vmware-install.pl script, I answered a bunch of questions (used all default responses), and finally was met with this somewhat odd message:

Wait a minute - I’m pretty sure I’m installing in a virtual machine here! Initially, I pored through the installation Perl script and discovered that it executes vmware-checkvm to determine if it’s running inside a VM or not. Ok, let’s try that by hand:

That’s a problem! vmware-checkvm is a statically-linked binary, and to get it working, the FreeBSD compat6x port needs to be installed. The compat6x port installs a variety of libraries that were found in FreeBSD 6.x but have had their versions bumped for FreeBSD 7.0.
cd /usr/ports/misc/compat6x && make install clean
Hmm, still no joy after doing that - vmware-checkvm is still core dumping. After more Googling and nosing about in the VMware Tools installation script, I learned that VMware expects the libc.so.6 library installed by compat6x to be in /lib. However, all compat{3,4,5,6}x ports install their libraries in /usr/local/lib/compat to avoid messing with the base system.
A simple symbolic link gets libc.so.6 in place for VMware:
ln -s /usr/local/lib/compat/libc.so.6 /lib
And now success, right? Wrong!

I’m not logged in over the network, so why am I getting this message? It turns out that tcsh (root shell in FreeBSD) is setting the REMOTEHOST environment variable, even though I’m logged in at the VM’s console.
The solution is a simple command:
unsetenv REMOTEHOST
Start up the VMware Tool installer one more time, and now it works!
Maybe the
newest version of VMware Server
supports FreeBSD 7.0 natively, so I’ll have to test that out soon. Details will be posted here when I do!
Keep in touch,
Greg


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/19810/showart_1132308.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP