Setting a MIME Type to Launch the VMware Server Console
Setting a MIME Type to Launch the VMware Server Console
From the VMware Management Interface, you can connect to a virtual machine from
a console by clicking the terminal icon (
) for that virtual machine. Before doing so,
some browsers may require you to define a MIME type and associate it with the
console program file. Internet Explorer is automatically configured when you install
the console.
The procedure for setting a MIME type for the console is similar for Windows and
Linux hosts. Both involve writing a short script that provides the command to launch
the console. You can choose to launch the console that was installed with VMware
Server or you can launch the console that was installed from a file downloaded from
the management interface.
In Netscape or Mozilla, follow the steps below to set the MIME type.
Note: You may not need to create a helper file manually if your browser
prompts you to associate VMware Server with the file type.
Setting the MIME Type for the Console Installed with VMware Server
Setting the MIME Type for the Console Installed with VMware Server
- Open a text editor and do one of the following.
-
On a Windows host, write a short batch file called vmwareVMS-helper.bat. The batch file must contain the following line:
"<path_to_vmwareVMS>" -o "%1"
where the default <path_to_vmwareVMS> is C:\Program Files\VMware\VMware Server\vmware.exe
-
On a Linux host, write a short shell script called vmware-vms-helper.sh. The shell script must contain the following two lines:
#!/bin/sh
"<path_to_vmware-vms>" -o $1 > /dev/null 2>&1;
where the default <path_to_vmware-vms> is /usr/bin/vmware.
- Save the file in a location of your choice.
Note: On a Linux host, change to the directory where you saved the file and
give yourself permission to execute the file.
chmod +x vmware-vms-helper.sh
- Use the browser to connect to the server you want to manage.
- Click the terminal icon for the virtual machine you want to view in a console.
- A dialog box asks what you want to do with the file. Click Advanced.
- In the New Type dialog box, in the Description of type field, type VMware Server.
- In the File extension field, type xvm.
- In the MIME type field, type application/x-vmware-console.
- In the Application to use field, type the path to vmwareVMS-helper.bat or vmware-vms-helper.sh.
- Click OK twice. Your browser is now set to launch the console when you click the terminal icon in the future.
Setting the MIME Type for the Console Installed from the Management
Interface Download
Setting the MIME Type for the Console Installed from the Management
Interface Download
- Open a text editor and do one of the following.
-
On a Windows host, write a short batch file called vmwareConsole-helper.bat. The batch file must contain the following line:
"<path_to_vmwareConsole>" -o "%1"
where the default <path_to_vmwareConsole> is
C:\Program Files\VMware\VMware Server Console\vmware.exe
-
On a Linux host, write a short shell script called vmware-server-console-helper.sh. The shell script must contain the following two lines:
#!/bin/sh
"<path_to_vmware-server-console>" -o $1 > /dev/null 2>&1;
where the default <path_to_vmware-server-console> is /usr/bin/vmware-server-console.
- Save the file in a location of your choice.
Note: On a Linux host, change to the directory where you saved the file and
give yourself permission to execute the file.
chmod +x vmware-server-console-helper.sh
- Use the browser to connect to the server you want to manage.
- Click the terminal icon for the virtual machine you want to view in a console.
- A dialog box asks what you want to do with the file. Click Advanced.
- In the New Type dialog box, in the Description of type field, type VMware Server Console.
- In the File extension field, type xvm.
- In the MIME type field, type application/x-vmware-console.
- In the Application to use field, type the path to vmwareConsole-helper.bat or vmware-server-console-helper.sh.
- Click OK twice. Your browser is now set to launch the console when you click the terminal icon in the future.