Fedora15 x86_64 に VMWare Tools をインストール その2
Fedora15にVMWare Toolsをインストールの続き
前回、x86_64 版でやったらエラー出たけどインストールはできたという喉に小骨が詰まってすっきりしない感じだったので、きちんとインストールできるようにしようという話。
下記のサイトを参考にしました。というか、下記のサイトをそのままやっただけ。
http://communities.vmware.com/thread/315459
$ tar xzf VMwareTools-8.3.7-341836.tar.gz $ cd vmware-tools-distrib/lib/modules/source/ $ tar xf vmhgfs.tar $ tar xf vmci.tar $ tar xf vsock.tar $ cp -r vmhgfs-only vmhgfs-onlyold $ cp -r vmci-only vmci-onlyold $ cp -r vsock-only vsock-onlyold $ vi vmhgfs-only/super.c $ vi vmci-only/vmci_drv.c $ vi vsock-only/linux/af_vsock.c $ diff vmhgfs-only{old,}/super.c 73c73 < .clear_inode = HgfsClearInode, --- > .evict_inode = HgfsClearInode, 121c121 < * deallocates an inode. We use this method instead of clear_inode because --- > * deallocates an inode. We use this method instead of evict_inode because 173c173 < * Hgfs superblock 'clear_inode' method. Called by the kernel when it is --- > * Hgfs superblock 'evict_inode' method. Called by the kernel when it is $ diff vmci-only{old,}/vmci_drv.c 71c71 < static int vmci_ioctl(struct inode *inode, struct file *file, --- > static long vmci_ioctl(struct file *file, 91c91 < .ioctl = vmci_ioctl, --- > .unlocked_ioctl = vmci_ioctl, 151c151 < init_MUTEX(&vmci_dev.lock); --- > sema_init(&vmci_dev.lock, 1); 494,496c494,495 < static int < vmci_ioctl(struct inode *inode, // IN < struct file *file, // IN --- > static long > vmci_ioctl(struct file *file, // IN 503a503 > lock_kernel(); 507a508 > unlock_kernel(); 666a668 > unlock_kernel(); $ diff vsock-only{old,}/linux/af_vsock.c 365c365 < static DECLARE_MUTEX(registrationMutex); --- > static DEFINE_SEMAPHORE(registrationMutex); $ tar cf vmci.tar vmci-only/ $ tar cf vmhgfs.tar vmhgfs-only/ $ tar cf vsock.tar vsock-only/ $ cd - $ sudo ./vmware-install.pl ・・・ Enjoy, --the VMware team