|
|
发表于 2006-11-22 09:50:19
|
显示全部楼层
Post by sbf
Installing VMware Tools in Fedora Core 6
# Install software called by by VMware Tools
yum install gcc
# Install kernel header files
yum install kernel-devel
# Check it matches the running kernel
uname -r # running kernel
rpm -q kernel-devel # installed kernel headers
# It the two versions do not match, run
yum -y upgrade kernel kernel-devel
# then reboot (but only if they did not match).
# Find out where the kernel headers are
echo /usr/src/kernels/$(uname -r)-$(uname -p)/include
# You need this later.
/***************************************************************/
# Unpack VMware Tools to a temporary directory
#go to VMware-Workstation menu: VM->Install VMware Tool...
#if no folder: /mnt/cdrom, mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cd /tmp/
#cp /mnt/cdrom/VMwareTools-5.5.2-29772.tar.gz /tmp
#tar zxvf VMwareTools-5.5.2-29772.tar.gz
tar zxvf /mnt/cdrom/VMwareTools-5.5.2-29772.tar.gz
cd vmware-tools-distrib
./vmware-install.pl
# Do you want to run vmware-config-tools.pl? no
/***************************************************************/
# TODO fix vmhgfs compile
#First, go to */usr/lib/vmware-tools/modules/source* and unpack
#*vmhgfs.tar*like this:
cd /usr/lib/vmware-tools/modules/source
tar -xvf vmhgfs.tar
#then edit *vmhgfs-only/driver.c* to conform with the kernel changes.
/*
#define INODE_SET_II_P(inode, info) do { (inode)->u.generic_ip = (info); } while (0)
#define INODE_GET_II_P(inode) ((HgfsInodeInfo *)(inode)->u.generic_ip)
*/
#define INODE_SET_II_P(inode, info) do { (inode)->i_private = (info); } while (0)
#define INODE_GET_II_P(inode) ((HgfsInodeInfo *)(inode)->i_private)
...
/* inode->i_blksize = HGFS_BLOCKSIZE; */
...
#Now you will have to repack it, run the following three commands:
rm -f vmhgfs.tar
tar -cf vmhgfs.tar vmhgfs-only
rm -rf vmhgfs-only
/***************************************************************/
#For FedoraCore6-i386, there is no config.h in /usr/src/kernels/2.6.18-1.2798.fc6-i686/include/#linux. You should manually type:
cd /usr/src/kernels/2.6.18-1.2798.fc6-i686/include/linux
ln -s configfs.h config.h
touch config.h
#Run the vmware-config-tools.pl script again
vmware-config-tools.pl
# Do you want to run vmware-config-tools.pl? yes
#[/lib/modules/2.6.18-1.2798.fc6-i686/build/include] OK
#after installing fedora core 6 linux, you can find the directory,
#if none,please select development lib and tools,in x,gnome,kde etc.
#[/usr/src/kernels/2.6.18-1.2798.fc6-i686/include] ERROR
/***************************************************************/
# Fix xorg config
# If when you (re)start X, you get the error "Undefined Monitor "vmware"..":
vi /etc/X11/xorg.conf
# Add the lines
Section "Monitor"
Identifier "vmware"
EndSection
/***************************************************************/
#If you actually need to access a shared folder, then you should know that
#this workaround will not work while SELinux is enabled. If you want to use the
#files, you will have to disable SELinux by going to
#*System ->Administration -> Security Level and Firewall*.
#if reboot, vmware do not change, then run vmware-config-tools.pl again
#and check /etc/X11/xorg.conf has changed, reboot again.
#after that, everything should work fine.
你这个方法适用于不能上网的人吗?还有为什么非要我双击“vmware-toolbox”鼠标才能移出虚拟机呢? |
|