________________________________________________________________________
Applicable Environment
________________________________________________________________________
- Topic: Add IFS images to QNX7 VM
- SDP: 7.0.0
- Target: VMWare target (provided with the release)
________________________________________________________________________
Recommendation
________________________________________________________________________
The QNX 7 VM has two virtual eide/ahci drives, /dev/hd0 (65 MB) and /dev/hd1 (3 GB). Both contain bootable partitions (/dev/hd0t177 and /dev/hd1t177), and therefore a .boot directory. The first of these drives is used to contain the ifs, and the second contains all the other tools included with the VM image. Based on the BIOS setup, the VM uses /dev/hd0 as the primary IDE master to load the OS. You can view the current BIOS settings via VM -> Power -> Power On to Firmware.
The default image - qnx_sdp7.ifs, mounts both partitions to root (/), /dev/hd0t177 is mounted first and then /dev/hd1t177 is mounted at the same location (overlaid). You will notice at this point, you can add a new IFS image to the .boot directory, but when you restart the VM, it does not display the new image in the list. This is because the IFS image was actually written to /dev/hd1t177. This is because /dev/hd1t177 was mounted on top of /dev/hd0t177. Since the VM is configured to boot from /dev/hd0t177, we need to add the new IFS image to /dev/hd0t177 instead of /dev/hd1t177 in order to boot from it.
Below are the steps to reconfigure the mount points, which will allow you to add a new image into the .boot directory in /dev/hd0t177, and therefore boot a new/altered IFS image:
-- Start VM by loading default IFS image "qnx_sdp7.ifs". After boot up:
1. # slay devb-eide
2. # devb-eide
3. # mount -t qnx6 /dev/hd0t177 /hd0
4. # mount -t qnx6 /dev/hd1t177 /
5. Replace the original IFS (qnx_sdp7.ifs) with the one attached (In the image attached, the boot directory is mounted at /hd0). This can be done via Momentics using "Target File System Navigator" -> /hd0 -> /.boot -> replace qnx_sdp7.ifs with new one.
6. # sync
7. Restart VM
Another way to remount the drives is to rearrange the order:
3. # mount -t qnx6 /dev/hd1t177 /
4. # mount -t qnx6 /dev/hd0t177 /
This way when you add an image, it will be stored in the .boot directory in /dev/hd0. Now you can add multiple IFS images in the .boot directory, and when you start the VM, you can select which image to load.
Attached Items:
- qnx_sdp7.build
- qnx_sdp7.ifs
________________________________________________________________________
NOTE:
This entry has been validated against the SDP version listed above. Use
caution when considering this advice for any other SDP version. For
supported releases, please reach out to QNX Technical Support if you have any questions/concerns. ________________________________________________________________________