QNX6.6虛擬機開發Virtual Machine Image

開發環境:QNX SDP 6.6;
下載地址:http://www.qnx.com/download/group.html?programid=26071html

虛擬鏡像:VM-QNXSDP660-201402230339.iso;
下載地址:http://www.qnx.com/download/feature.html?programid=26217ios

其餘組件:
下載地址:http://www.qnx.com/download/group.html?programid=26121web

虛擬鏡像的版本必定要和系統的版本一致,如都是6.6版本,若是不對應的話是沒法進行debug的。網絡

安裝過程,以Oracle Virtual Box虛擬機程序示例:app

一、下載開發環境和虛擬鏡像*.iso文件到本地目錄並分別安裝正確;ide

二、打開VirtualBox,選擇新建虛擬機,類型選擇Other,版本選擇QNX;ui

三、選擇建立虛擬硬盤,其餘配置自定義,而後完成建立;this

四、打開虛擬機設置選項,找到存儲>控制器,選擇光盤,將iso文件導入光盤;debug

五、打開虛擬機設置選項,找到系統>主板>啓動順序,將光盤設置爲第一啓動項,相似安裝系統同樣;調試

六、啓動虛擬系統,控制檯提示「是否要覆蓋硬盤數據」,選擇是,以後系統會將光盤上的文件拷貝到硬盤,而後系統會自動重啓;

七、系統再次重啓的時候先強制關閉系統,而後打開虛擬機設置項,將光驅從存儲中刪除,並將啓動順序改成硬盤啓動優先;

八、打開虛擬機設置項,找到網絡設置,將鏈接方式設置爲「橋接網卡」,界面名稱選擇指定的網卡,注意,當選擇指定的網卡後,必須保證該網卡是鏈接而且可用的,不然不能在虛擬機中鏈接成功主機網絡;

九、重啓QNX系統,進入控制檯界面,輸入ifconfig命令查詢IP地址,使用ifconfig en0 192.168.0.156命令設置QNX系統IP地址爲192.168.0.156(重啓後會自動還原,須要設置靜態IP請參考其餘方法);

十、好吧,使用ping命令訪問下Host主機吧,若是能ping通,則大功告成,就可使用IDE在虛擬系統中進行調試啦!

調試注意事項:有多個目標系統,如物理系統+虛擬機系統,可在IDE菜單Debug Configurations中配置兩個目標系統,而後選擇要調試的目標系統,肯定Apply就能在指定的目標系統中調試,是否是很方便!

QNX官網上的虛擬鏡像安裝指導:

Using the VMware image of a QNX® Neutrino® runtime system
Electronic edition published: Wednesday,  November  25,  2015

We provide an ISO image of a QNX Neutrino runtime system that you can run as a virtual machine in VMware Workstation, VMware Player, VMware Fusion, or Oracle VirtualBox on any host.

Installing the ISO image

To install this image, do the following:

Log in to your myQNX account on our website, and then go to the Download area.
Download the ISO image, VM-QNXSDP660-nnnnnnnnnnnn.iso, where nnnnnnnnnnnn is a build number.
Verify that the checksum of the package matches the one given in the Download area.
Open your virtual machine software and create a new virtual machine. We recommend the following:
For the operating system and version, choose Other.
Use the default hard disk size (usually 8 GB or 4 GB) and memory (usually 256 MB).
Specify that the virtual machine should boot from the ISO image that you downloaded.
If the virtual machine software offers you a choice of an IDE or SCSI hard disk, choose IDE.
Start the virtual machine. The installer will confirm that you want to erase the hard disk. If you created a new virtual machine, it's safe to erase its disk.
CAUTION:
If you run the ISO on a physical machine, the installer will—if you let it—erase the physical disk.
When the installer finishes, it reboots the virtual machine, which then starts the QNX Neutrino 6.6.0 runtime system.

What's in the virtual machine?

The virtual machine includes these OS images:

bios_smp.ifs Symmetric multiprocessing. 支持多處理器 bios_smp_aps.ifs Symmetric multiprocessing, with adaptive partitioning. When you start the virtual machine, you can choose which image to load. If you want to start any additional programs when the OS boots, add the appropriate commands to /etc/rc.d/startup.sh or /etc/rc.d/startup_aps.sh, depending on which OS image you start.

相關文章
相關標籤/搜索