Examples: Debugging Over A Virtual Serial Port - VMware 4 User Manual

Powerful virtual machine software for the technical professional
Hide thumbs Also See for 4:
Table of Contents

Advertisement

virtual serial port. In practice, the output speed depends on how fast the application
at the other end of the pipe reads data inbound to it.
<n> is the number of the serial port, starting from 0. So the first serial port is
serial0.
<x> is any positive integer. It specifies the time taken to transmit a character,
expressed as a percentage of the default speed set for the serial port in the guest
operating system. For example, a setting of 200 forces the port to take twice as long
per character, or send data at half the default speed. A setting of 50 forces the port to
take only half as long per character, or send data at twice the default speed.
You should first use the guest operating system to configure the serial port for the
highest setting supported by the application you are running in the virtual machine.
Once the serial port speed is set appropriately in the guest operating system,
experiment with this setting. Start with a value of 100 and gradually decrease it until
you find the highest speed at which your connection works reliably.

Examples: Debugging over a Virtual Serial Port

You can use Debugging Tools for Windows (WinDbg) or Kernel Debugger (KD) to
debug kernel code in a virtual machine over a virtual serial port. You can download
Debugging Tools for Windows from the Windows DDK Web site at
www.microsoft.com/whdc/ddk/debugging/default.mspx.
The following two examples illustrate how to use a virtual serial port to debug kernel
code in a virtual machine:
With the debugging application on the VMware Workstation host (Windows
hosts only)
With the debugging application in another virtual machine on the same
VMware Workstation host (useful on a Linux host and can also be done on a
Windows host)
Using either of these methods lets you debug kernel code on one system, without the
need for two physical computers, a modem or serial cable.
Debugging an Application in a Virtual Machine from the Windows Host
In this example, you have kernel code to debug in a virtual machine (called the target
virtual machine) and are running WinDbg or KD on your Windows host.
C H A P T E R 1 1 Connecting Devices
263

Advertisement

Table of Contents
loading

This manual is also suitable for:

Workstation 4

Table of Contents