When setting up a serious test environment, it may be useful to make the machines accessible from a distance. Even if you're using VMware Workstation on your own computer, there are different ways in which you can accomplish this. In this chapter, you'll read how to use VNC, the VMware web service, and VNC on individual machines to access virtual machines remotely.
If you're running a big test environment with multiple virtual machines, it can be useful to enable remote access. Generically speaking, there are three different methods to do this:
The VMware Web Service is an easy and convenient way to share machines with other users. To use this solution, you need to set up shared machines, but it's also a good idea to create a dedicated user account to share the virtual machines so that you can prevent remote users from getting access to the files on your computer. Be aware however that normal user accounts without administrator privileges won't be able to get access to other users' virtual machines. An administrator user can at least browse through virtual machines that other users have created. It is a lot easier to set up a dedicated account for the use of VMware Workstation, and from that account, share all virtual machines. This prevents you from the need to give too much access privileges to other users.
To use VMware shared virtual machines, you'll need a user account on the computer where the shared virtual machine resides. This means that before setting up the shared virtual machine, you'll have to create these user accounts—unless you want the remote user to connect with your own username and password.
If you're working in a corporate environment with Active Directory, all user accounts are probably already available. If you're running VMware Workstation on a Windows 8 computer, you'll need to set up a user account yourself. To do this, start the PC Settings application and click on Users. From here, select Add a user and follow the wizard to proceed through all of the required steps to create the user. You don't have to grant administrator privileges to the user, just create the user account and assign a password.
To create a Linux user account, open a shell window and make sure that you have root permissions. To escalate your permissions to the root level, use the sudo so
command and enter the root password. Next, type useradd -m username
. This adds the new user account to your computer. To set a password for this user, still as root, enter the passwd
command and enter the new password twice.
Probably the easiest way to enable shared VMs is by using the VMware integrated feature. This allows you to run a web service on the host's operating system, which gives access to all virtual machines on that host. Enabling the VMware Workstation Server starts at the virtual machines that you want to provide access to. You'll first have to share the virtual machine, after which the workstation's server properties can be set. The procedure described as follows shows how this works:
My Computer
folder as well.Accessing a shared virtual machine from a remote computer that runs VMware isn't difficult. The following procedure describes how you can do it: