Controlling a QNX virtual machine

Updated: April 19, 2023

After you create a QNX Virtual Machine target connection, you can control the target QNX VM by starting and stopping it, and rebuilding it with the same or different configuration settings.

Starting

To start a stopped VM:
  • Right-click the target in the Project Explorer or Target Navigator and choose Start Virtual Machine from the context menu.

    The IDE starts the VM. VMware or VirtualBox VMs start within their respective workstations, and QEMU VMs start in a new console.

Stopping

To stop a running VM:
  • Right-click the target in the Project Explorer or Target Navigator and choose Stop Virtual Machine from the context menu.

    If the target is a VMware or VirtualBox VM, the IDE stops and closes the VM. If it's a QEMU VM, the IDE terminates the QEMU process.

Rebuilding

You can rebuild a QNX VM with its current settings. This is handy if you encountered an mkqnximage error that prevented the tool from generating the VM, and you've since fixed the error. To rebuild with the current settings:
  • Right-click the target in the Project Explorer or Target Navigator and choose Rebuild Virtual Machine from the context menu.

    The IDE calls mkqnximage with the same options as before to regenerate the same VM and system image. If this operation succeeds, the IDE restarts the VM.

If you want to change the settings and rebuild the VM:
  1. Click the button (Icon: Edit button) on the right of the target connection name in the Launch Target dropdown.

    This opens the same configuration settings dialog that you used when creating the VM.

  2. Edit the settings as needed. For instance, you can enter a different IP address for the IDE to try and connect to.
  3. Click Finish.

    The IDE calls mkqnximage with options based on your newly configured settings to regenerate the VM and system image. If this operation succeeds, the IDE restarts the VM.

Deleting

To delete a QNX VM target:
  • Right-click the target in the Project Explorer or Target Navigator and choose Delete from the context menu.