Using VMWare Workstation – a couple of Tips
When trying to setup a new Virtual Machine, you could take the tough approach and do it from scratch. Or you could let someone else do the hard work for you and download a pre-built image. For VMWare, the place to do this is the VMWare Applicance Marketplace.
This may or may not work perfectly for you. Here’s how I fixed a couple of problems that I encountered:
- I can’t connect to the Internet via Wi-Fi from the Virtual Machine
If your host machine connects to the Internet via Wi-Fi, you’ll find that the Virtual Machine cannot browse the net or download any packages. The reason for this is that by default, Wi-Fi adapters are excluded by the VMWare Workstation. You can fix in one of two ways:
1. Remove your Wi-Fi adapter from the Exclusion list – Go to Edit > Virtual Network Editor > Automatic Bridging:
You should see your Wi-Fi adapter listed in the “Do not attempt to bridge” list. Select the adapter and hit Remove. Now try rebooting the Virtual Machine and see if Internet access has started working.
2. Map a specific VMNet Adapter to your Wi-Fi adapter – In the Virtual Network Editor, Choose the Host Virtual Network Mapping tab:
Pick a VMNet Adapter and map it your Wi-Fi adapter. Next go to your Virtual Machine settings and modify the Network option to point to the VMNet Adapter you had modified:
- I’ve shared a folder from the Host PC, but the Linux Virtual Machine can’t see it.
The nice part of using images from the Appliance Marketplace is that VMware tools is typically installed, enabling the best features of the VMWare Workstation such as changing the resolution and Unity View. However, you might find that Shared folders aren’t working properly. To test whether you have a fully working VMware tools install, run the following command:
sudo lsmod | grep vmhgfs
You should something similar to the following output:
# lsmod | grep vmhgfs vmhgfs 51336 1
If the command exits without any output, you have an incomplete VMWare tools install. Run the following command:
sudo /usr/bin/vmware-config-tools.pl
Accept the default prompts and wait for the configuration to finish. Now try the following commands:
# modprobe vmhgfs # lsmod | grep vmhgfs
If the lsmod command returns some output now, you’re all set to start copying-and-pasting files between the Host PC and your Virtual Machine.
This entry was posted on Sunday, July 4th, 2010 at 6:46 pm and is filed under Geek. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
on July 5, 2010 at 11:08 am antrix wrote:
Out of curiosity, why VMWare? For personal/desktop virtualization, I’ve found VirtualBox to be much more simple & efficient.
on July 6, 2010 at 5:08 pm Balaji wrote:
I was using VMWare as a way to run a Mac OSX client initially and didn’t see any need to switch when I started adding more VMs.
VirtualBox does look interesting (especially since Seamless mode & host-client copy+paste are supported), but info on the migration path from VMWare to VirtualBox on Windows is very sketchy and that does not fill me with confidence.