Installing VMWare Tools with VMWare Player

Posted: November 17th, 2008 | Author: | Filed under: drivers, Linux, Virtualization, Windows | Tags: , , , | No Comments »

Once you have your virtual environment setup and an OS installed, it is very likely that the system will not perform to its absolute potential. That’s because the “hardware” which VMPlayer and VMWorkstation emulate is not supported by Windows or Linux by default. That’s where VMWare Tools comes into play. VMWare tools supplies all the necessary drivers along with several handy tools and applications to extend the functionality of VMWare Workstation and VMWare Player.

However, here is the catch: VMWare Tools is not available as a separate download and only comes bundled with the VMWare Workstation and, moreover, VMWare Workstation is not a free application.

There is a way to get around this though. As of this writing, it is still possible to download a “trial” copy of VMWare Workstation. You will most likely need to uninstall VMWare Player (if it’s installed) and then install the evaluation copy of VMWare Workstation. Once VMWare Workstation is installed and you boot up your virtual Windows or Linux OS, simply click VM->Install VMWare Tools… in the menu. This will automatically connect an ISO image on your hard drive to the virtual CD-ROM/DVD drive. For Windows users, this means the “autoplay” feature should automatically bring up the installation program for you. For Linux users, it will mount the drive and open a file browser, where you can either install the RPM (recommended) or install from source.

So what happens when the evaluation copy of VMWare Workstation finally expires? If you enjoyed using it and found it to be far superior than VMWare Player – why not consider purchasing the full-blown version? If this is not possible, you can always remove VMWare Workstation from your system (via Add/Remove Programs) and re-install VMWare Player. The installation of VMWare Tools will not be removed if you remove VMWare Workstation.

Another option is to copy the VMWare Tools ISO files (each OS should have its own ISO file) from the VMWare Workstation installation to a backup location for future use. This of course assumes you have purchased the full version of VMWare Tools. Doing a search for “.iso” should show you the location for your installed version. Once copied to a backup location, you can now easily mount the ISO file within your VMWare virtual environment and install VMWare Tools.


VMware Raw Disk BSOD

Posted: November 10th, 2008 | Author: | Filed under: HTPC, Linux, Networking, Virtualization, Windows, Wireless | Tags: , , , , , | No Comments »

Recently, I switched over to Linux as my desktop OS at work. The OS (Fedora) was installed on a dedicated drive and I kept my XP install intact on its own drive, knowing that at some point I may need to boot into Windows to run some application or test a web application in Internet Explorer.

As the weeks went by, I found that I rarely needed to boot into Windows, and, if I did, I only needed to be in the OS for just a few minutes. Rather than having to reboot each time to switch into an OS, I decided to jump into the world of virtualization.

I knew I could simply install Windows into a new disk image, but why do that when I already had a dedicated drive with Windows XP installed? Besides, if reinstalled, all my settings and drivers and programs would need to be reinstalled – no fun! So I began researching into using VMPlayer (free) with an entire disk of a pre-installed OS – and it is indeed possible.

I followed the directions step-by-step to Run Your Windows With VMware (the site requires a free registration in order to read the article – but getting your hands on Linux Mag articles is a good idea anyway) but ran into a few caveats:

VMplayer insisted it could not find the windows.vmx file.

This was resolved be ensuring that the files had the proper owner/group and permissions to read and write. Because I was logged in as root (via su) to do most of the legwork in creating the needed files, VMplayer did not have the sufficient read/write permissions. It may also be necessary to add the user to the “disk” group – for direct access to /dev/hdX or /dev/sdX. If you do add the user to the group, make sure to log out and then log back on again for the changes to take effect,

Once this was fixed, VMplayer began booting Windows XP, and the familiar logo and progress bar soon appeared. My hopes were dashed when the system suddenly “blue-screened”, which brings us to the next caveat:

0x00000007B Stop Error

After much research and wildly varying opinions on various blogs I think I may have rooted out the problem. 0x7B errors are a controller/drive error – in other words, a driver issue. You see, when you boot within a virtual environment, everything is virtualized, including hardware. So although I had the correct drivers installed for my hardware in native mode, Windows XP was running in a virtual environment with a different set of hardware. Here’s what you need to do:

1) Reboot the machine and boot into your Windows OS natively. After logging-in, you need to create a new hardware profile. Open up the control panel, select System, click the Hardware tab, and click the Hardware Profiles button. Now copy a hardware profile by selecting an existing profile and clicking the Copy button. Give your new hardware profile a name like “Virtual” or something similar.

2) Now that we have a dedicated hardware profile for our virtual environment, we need to prep the system by rebooting the machine once again, and once again boot into your Windows OS natively. However, when you boot into Windows, it should now stop and ask which hardware profile you would like to use. Select Virtual or whatever you called your new hardware profile.

3) Once the system has booted up and you have logged-in, we need to change some drivers, namely those of the IDE controllers by forcing them to be Standard Dual Channel PCI IDE Controller. Go to the control panel, select System, click the Hardware tab, and click the Device Manager button. Now, click the plus sign next to the IDE/ATAP Controllers label. A list of your controllers should now be seen. Begin by double-clicking the secondary controller and then clicking the Driver tab. Now click the Update Driver… button. Select No when asked if Windows Update can be used to find a driver for you. Select Install from a list or specific location (Advanced) and click Next. Now select Don’t search… and click Next. The following page will display drivers that are compatible for your system. You must select the Standard Dual Channel PCI IDE Controller driver and click Next. Repeat these steps for the Primary Controller as well. Usually Windows will tell you that you must reboot for the changes to take affect after you update the Primary Controller driver, be sure to agree to this but as the system reboots, select your Linux OS.

Now that a compatible set of drivers are installed, you should be able to start up VMplayer and successfully boot into your Windows OS. But remember, you must choose the Virtual hardware profile when the system boots within VMplayer and the standard hardware profile when you want to boot natively.

In the next entry, I’ll discuss how to install VMtools – a set of drivers specifically for the VMplayer/VMworkstation environment that greatly improves performance and adds some pretty cool functionality.