QLOOKアクセス解析

スポンサーサイト

上記の広告は1ヶ月以上更新のないブログに表示されています。
新しい記事を書く事で広告が消せます。

スポンサー広告  |  ↑Top

2009/02/07 (Sat) 21:00

Install VMware Tools to Fedora 10

A Method of Installing VMware Tools to Fedora 10      Japanese
It was tough work more than I had thought, so I explain the method.

Environment
Host OS       Windows Vista 64bit
Virtual Machine    VMware Player 2.5.0
Guest OS       Fedora 10 (F10-i686-Live.iso)

There are some instructive sites of installing VMware Player and Fedora 10,
so there ware few problems to install VMware Player and Fedora 10.
The tough work was installing VMware Tools.

There ware three functions, which I needed.
・Copy, Cut and Paste, between Host OS and Guest OS
・Increase screen size of Guest OS with dragging mouse (Decrease can be originally)
・Share folder of Host OS with Guest OS (HGFS)

Methods that I tried to install VMware Tools are three as below.

・Installing from open-vm-tools-2009.01.21-142982 (FAILED)
・Installing from linux.iso included in VMware Player 2.0.5 (FAILED)
・Installing from linux.iso included in VMware Server 2 for Windows (OK)


Installing from open-vm-tools-2009.01.21-142982 seems to be succeeded at a glance,
but none of the functions above can be used.
Also in README, it is written that it was tested on Fedora 8,
but not written tested on Fedora 10.
However when the version is improved and works on Fedora 10,
probably using open-vm-tools is the easiest way.

open-vm-tools is not recomended,
for too many dependent modules and complicated settings are required.

Installing from linux.iso included in VMware Player 2.0, you mustn’t do this.
The version of VMwareTools included in VMware Server is 2.0.0,
and the version of VMwareTools of Mware Player 2.0.5 is 6.0.5.
So at a glance version 6.0.5 is better than 2.0.0, but never use this to Fedora 10.
When compiling errors occur, and if you still continue, Fedora 10 will freeze.
Even Ctrl+Alt+Insert (forcing reboot) doesn’t work!
You will have to restart from installing Fedora 10.

Therefore I am going to explain the method of
installing from linux.iso included in VMware Server 2 for Windows.


1. Extract linux.iso from VMware Server
Download VMware Server from the VMware site and install.
Which needed is only linux.iso, but without installing, it cannot be extracted.
When installing VMware Server, it is impossible to coexist with VMware Player.
So installing VMware Server and extract linux.iso before installing VMware Player is
better to save your work and time.
Don't forget to copy linux.iso, before installing VMware Player.
Because when VMware Player is installed, the files of VMware Server are removed.

2. Install VMware Player
Details are omitted. Refer to other sites.

3. Install Fedora 10
Installing Fedora 10 is easier than Fedora 9,
because the media of Fedora 10 is a Live CD.
Details are omitted. Refer to other sites.

4. Add Packages, which are needed to Install VMware Tools
Using GUI (Graphical User Interface) is easy to add them,
though they can be added with yum command.

"System" -> "Administration" -> "Add/Remove Software"


There are four needed packages as below.
・The Linux kernel
 (possible to find with the keyword“kernel”)
・Development package for building kernel modules to match the kernel
 (possible to find with the keyword“kernel”)
・Various compilers (C, C++, Objective-C, Java, ...)
 (means gcc, possible to find with the keyword“gcc”)
・A GNU tool which simplifies the build process for users
 (means make, possible to find with the kwyword“make”)
No need to install one by one.
You can just check the packages and install later all of them at a time.

5. Shut down Fedora 10
There are two reasons as below.
・To update installed kernel
・To mount linux.iso as described on the next step

6. Set to Mount linux.iso
Describe in "vmx" file as below.

ide1:0.present = "TRUE"
ide1:0.fileName = "linux.iso"
ide1:0.deviceType = "cdrom-image"
ide1:0.startConnected = "TRUE"
ide1:0.autodetect = "TRUE"


"linux.iso" is the extracted file at step 1.
The described way above is the case linux.iso is in the same folder with "vmx" file.
If linux.iso is not in the same folder with "vmx" file, describe the path.

7. Set to Share Folder
Describe in "vmx" file as below.

##### Shared Folders #####
sharedFolder0.enabled = "TRUE"
sharedFolder0.present = "TRUE"
sharedFolder0.writeAccess = "TRUE"
sharedFolder0.readAccess = "TRUE"
sharedFolder0.hostPath = "D:\share"
sharedFolder0.guestName = "share"
sharedFolder0.eXpiration = "never"
sharedFolder.maxNum = "1"
isolation.tools.hgfs.disable = "FALSE"


"D:\share" is the name of the folder on the Host OS.
Describe the path of the folder, which you want to share.
"share" is the name of the shared directory on the Guest OS.
/mnt/hgfs/share is the shared directory in this case.
The name of share can be named what you want, but /mnt/hgfs cannot be changed.
It is possible to mount any mount point you want by editing /etc/fstab or mount command.

If you want to put the shared directory on another place, set a symbolic link.
Example

ln -s /mnt/hgfs/share /home/foo/share



8. Boot VMware + Fedora 10
Omitted.

9. Copy VMwareTools-2.0.0-122956.tar.gz to Working Directory
Using GUI is easy, though cp command can be also used.
There is an icon named VMware Tools on the desktop.
Click this icon and you can see a file named VMwareTools-2.0.0-122956.tar.gz.
Drag and copy it to any working directory, which you want.

There is a file named VMwareTools-2.0.0-122956.i386.rpm too.
But in this case, using rpm doesn’t save your work nor time.
So using VMwareTools-2.0.0-122956.tar.gz is better.

10. Extract VMwareTools-2.0.0-122956.tar.gz
Click the file and you can extract it easily, though tar command can be also used.

11. Open Terminal

"Applications" -> "System Tools" -> "Terminal"



12. Change Directory to Extracted Directory vmware-tools-distrib

cd path_to_copied_dir/vmware-tools-distrib



13. Execute Install Command as Super User (root)

su
./vmware-install.pl


Hit Enter to all the questions is all right.
One thing that might worry you is that vmware-install.pl shows messages,
there is no xorg.conf, can’t create xorg.conf.
Because Fedora 10 doesn’t need xorg.conf by default, so you may ignore these messages.
Caution of xorg.conf is described in appendix.

14. Execute Commands that vmware-install.pl directs as Super User (root)

/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/network start


Is seems no problem without doing it, but do it for the present.

・Share folder of Host OS with Guest OS (HGFS) can be used now.

In case the folder cannot be shared, check from the VMware Player menu as below.

"VMware Player" -> "Shared Folders" -> "Always enabled"



15. Set vmware-user
Even after finished installing vmware-install.pl,
those two functions are still not effective.
・Copy, Cut and Paste, between Host OS and Guest OS
・Increase screen size of Guest OS with dragging mouse (Decrease can be originally)

The command that execute these functions is vmware-user command.
But vmware-install.pl doesn’t set up suitably for Fedora 10,
so these functions cannot be used even after reboot.

To execute vmware-user when login, set as below with GUI.

"System" -> "Preferences" -> "Personal" -> "Sessions" -> "Add"
Name          VMware User Agent
Command     vmware-user
Comment     VMware User Agent


Name and Comment will be any words.
Now reboot and login, then all the needed functions are effective.


・Appendix 1    Caution of xorg.conf
It is good news that Fedora 10 doesn’t require annoying xorg.conf,
but it seems to be still necessary in cases using a touch pad etc.
If /etc/X11/xorg.conf exists, Fedora 10 uses its setting.

If you need xorg.conf, vmware-install.pl creates a template in /tmp,
so you make a note of the displayed name of the file

But a caution is needed here!
The created template is not adapted to Fedora 10,
and cannot be used without modification.
You should not copy it to / etc/X11/xorg.conf directly without modification.
In the worst case, you can never see the screen of Fedora 10,
and might have to restart from installing Fedora10.

A good countermeasure is, to make xorg.conf in a shared folder,
and to set a symbolic link it to /etc/X11/xorg.conf.
Example

ln -s /mnt/hgfs/share/xorg.conf /etc/X11/xorg.conf


Then you can edit xorg.conf on the Host OS and reboot Fedora 10 again and again,
untill you can get the bset setting.
After completed the setting,
/etc/X11/xorg.conf can be set as a normal file instead of a symbolic link.

In case the screen of Fedora 10 cannot be seen, reboot with Ctrl+Alt+Insert.
Even in the worst case, you can change the name of xorg.conf on the Host OS and login.

Unnecessary sections in the template are probably as below.

Section "Module"
Section "Files"
Section "ServerFlags"


It would be better to remove or comment out these sections and try.

・Appendix 2    Version of VMware Player
The latest version of VMware Player is 2.5.1 at this moment, but 2.5.0 is more useful.
The reason is, when I wanted to change the active application program
by clicking the task bar of the Host OS (Windows Vista),
I had to click three times to change on version 2.5.1.
Probably it would be a small bug.


【追記】

I noticed later, copying files and directories by drag & drop also works.
It's very convenient!
コンピュータ  |  トラックバック(0)  |  コメント(0)  |  ↑Top

Comment

コメントを投稿する


 管理者だけに表示  (非公開コメント投稿可能)

▲TOP

Trackback

この記事のトラックバックURL

→http://cyberbaba.blog57.fc2.com/tb.php/33-db3f8a13

この記事にトラックバックする(FC2ブログユーザー)

この記事へのトラックバック

▲TOP

 | HOME | 
上記広告は1ヶ月以上更新のないブログに表示されています。新しい記事を書くことで広告を消せます。