Troubleshooting strategies

There are numerous ways to get information about the different parts of your hypervisor system.

To troubleshoot guests, use the same debugging tools you would use for the OS and its applications in a non-virtualized system, by connecting to a TCP/IP stack running within the guest. For example, if you run a QNX guest and it starts such a stack along with the qconn service, the QNX Momentics IDE can connect to the guest through TCP/IP and do application-level debugging. For information about debugging with the IDE, see the Debugging Applications chapter in the IDE User's Guide.

For hosts, the troubleshooting ways include:
  • Add the logger option to the qvm configuration (see logger in the VM Configuration Reference chapter) to log certain message types.
  • Use tracelogging (see Getting hypervisor trace information) to examine trace events from a VM.
  • Run the QNX dumper utility to produce a core file for any host process, including a qvm process, that crashes.
    CAUTION:
    The dumper utility should be used only in development systems and not production systems. This utility can cause significant delays for a VM to enter its local DSS because dumper copies the entire guest-physical address space to the core file, which can take several seconds depending on the size of the guest memory.

    Only use dumper with one of the -H, -m, or -S options, as these options restrict the amount of data that gets dumped. For more information, see the dumper entry in the QNX OS Utilities Reference.

A typical approach to troubleshooting would be to use the logger option to gather general information about what a qvm process is doing (and, by indirection, what a guest is doing), then to use tracelogging for more detailed analysis.

If you need to keep more than the hypervisor's default 4K of slog information, you can use the set option to set the slog-buffer variable to the right buffer size (see slog-buffer in the VM Configuration Reference chapter). You can also send the output to your console.

Page updated: