“Necessity is the mother of invention”, the saying goes but as far as experiments with software I would rewrite this and say “necessity is the mother of installation”… (I know… real lousy joke..
) Anyway I had heard about (and even downloaded a while back) VMware software to try running multiple OS’s on my computer but not until this very moment did I put in time to get it running. This is the scenario in brief. I have a machine running Ubuntu and I am working with a group where once in a while I need to edit/exchange some documents in MS office format. I have (barely) tried running wine but I do not really like the way it looks so I thought it was time to experiment with VMware. In otherwords, I am using a bulldozer to get rid of an anthill… looking at it another way, I also get the chance to explore testing software on multiple operating systems, all hosted on this one PC.
Basically I needed to have an installation of VMware in which I could run a windows XP OS as a guest and be able to share files between the windows guest OS and the host Ubuntu OS. For this task I figured I need only the VMware player that is available free. This player is able to run existing virtual machine (VM) configurations but does not allow creation of new ones. I was able to create and download a VM configuration using a VM creator at http://www.easyvmx.com. I found another website “how to create a windows XP virtual machine” which was also very handy for supplying the needed files and base instructions. So I shall not go into rewriting what I found there.
1. Installing the VMware player: The .tar.gz supplied by VMware Inc is pretty straight forward. It requires unzipping and uncompressing and then running the file vmware-install.pl. A lot of the options are suggested by default and most of them I only had to agree with.
2: Installing the guest OS: Using the files and instructions from “how to create a windows XP virtual machine”, I managed to get the windows XP guest OS running without much trouble.
3. Defining shared folders: I run into a wall when it came to creating shared folders. The instructions say that you should start VMware player and choose from the menu Player > Shared Folders. However, when I did this I found no shared folders defined and no possibility to define them from within the player. NOTE: This was because I had used a VM configuration from the “how to create..” website. If you create your vmx file from easyvmx.com, you are able to specify whether you want your virtual machine to have shared folders. I created a sample virtual machine from the easyvmx.com and copied out the section with the information about shared folders.
sharedFolder.option = “alwaysEnabled”
sharedFolder0.present = “TRUE”
sharedFolder0.enabled = “TRUE”
sharedFolder0.readAccess = “TRUE”
sharedFolder0.writeAccess = “TRUE”
sharedFolder0.hostPath = “/path/to/shared/folder”
sharedFolder0.guestName = “name-of-shared-folder”
sharedFolder0.expiration = “never”
This seemed to work. When I tried the Player > Shared Folders menu, I found the shared folder defined.
The last part to defining the shared folders is to locate them within your windows guest OS and map the shared folder as a network drive. I found that the shared folder was under \\.host\Shared Folders\name-of-shared-folder. Note that the only thing that changes in this address is the part “name-of-shared-folder” The rest stays exactly the same.
There is, however, one thing I am not 100% sure of… is whether you shall be able to see the shared folders with only the VMWare player installation. I did not have a chance to test this because initially I had no idea that the address for accessing the shared folders was literally the one mentioned previously, i.e. \\.host\Shared Folders\name-of-shared-folder; plus somewhere along the way I found a recommendation to install VMWare workstation so as to enable sharing of folders. I installed the workstation (trial version), in the same way as VMware player. After this I installed VMware tools using the menu VM > Install VMWare Tools; with that I was able to easily find the shared folder as described above.
So now I am able to use my windows guest OS and can edit files that are resident on the host OS.